Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2691622pxb; Tue, 19 Jan 2021 03:51:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3o8RlK9xmSeTzp5ODGZRgxEzP9yyfgQZUrrs5RipJbimw/Lj7MYspnXXlbHGIyyXETJAJ X-Received: by 2002:a17:906:ca08:: with SMTP id jt8mr2606481ejb.368.1611057100688; Tue, 19 Jan 2021 03:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611057100; cv=none; d=google.com; s=arc-20160816; b=DZomupjjAB8rhOMZbH6/xqCeWaIMBvb9VG5jt7X9pFRJUF8KFwNB8jaUnQI5xddMMb AQZqWhadfqtosPZiVQM1g9g/L2rohS8SofazTyRtVM2gN5ZJFhE12QnctUipTsw0ywHz 6OO2KYIWS0URBc/8tdQeqT0bQK6gJQ2Hx//3RQitlTWCMidgF3r6OwH5Y2RuhFhV6oQr wYr8wbfy/xexz7GsJfkxxeMCb459Jkkhw8PktaCGRnahUaczWideLc1/qYnyyvpXXcVu hqZwyWT2tn6Ws7c8GSynL6Jru1Zv1JnjRqPLPmgXvjf3FvisbfjXWSdBfH1ueivB04pp 5qkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1LYVmZMEX0IHR5Yp52HBunOPBUL5fombaAa0NigXrzY=; b=A6ww+9ZVuFX4a1OupXFuZN1tWztzkt/SilBzX21uAR48Z1Hdhr900TGuPUqcAcHPuz 6AMGpAK8biUf3ykfElmjNoz4EAjboXnyvjOL/bsHBAK09NzlENJ5JCG52jSnCmYANEg/ 1CiV0X0UiWH8YbyGYcNWp5cDR5z2RH8LaDGCUgzqriltXpTc7R2ayss72dey/awCJUcf HzniBB9n8arcocoznAOJ97x3hZcHPadVViEmtc77j7NUgtXDKzSz8gOPHg7eI+OFTNZG 1iJsrwnmWj3DgnGbcihrux+iVCr2e4Xdt63Lkfs4OVwUETfN6MPr9GksceL3XsSBlA4b nTbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iB7K0NHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si262735ejf.85.2021.01.19.03.51.17; Tue, 19 Jan 2021 03:51:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iB7K0NHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391019AbhASKwH (ORCPT + 99 others); Tue, 19 Jan 2021 05:52:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:41914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731918AbhASKZ7 (ORCPT ); Tue, 19 Jan 2021 05:25:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 175F823121; Tue, 19 Jan 2021 10:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611051918; bh=rJ1uCicSSQ5/QeLcb18MjtBsaOZqSMFDCFq0yZetY5Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iB7K0NHSjmHrAKf8s6td3w+KUc6daSeEdRFYyfNGIuWHEP2y8BAvt/TTlRUiIWkUI SSk+yCqsmtp85Tc25Qr/I5dc1DAwGQHKoJvtjKACnHukZMY5bIx/TDGzavzUsrOV0l mOdvSV4TULndwGlVYyAmai06rf29xq+K0zwkWdQQ= Date: Tue, 19 Jan 2021 11:25:15 +0100 From: Greg KH To: Howard Yen Cc: robh+dt@kernel.org, mathias.nyman@intel.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] add xhci hooks for USB offload Message-ID: References: <20210119101044.1637023-1-howardyen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119101044.1637023-1-howardyen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 06:10:40PM +0800, 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 synchronization. Detail is in each patch commit message. > > Howard Yen (4): > usb: host: add xhci hooks for USB offload > usb: host: export symbols for xhci hooks usage > usb: xhci-plat: add xhci_plat_priv_overwrite > dt-bindings: usb: usb-xhci: add USB offload support > > .../devicetree/bindings/usb/usb-xhci.txt | 1 + > drivers/usb/host/xhci-hub.c | 5 + > drivers/usb/host/xhci-mem.c | 99 ++++++++++++++++--- > drivers/usb/host/xhci-plat.c | 45 ++++++++- > drivers/usb/host/xhci-plat.h | 9 ++ > drivers/usb/host/xhci-ring.c | 19 +++- > drivers/usb/host/xhci.c | 89 +++++++++++++++++ > drivers/usb/host/xhci.h | 38 +++++++ > 8 files changed, 289 insertions(+), 16 deletions(-) Thanks so much for posting this. A bit of background for the lists. I helped review previous versions of this patchset from Howard as he worked to convert the hacks from a previous vendor into something that would be semi-sane. It would be great if we can take the previously-submitted Samsung usb-audio hooks (as published in their kernel sources for their last-year phones) and get it into something mergable with this scheme as well, as this is the "correct" way to do what they were wanting to do. Although I know that is outside of the work you probably have time for, maybe I will work on that over the next few weeks... thanks, greg k-h