Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3608344ioa; Tue, 26 Apr 2022 06:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdpHsQIvMVNvSaCLszPNE+4hOp/qTTozdebSsQT4aN3jY75RKZCX/eFdFjUgpVo100xXJN X-Received: by 2002:a17:902:db04:b0:15d:1ed3:2d3a with SMTP id m4-20020a170902db0400b0015d1ed32d3amr8565711plx.63.1650981018365; Tue, 26 Apr 2022 06:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650981018; cv=none; d=google.com; s=arc-20160816; b=I2eNKEK0mma3rXXqCCsOMiKps58QqmGr+hMtGo9PEhAnCI+30dbGdSDjgBbt1pVN0x P6+8XIUSSHUWZ7OUPW+ep2Zwt/lr3/BkQsp+5IEiM3NefZ8hGL+y/tdZhtZtg9FPjMSQ Lxq7irJYP68x/sJoBfbsc3bbSgW7KiBsLvt42lBbYuElo++NrHQ5NXvZ+Rk86jB9uAob 9hFqyNlLFsQzcTbwjq4+zntvsseVDeU+ozX7TVXBWO+HOgUkf7HK235Dn94r8XBTzAFs gfhzlB7nW6JmkgEkBX4jZqfSU6Guaz+pYU9hhKMywT5wpj5rx2EjLc9zjtP0nRYysaDm iSYQ== 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=ybzAM7WZwk+frN2ZJ6vHm+Ny7cPIuZzAm0h7j7s/XeE=; b=CtWWCY8lMV97G2RCWC03Pd9qH1SH8rEbabn/YS2N4i18I9vS/jYQDaPQRJUNKL5IuI by65Ejt+nTgdqgsoq6H34c3SYU7MtuV76te4QIHrJ05fOFGFOrlIj6Jvpt8mo+cyw8IS iue0ttIwjotnG6gBM5JVhCvKIRMbmucHbSUbHRGg7oVPs6EXC25ZNVQ2ebUs+4ZD2k5j pK2ykOTLmcW3LBpn2wY+IIy2CfbCNEodsZC5HCB+bawFGrCM1dANqVNTrO1Hz6AKKh/H CqGOg1KFcof1nrUtCaYPvdewJJIhG+ATT6EbE74VegCyDr+NLnfBoIkNXbVYf5RspZY6 Olsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IY8D9Xtr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a635256000000b003ab01be4e34si9319204pgl.678.2022.04.26.06.50.01; Tue, 26 Apr 2022 06:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IY8D9Xtr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1349275AbiDZKh6 (ORCPT + 99 others); Tue, 26 Apr 2022 06:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349245AbiDZKgw (ORCPT ); Tue, 26 Apr 2022 06:36:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D9263F1; Tue, 26 Apr 2022 03:20:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE604B81CB3; Tue, 26 Apr 2022 10:20:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 089CFC385A4; Tue, 26 Apr 2022 10:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650968410; bh=e6N7DAl60u2IYLrV1XyeMLr4YJA3vLY7R2dH8ade/hA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IY8D9Xtrx2JuVQo1N8L1aP6atsEBMBwZTgZg5QkHK8+tcSE9/K7XYiRkSkQFQivH5 614QbEYWOjv5h620OOIpkSYhTpQsUn9y0b//hU1iXjKmomrEt53V4NS1kdm8e4arU+ NjJbtDzPrp6i5+g7BaR48Gmvk435wsqjYpq6WpJc= Date: Tue, 26 Apr 2022 12:20:07 +0200 From: Greg Kroah-Hartman To: Daehwan Jung Cc: Mathias Nyman , "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , sc.suh@samsung.com, Krzysztof Kozlowski Subject: Re: [PATCH v4 3/5] usb: host: xhci-plat: support override of hc driver Message-ID: References: <1650964728-175347-1-git-send-email-dh10.jung@samsung.com> <1650964728-175347-4-git-send-email-dh10.jung@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1650964728-175347-4-git-send-email-dh10.jung@samsung.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26, 2022 at 06:18:46PM +0900, Daehwan Jung wrote: > It helps xhci-plat driver increase usability. Vendors could use functions > in xhci-plat mostly and use some overrides to do what they wants without > modifying xhci-plat driver. > > Signed-off-by: Daehwan Jung > --- > drivers/usb/host/xhci-plat.c | 6 ++++++ > drivers/usb/host/xhci-plat.h | 1 + > 2 files changed, 7 insertions(+) > > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c > index a5881ff945a6..6efa3169bf69 100644 > --- a/drivers/usb/host/xhci-plat.c > +++ b/drivers/usb/host/xhci-plat.c > @@ -173,6 +173,12 @@ static const struct of_device_id usb_xhci_of_match[] = { > MODULE_DEVICE_TABLE(of, usb_xhci_of_match); > #endif > > +void xhci_plat_override_driver(const struct xhci_driver_overrides *xhci_vendor_overrides) > +{ > + xhci_init_driver(&xhci_plat_hc_driver, xhci_vendor_overrides); > +} > +EXPORT_SYMBOL(xhci_plat_override_driver); EXPORT_SYMBOL_GPL() please. thanks, greg k-h