Re: 2.6.23 /proc/bus/input/devices content question

Previous thread: Re: 2.6.23-rc8-mm1, -rc7-mm1 kill audio on HP nx6325 by Andrew Morton on Tuesday, September 25, 2007 - 12:08 pm. (3 messages)

Next thread: [PATCH] JBD: Export jbd-debug via debugfs by Jose R. Santos on Tuesday, September 25, 2007 - 12:33 pm. (1 message)
To: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 12:23 pm

Hi,

After upgrading to 2.6.23-rc7 for testing purposes I noticed that the
contents of /proc/bus/input/devices changed a little bit.

I now have the following entries for my USB-keyboard

....
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/input/input2
....

with kernel < 2.6.23 I saw

....
P: Phys=/input0
S: Sysfs=/class/input/input0
....

I this a "wanted" change or should I still see the same with 2.6.23?

Kind regards,
Michael
-

To: Michael Guntsche <mike@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 1:51 pm

Hi Michael,

Is this with CONFIG_SYSFS_DEPRECATED=y?

--
Dmitry
-

To: Dmitry Torokhov <dmitry.torokhov@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 2:13 pm

No, CONFIG_SYSFS_DEPRECATED is not set with both kernels. I had a
closer look and noticed that I for some reason usbhid AND usbkbd were
loaded.
I removed them both and loaded usbhid again. Now I had two entries
for my keyboard.

I: Bus=0003 Vendor=08d4 Product=0006 Version=0110
N: Name="Fujitsu Siemens Computers Fujitsu Siemens Computers GmbH USB/
PS2 Keyboard v1.1"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event0
B: EV=120003
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: LED=1f

I: Bus=0003 Vendor=08d4 Product=0006 Version=0110
N: Name="Fujitsu Siemens Computers Fujitsu Siemens Computers GmbH USB/
PS2 Keyboard v1.1"
P: Phys=usb-0000:00:1d.0-2/input1
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=1078 800c000 1e0000 0 0 0

Notice that Sysfs still shows /class/input...

With 2.6.23-rc7 ONLY usbhid got loaded and I got

I: Bus=0003 Vendor=08d4 Product=0006 Version=0110
N: Name="Fujitsu Siemens Computers Fujitsu Siemens Computers GmbH USB/
PS2 Keyboard v1.1"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/input/input4
U: Uniq=
H: Handlers=kbd event2
B: EV=120003
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: LED=1f

I: Bus=0003 Vendor=08d4 Product=0006 Version=0110
N: Name="Fujitsu Siemens Computers Fujitsu Siemens Computers GmbH USB/
PS2 Keyboard v1.1"
P: Phys=usb-0000:00:1d.0-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.1/input/input5
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=1078 800c000 1e0000 0 0 0

So actually Phys is the same, just Sysfs got changed.

Hope that helps,
Michael

-

To: Michael Guntsche <mike@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 4:41 pm

Ok, this is expected. Input devices were converted form class devices
into standard devices. Unless SYSFS_DEPRECTAED is set to Y sysfs
changes are expected.

--
Dmitry
-

To: Dmitry Torokhov <dmitry.torokhov@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 5:00 pm

Ah ok, so this is a known change. I thought about enabling it for
testing but did not do it because I did not do it with 2.6.22 either.
Thanks for the clarification Dmitry.

Kind regards,
Michael
-

Previous thread: Re: 2.6.23-rc8-mm1, -rc7-mm1 kill audio on HP nx6325 by Andrew Morton on Tuesday, September 25, 2007 - 12:08 pm. (3 messages)

Next thread: [PATCH] JBD: Export jbd-debug via debugfs by Jose R. Santos on Tuesday, September 25, 2007 - 12:33 pm. (1 message)