On 7/24/07, Simon Arlott <[email protected]> wrote:
On 24/07/07 13:54, Cornelia Huck wrote:
> On Tue, 24 Jul 2007 11:20:02 +0200,
> "Kay Sievers" <[email protected]> wrote:
>
>> It looks fine to me. "device" links must never point to anything else
>> than a bus device.
>
> Hm, but then
> 1. The patch sneaks this check in (the old code only checked for
> dev->parent)
> 2. The code is rather inconsistent now, since none of the other code
> paths check for dev->parent->bus...
Removing the dev->parent->bus check fixes it:
[ 40.043981] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 40.044653] mice: PS/2 mouse device common for all mice
[ 40.044792] dev->parent && !dev->parent->bus:
[ 40.044794] dev->kobj->k_name=event0
[ 40.044796] dev->kobj->name=event0
[ 40.044798] dev->parent->kobj->k_name=input0
[ 40.044800] dev->parent->kobj->name=input0
[ 40.044948] dev->parent && !dev->parent->bus:
[ 40.044951] dev->kobj->k_name=event1
[ 40.044952] dev->kobj->name=event1
[ 40.044954] dev->parent->kobj->k_name=input1
[ 40.044956] dev->parent->kobj->name=input1
[ 40.045075] dev->parent && !dev->parent->bus:
[ 40.045077] dev->kobj->k_name=event2
[ 40.045079] dev->kobj->name=event2
[ 40.045080] dev->parent->kobj->k_name=input2
[ 40.045082] dev->parent->kobj->name=input2
[ 40.067204] input: AT Translated Set 2 keyboard as /class/input/input3
[ 40.067368] dev->parent && !dev->parent->bus:
[ 40.067370] dev->kobj->k_name=event3
[ 40.067372] dev->kobj->name=event3
[ 40.067373] dev->parent->kobj->k_name=input3
[ 40.067375] dev->parent->kobj->name=input3
[ 40.067713] i2c /dev entries driver
[ 40.068190] dev->parent && !dev->parent->bus:
[ 40.068193] dev->kobj->k_name=i2c-0
[ 40.068195] dev->kobj->name=i2c-0
[ 40.068196] dev->parent->kobj->k_name=i2c-0
[ 40.068198] dev->parent->kobj->name=i2c-0
[ 40.068386] dev->parent && !dev->parent->bus:
[ 40.068389] dev->kobj->k_name=i2c-9191
[ 40.068391] dev->kobj->name=i2c-9191
[ 40.068392] dev->parent->kobj->k_name=platform
[ 40.068394] dev->parent->kobj->name=platform
[ 40.068892] dev->parent && !dev->parent->bus:
[ 40.068895] dev->kobj->k_name=i2c-1
[ 40.068896] dev->kobj->name=i2c-1
[ 40.068898] dev->parent->kobj->k_name=i2c-1
[ 40.068899] dev->parent->kobj->name=i2c-1
[ 40.085201] input: Logitech USB-PS/2 Optical Mouse as /class/input/input4
[ 40.085362] dev->parent && !dev->parent->bus:
[ 40.085365] dev->kobj->k_name=mouse0
[ 40.085367] dev->kobj->name=mouse0
[ 40.085368] dev->parent->kobj->k_name=input4
[ 40.085370] dev->parent->kobj->name=input4
[ 40.085528] dev->parent && !dev->parent->bus:
[ 40.085530] dev->kobj->k_name=event4
[ 40.085532] dev->kobj->name=event4
[ 40.085534] dev->parent->kobj->k_name=input4
[ 40.085535] dev->parent->kobj->name=input4
Strange.
What's the setting of CONFIG_SYSFS_DEPRECATED? Maybe there is
something that needs to be fixed in the block patch where the code
snippet is coming from.
Thanks,
Kay
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]