Re: [PATCH 0/4] add xhci hooks for USB offload

2021-01-27 Thread Howard Yen
On Tue, Jan 26, 2021 at 10:19 PM Greg KH wrote: > > On Fri, Jan 22, 2021 at 05:32:58PM +0200, Mathias Nyman wrote: > > On 20.1.2021 12.04, Howard Yen wrote: > > > On Tue, Jan 19, 2021 at 8:47 PM Mathias Nyman > > > wrote: > > >> > > >> On

Re: [PATCH 0/4] add xhci hooks for USB offload

2021-01-20 Thread Howard Yen
On Tue, Jan 19, 2021 at 8:47 PM Mathias Nyman wrote: > > On 19.1.2021 12.10, Howard Yen wrote: > > To let the xhci driver support USB offload, add hooks for vendor to have > > customized behavior for the initialization, memory allocation, irq work, and > > device context

[PATCH 1/4] usb: host: add xhci hooks for USB offload

2021-01-19 Thread Howard Yen
x "xhci_vendor_" on the ops in xhci_vendor_ops. For example, vendor_init ops will be invoked by xhci_vendor_init() hook, is_usb_offload_enabled ops will be invoked by xhci_vendor_is_usb_offload_enabled(), and so on. Signed-off-by: Howard Yen --- drivers/usb/host/xhci-hub.c |

[PATCH 2/4] usb: host: export symbols for xhci hooks usage

2021-01-19 Thread Howard Yen
. Signed-off-by: Howard Yen --- drivers/usb/host/xhci-mem.c | 3 +++ drivers/usb/host/xhci-ring.c | 6 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index f3dbc5956290..69f19774b914 100644 --- a/drivers/usb/host

[PATCH 3/4] usb: xhci-plat: add xhci_plat_priv_overwrite

2021-01-19 Thread Howard Yen
to invoke xhci_plat_register_vendor_ops() to register the vendor specific vendor_ops. And the vendor_ops will overwrite the vendor_ops inside xhci_plat_priv in xhci_vendor_init() during xhci-plat-hcd probe. Signed-off-by: Howard Yen --- drivers/usb/host/xhci-plat.c | 20 d

[PATCH 4/4] dt-bindings: usb: usb-xhci: add USB offload support

2021-01-19 Thread Howard Yen
Document USB offload support for usb-xhci. For example: &usbdrd_dwc3 { ... /* support usb offloading, 0: disabled, 1: audio */ offload = <1>; ... }; Signed-off-by: Howard Yen --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + 1 file

[PATCH 0/4] add xhci hooks for USB offload

2021-01-19 Thread Howard Yen
To let the xhci driver support USB offload, add hooks for vendor to have customized behavior for the initialization, memory allocation, irq work, and device context synchronization. Detail is in each patch commit message. Howard Yen (4): usb: host: add xhci hooks for USB offload usb: host