mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.23 /proc/bus/input/devices content question
@ 2007-09-25 16:23 Michael Guntsche
  2007-09-25 17:51 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Guntsche @ 2007-09-25 16:23 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.23 /proc/bus/input/devices content question
  2007-09-25 16:23 2.6.23 /proc/bus/input/devices content question Michael Guntsche
@ 2007-09-25 17:51 ` Dmitry Torokhov
  2007-09-25 18:13   ` Michael Guntsche
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2007-09-25 17:51 UTC (permalink / raw)
  To: Michael Guntsche; +Cc: linux-kernel

Hi Michael,

On 9/25/07, Michael Guntsche <mike@it-loops.com> wrote:
> 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?
>

Is this with CONFIG_SYSFS_DEPRECATED=y?

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.23 /proc/bus/input/devices content question
  2007-09-25 17:51 ` Dmitry Torokhov
@ 2007-09-25 18:13   ` Michael Guntsche
  2007-09-25 20:41     ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Guntsche @ 2007-09-25 18:13 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel


On Sep 25, 2007, at 19:51, Dmitry Torokhov wrote:

> Hi Michael,
>
>> ...
>> I this a "wanted" change or should I still see the same with 2.6.23?
>>
>
> Is this with CONFIG_SYSFS_DEPRECATED=y?

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.23 /proc/bus/input/devices content question
  2007-09-25 18:13   ` Michael Guntsche
@ 2007-09-25 20:41     ` Dmitry Torokhov
  2007-09-25 21:00       ` Michael Guntsche
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2007-09-25 20:41 UTC (permalink / raw)
  To: Michael Guntsche; +Cc: linux-kernel

On 9/25/07, Michael Guntsche <mike@it-loops.com> wrote:
>
> On Sep 25, 2007, at 19:51, Dmitry Torokhov wrote:
>
> > Hi Michael,
> >
> >> ...
> >> I this a "wanted" change or should I still see the same with 2.6.23?
> >>
> >
> > Is this with CONFIG_SYSFS_DEPRECATED=y?
>
> No, CONFIG_SYSFS_DEPRECATED is not set with both kernels.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.6.23 /proc/bus/input/devices content question
  2007-09-25 20:41     ` Dmitry Torokhov
@ 2007-09-25 21:00       ` Michael Guntsche
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Guntsche @ 2007-09-25 21:00 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel


On Sep 25, 2007, at 22:41, Dmitry Torokhov wrote:

>
> 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.
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-25 21:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-25 16:23 2.6.23 /proc/bus/input/devices content question Michael Guntsche
2007-09-25 17:51 ` Dmitry Torokhov
2007-09-25 18:13   ` Michael Guntsche
2007-09-25 20:41     ` Dmitry Torokhov
2007-09-25 21:00       ` Michael Guntsche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®