Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1417350
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v9 12/14] usb: hcd: Adapt to OTG core |
| Date | 2016-06-08 14:20 +0200 |
| Message-ID | <rHKCK-8sB-39@gated-at.bofh.it> (permalink) |
| References | <rHHER-6Fd-3@gated-at.bofh.it> <rHHER-6Fd-7@gated-at.bofh.it> <rHK9H-83E-5@gated-at.bofh.it> <rHKt4-8pd-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 6/8/2016 3:06 PM, Roger Quadros wrote:
>>> Introduce usb_otg_add/remove_hcd() for use by host
>>> controllers that are part of OTG/dual-role port.
>>>
>>> Non Device tree platforms can use the otg_dev argument
>>> to specify the OTG controller device. If otg_dev is NULL
>>> then the device tree node's otg-controller property is used to
>>> get the otg_dev device.
>>>
>>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>>> Acked-by: Peter Chen <peter.chen@nxp.com>
>>> ---
>>> drivers/usb/core/hcd.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
>>> include/linux/usb/hcd.h | 4 ++++
>>> 2 files changed, 59 insertions(+)
>>>
>>> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
>>> index ae6c76d..c6f4155 100644
>>> --- a/drivers/usb/core/hcd.c
>>> +++ b/drivers/usb/core/hcd.c
>> [...]
>>> @@ -3025,6 +3030,56 @@ void usb_remove_hcd(struct usb_hcd *hcd)
>>> }
>>> EXPORT_SYMBOL_GPL(usb_remove_hcd);
>>>
>>> +static struct otg_hcd_ops otg_hcd_intf = {
>>> + .add = usb_add_hcd,
>>> + .remove = usb_remove_hcd,
>>> + .usb_bus_start_enum = usb_bus_start_enum,
>>> + .usb_control_msg = usb_control_msg,
>>> + .usb_hub_find_child = usb_hub_find_child,
>>> +};
>>> +
>>> +/**
>>> + * usb_otg_add_hcd - Register the HCD with OTG core.
>>> + * @hcd: the usb_hcd structure to initialize
>>> + * @irqnum: Interrupt line to allocate
>>> + * @irqflags: Interrupt type flags
>>> + * @otg_dev: OTG controller device managing this HCD
>>
>> Device managing a driver? That's interesting. :-)
>
> Well it is the OTG controller instance really.
> How else do you want me to write it?
Just HC again? Or maybe HCI (HC interface)?
> cheers,
> -roger
MBR, Sergei
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v9 12/14] usb: hcd: Adapt to OTG core Roger Quadros <rogerq@ti.com> - 2016-06-08 11:10 +0200
Re: [PATCH v9 12/14] usb: hcd: Adapt to OTG core Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-06-08 13:50 +0200
Re: [PATCH v9 12/14] usb: hcd: Adapt to OTG core Roger Quadros <rogerq@ti.com> - 2016-06-08 14:10 +0200
Re: [PATCH v9 12/14] usb: hcd: Adapt to OTG core Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-06-08 14:20 +0200
Re: [PATCH v9 12/14] usb: hcd: Adapt to OTG core Roger Quadros <rogerq@ti.com> - 2016-06-09 09:30 +0200
csiph-web