Re: [PATCH v3 3/3] usb: otg: utils: devres: Add API's to associate a device with the phy

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

 



Hi,

On Thu, May 31, 2012 at 5:31 PM, Chen Peter-B29397 <B29397@xxxxxxxxxxxxx> wrote:
>
>
>>
>> Used devres API's to associate the phy with a device so that on
>> driver detach, release function is invoked on the devres data(usb_phy)
>> and devres data(usb_phy) is released.
> If the phy is got by two devices (like otg and device), will it cause any
> problems?

No. In that case the phy will be just associated with two devices
(because devm_usb_get_phy will be called twice) and on driver detach,
usb_put_phy will be called twice (corresponding to each driver that
called  devm_usb_get_phy). Do you suspect of any problems?

Thanks
Kishon
--
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