Re: Platform device id

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hmh@...>
Cc: David Brownell <david-b@...>, linux-kernel@vger.kernel.org <linux-kernel@...>, gregkh@suse.de <gregkh@...>, dmitry.torokhov@gmail.com <dmitry.torokhov@...>
Date: Tuesday, September 11, 2007 - 10:05 am

On 9/11/2007, "Henrique de Moraes Holschuh" <hmh@hmh.eng.br> wrote:

This shouldn't be the case. Ex-class devices still have their own
directory in sysfs. For example, the radeonfb driver spawns 4 i2c buses
(i2c-adapter class), each gets its own directory.

One problem at the moment is the hwmon subsystem, because we create the
attributes in the physical device rather than in the hwmon class device.
This is for historical reasons, but I presume that we'll have to change
this someday to work around the name space collision issue you
mentioned. If other subsystems are doing the same mistake, this can
explain your problem, but this is a subsystem implementation issue, not
a problem with class devices themselves.


I don't agree. This is how things were designed.


There's really no reason why you would be randomly poking at attributes
without knowing which class device they belong to.

--
Jean Delvare
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Platform device id, Jean Delvare, (Fri Sep 7, 9:35 am)
Re: Platform device id, Greg KH, (Sat Sep 8, 9:30 am)
[PATCH] Make platform_device.id an int, Jean Delvare, (Sun Sep 9, 6:54 am)
Re: Platform device id, Dmitry Torokhov, (Fri Sep 7, 10:58 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 4:56 pm)
Re: Platform device id, Jean Delvare, (Sat Sep 8, 4:40 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Mon Sep 10, 6:45 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 12:41 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 5:00 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 5:41 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 6:04 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 8:18 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 11:50 pm)
Re: Platform device id, Jean Delvare, (Sat Sep 8, 4:55 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Mon Sep 10, 6:52 pm)
Re: Platform device id, Jean Delvare, (Tue Sep 11, 3:43 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Tue Sep 11, 9:44 am)
Re: Platform device id, Jean Delvare, (Tue Sep 11, 10:05 am)
Re: Platform device id, Jean Delvare, (Fri Sep 7, 12:36 pm)