Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5341712rwb; Sun, 4 Dec 2022 19:43:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kWxN1YugiBK+mRKBLKWIrz8946n8rw3S+xnpnlcYewEPD35s8S4HB9GTB/iCn3DipjM3b X-Received: by 2002:a17:906:bb06:b0:7ba:708f:2a03 with SMTP id jz6-20020a170906bb0600b007ba708f2a03mr45211994ejb.167.1670211790328; Sun, 04 Dec 2022 19:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670211790; cv=none; d=google.com; s=arc-20160816; b=rUdquLUyR9op6kTNGqP46y7OT1w2yREQIAjd/b2PVnDOy2EcAeQWeOwdCl9d+dXZ8J f8sj3RKo0CugizzzRuPdB2LojfDc3gQcYc/dVwS8/gRCTpNaLnd0jfJW7X9AQjp8x5s2 159nKzfoAjPxNy67RtkgNyadmEXG7ZDkZIOCEnJ2I5wkRVRLzt42TvS3Kdl4PJTWSPG0 hpNWggTnQnheCyTaKcRp/7IxHZAjoy1irYd9Z56qi/xhN/ADqTPF5Ik0m7Ua+pyrKUaP Qm6otw3A3995f369JciG3VNfTJA2xaSWYyGY2zecCgUB2gBnfBB8DX5CjZr86rtbIz5g dGfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=vykUbSZQ2tSNJ4Q6qaLHYNUo8WIpdFle8u7wtY6lG5A=; b=xaAbZ8rxB/nT0cavmqbAoJEJhzEQ440KfAQp/9ihAkpWa8zaaoLpzzu6EeV7VVXAGk WZlVWC0aTAJa7zR84qnwiALruR76ouxPkz5YWyuLQyWzkUtu4PyINxzjSLw28HK5qgDO /X4Q8v2FRrl/e+VU5qvMWTUt7YlCfTRv1S8bzVcGreywO0cGVyr5aeUvdnvas8LgkLQ7 ZvAJmDy+0Qpc4bluxxbKjCds9oJX3wXIphJUMp/kNmy+BnNC37fQNlp84jXbzAQeMD4J sw+DvY/Kwz6UFLeIw0tJhcjY+QtO7Yf2Oz7c523c93B/g6C7tDQn6G/T1nVGk5g/O2aD 5hFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=G0PQ0aGf; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb40-20020a170907962800b0078034101c0esi11528060ejc.978.2022.12.04.19.42.51; Sun, 04 Dec 2022 19:43:10 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=G0PQ0aGf; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbiLEDg0 (ORCPT + 82 others); Sun, 4 Dec 2022 22:36:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbiLEDgV (ORCPT ); Sun, 4 Dec 2022 22:36:21 -0500 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C205013DF4 for ; Sun, 4 Dec 2022 19:36:18 -0800 (PST) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221205033615epoutp03b1c7dfddd3ad0908feea8502c5c145d8~tyGV842jT1215512155epoutp03G for ; Mon, 5 Dec 2022 03:36:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221205033615epoutp03b1c7dfddd3ad0908feea8502c5c145d8~tyGV842jT1215512155epoutp03G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1670211375; bh=vykUbSZQ2tSNJ4Q6qaLHYNUo8WIpdFle8u7wtY6lG5A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G0PQ0aGfbsmH2quk4G3iyHZgJJSDkAixc5TS58HNxPaoS/nDrgVNBDybfXaappqjt J62hSqOKjKnBavBXS1xNZcb6OW6UStLKVDtV20dFY/ZxiCyvyKSHBsJic0qMeA5KAb eJpGaCwICqv132CgiY9cmnpuRPhHm7INZ1qTJBFE= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20221205033614epcas2p1868ca6484b026c918fe3d253cc156712~tyGVahCgL1877318773epcas2p1G; Mon, 5 Dec 2022 03:36:14 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4NQTjT6Y4tz4x9Pt; Mon, 5 Dec 2022 03:36:13 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 9B.17.12278.D276D836; Mon, 5 Dec 2022 12:36:13 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20221205033613epcas2p26b786c2a02615009d5d8c705187c3f76~tyGUKviyE2041720417epcas2p2-; Mon, 5 Dec 2022 03:36:13 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221205033613epsmtrp2989e175d66a68b16f0b25424b5609b85~tyGUJo7Pc0472304723epsmtrp2r; Mon, 5 Dec 2022 03:36:13 +0000 (GMT) X-AuditID: b6c32a46-ad1fd70000012ff6-04-638d672d6153 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id B7.74.14392.C276D836; Mon, 5 Dec 2022 12:36:12 +0900 (KST) Received: from ubuntu (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221205033612epsmtip22e7eca52c67549d89f161b3e1a48b628~tyGT13sWv0727907279epsmtip27; Mon, 5 Dec 2022 03:36:12 +0000 (GMT) Date: Mon, 5 Dec 2022 12:30:34 +0900 From: Jung Daehwan To: Greg Kroah-Hartman Cc: Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Mathias Nyman , Arnd Bergmann , Linus Walleij , Colin Ian King , Artur Bujdoso , Juergen Gross , Tomer Maimon , "open list:USB SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES" , "open list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES" , open list , sc.suh@samsung.com, taehyun.cho@samsung.com, jh0801.jung@samsung.com, eomji.oh@samsung.com Subject: Re: [RFC PATCH v1 2/2] usb: host: add xhci-exynos to support Exynos SOCs Message-ID: <20221205033034.GE54922@ubuntu> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Brightmail-Tracker: H4sIAAAAAAAAA02Tf0xTVxTHd/va11JW8qyAd7AoK8MEGNDyq1cUMgdqF4khISbL3NbV9gW6 Qtv1tQZ/bEAIP6wTETBikQFCRIEMh6Xj96AykIpAcDAx1ADSTVncFBUYyraWB8b/PufH95x7 zr2Xg/Ef4z4cpVpP6tSyNAHOZV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Zc7qvJ3trIX8lasH9rMsMGD68OtORreu0z6rwoh+ S/U+nQTTeRaqlwqTtgh27+HdVvznuVnZczNJ4ymLYu6sCer7ukh/dkHmjKptJrtULm/Welwf vzh+13L++zELFrNpm9bP2Bg6y6ZmS1ZyjqPHv6t7pe4qsRRnJBpqMRcVJwIAzNtGT0gDAAA= X-CMS-MailID: 20221205033613epcas2p26b786c2a02615009d5d8c705187c3f76 X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_15cf8_" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221201021942epcas2p2429ed37e1f6146b6e1a5bef23141b3f7 References: <1669860811-171746-1-git-send-email-dh10.jung@samsung.com> <1669860811-171746-3-git-send-email-dh10.jung@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 ------nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_15cf8_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Thu, Dec 01, 2022 at 09:06:55AM +0100, Greg Kroah-Hartman wrote: > On Thu, Dec 01, 2022 at 11:13:31AM +0900, Daehwan Jung wrote: > > This driver works with xhci platform driver. It needs to override > > functions of xhci_plat_hc_driver. Wakelocks are used for sleep/wakeup > > scenario of system. > > So this means that no other platform xhci driver can be supported in the > same system at the same time. > > Which kind of makes sense as that's not anything a normal system would > have, BUT it feels very odd. This whole idea of "override the platform > driver" feels fragile, why not make these just real platform drivers and > have the xhci platform code be a library that the other ones can use? > That way you have more control overall, right? > > thanks, > > greg k-h > Currently It seems there are 2 ways to excute own function. 1. xhci_plat_priv -> This is hard to use it if the driver invokes xhci platform driver from dwc3_host_init(usb/dwc/host.c). I can't pass driver data during probe. 2. xhci_driver_overrides -> This is only useful if I has own xhci driver. That's why I wanted to extend overriding concept of xhci platform driver. If some code is better to be directly in xhci platform driver than xhci-exynos, I will modify it. Best Regard, Jung Daehwan ------nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_15cf8_ Content-Type: text/plain; charset="utf-8" ------nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_15cf8_--