Re: Multiple device attachments

2011-07-22 Thread David Young
On Thu, Jul 21, 2011 at 04:24:11PM -0500, Frank Zerangue wrote: The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, …), but only one attachment is made when autoconf is complete. I may have read the code examples

Re: Multiple device attachments

2011-07-22 Thread David Laight
On Thu, Jul 21, 2011 at 05:42:59PM -0500, David Young wrote: I think you mean to ask if one device instance can have more than one parent, e.g., le0 at pci0 le0 at pci1 or le0 at pci0 le0 at isapnp0 I am pretty sure that is not possible. I'm

Re: Multiple device attachments

2011-07-22 Thread Frank Zerangue
I have a hardware configuration with a cmos camera sensor on an i2c bus (for configuring the camera) and connected to an (ipu) image processing controller that acts as a hub for all things video. I envisioned (naturally I think) a camera driver inheriting from two parents 1) i2c bus driver and

Re: Multiple device attachments

2011-07-22 Thread Eduardo Horvath
On Fri, 22 Jul 2011, Frank Zerangue wrote: I have a hardware configuration with a cmos camera sensor on an i2c bus (for configuring the camera) and connected to an (ipu) image processing controller that acts as a hub for all things video. I envisioned (naturally I think) a camera driver

Multiple device attachments

2011-07-21 Thread Frank Zerangue
/sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, …) /* * Devices can have multiple configuration attachments if they attach * to different attributes (busses, or whatever), to allow specification * of multiple match and

Re: Multiple device attachments

2011-07-21 Thread Mouse
/sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) Does anyone know how this is done in practice? device wdc: ata, wdc_common attach wdc at isa with wdc_isa attach wdc at isapnp with wdc_iaspnp attach wdc at ofisa with

Re: Multiple device attachments

2011-07-21 Thread Michael
Hello, On Thu, 21 Jul 2011 14:44:04 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: /sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) /* * Devices can have multiple configuration attachments if they attach

Re: Multiple device attachments

2011-07-21 Thread Frank Zerangue
Thanks -- On Jul 21, 2011, at 3:18 PM, Michael wrote: Hello, On Thu, 21 Jul 2011 14:44:04 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: /sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) /* * Devices

Re: Multiple device attachments

2011-07-21 Thread Frank Zerangue
The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, …), but only one attachment is made when autoconf is complete. I may have read the code examples incorrectly -- please pardon me if I did; but what I want to know is --

Re: Multiple device attachments

2011-07-21 Thread Michael
Hello, On Thu, 21 Jul 2011 16:24:11 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. I may have

Re: Multiple device attachments

2011-07-21 Thread Paul Goyette
On Thu, 21 Jul 2011, Michael wrote: The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. I may have read the code examples incorrectly -- please pardon me if I

Re: Multiple device attachments

2011-07-21 Thread Mouse
The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. For any particular instance of le, yes. I may have read the code examples incorrectly -- please pardon me