[PATCH] fix PPC64 iSeries virtual console devices

From: Stephen Rothwell (sfr_at_canb.auug.org.au)
Date: 03/11/04

  • Next message: Sam Ravnborg: "Re: [PATCH] 2.6.4-rc2: scripts/modpost.c"
    Date:	Thu, 11 Mar 2004 16:35:34 +1100
    To: LKML <linux-kernel@vger.kernel.org>
    
    
    

    Hi Linus,

    While playing with udev, I discovered that the virtual console
    devices on iSeries had there minor numbers off by one i.e. /dev/tty1
    was minor 2!

    The following patch fixes this.

    -- 
    Cheers,
    Stephen Rothwell                    sfr@canb.auug.org.au
    http://www.canb.auug.org.au/~sfr/
    diff -ruN 2.6.4/drivers/char/viocons.c 2.6.4.viocons/drivers/char/viocons.c
    --- 2.6.4/drivers/char/viocons.c	2004-03-11 15:39:16.000000000 +1100
    +++ 2.6.4.viocons/drivers/char/viocons.c	2004-03-11 16:06:46.000000000 +1100
    @@ -1365,6 +1365,7 @@
     	viotty_driver->driver_name = "vioconsole";
     	viotty_driver->devfs_name = "vcs/";
     	viotty_driver->name = "tty";
    +	viotty_driver->name_base = 1;
     	viotty_driver->major = TTY_MAJOR;
     	viotty_driver->minor_start = 1;
     	viotty_driver->type = TTY_DRIVER_TYPE_CONSOLE;
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Sam Ravnborg: "Re: [PATCH] 2.6.4-rc2: scripts/modpost.c"

    Relevant Pages

    • Re: udev sysfs docs Re: State of devfs in 2.6?
      ... /dev is just a normal directory ... The naive solution ... My guess is, unfortunately, udev probably won't handle this any time ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: dynamic /dev security hole?
      ... On Mon, 9 Aug 2004, Alan Cox wrote: ... udev would chown your ... linked copy (before unlinking the original device node), ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: DevFS vs. udev
      ... On Wed, 2003-12-24 at 03:07, Greg KH wrote: ... cool - please post if you have something a bit before next udev ... Gentoo Linux Developer, Desktop/System Team Developer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ANNOUNCE] udev 021 release
      ... Now with udev I'll never get /dev/dsp in the first place and there's ... file creation. ... tarball into /dev before starting udevd? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HOWTO use udev to manage /dev
      ... >> So if you take out the line about starting udevd, ... there is a patch in the Red Hat version of udev that basically makes ... how about running strace on start_udev when your rc.S ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)