Re: usb deferred probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christopher Friedt wrote:
> On Mon, Aug 23, 2010 at 5:09 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
>> What do you mean by "its grandparent"?  What is the "grandparent" of
>> hwahc-create?
> 
> directly from hwa-hc.c
> 
> static int hwahc_create(struct hwahc *hwahc, struct usb_interface *iface)
> {
> ...
> wusbhc->uwb_rc = uwb_rc_get_by_grandpa(iface->dev.parent);

If anyone is looking at this and going "what?", iface->dev.parent is the
grandparent of the radio controller class device that is required.

usb_dev -- iface (rc) -- uwb_rc class dev.
        +- iface (wusb)

This might have been better if it had been
uwb_rc_get_for_pal_device(&iface->dev).

David
-- 
David Vrabel, Senior Software Engineer, Drivers
CSR, Churchill House, Cambridge Business Park,  Tel: +44 (0)1223 692562
Cowley Road, Cambridge, CB4 0WZ                 http://www.csr.com/


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux