Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5290156rwb; Sun, 4 Dec 2022 18:35:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7C/62mFapFFV3D5k88q/35LFq6WZnAcGEIUwEYDUEic035DwhKmKdwYL8eg+deQtccWead X-Received: by 2002:a63:1920:0:b0:478:7e03:1ffe with SMTP id z32-20020a631920000000b004787e031ffemr14152777pgl.209.1670207710329; Sun, 04 Dec 2022 18:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670207710; cv=none; d=google.com; s=arc-20160816; b=nCxgqEfXFonZFgePt+fZCgIOIZZeePBIv+rgCto71HRMQpbhJ2/n1D/8tWSAdkgdji blZzKRyYC/LOsKWSNoFBl1gLvkyi9ydQajfZTpzx8WDI5Kr+7SBJwH09o6m1odORExbH LZi9u07JTxHpeetpSZ+Qc94bR/l26o4y2fAoRebWSyF8ddxcbzqohXUGYARyLotI0Guf ghK7E3CFMR4FiYNuTV80E1V6bcQqQREhLnm8UjP4Q1vZdZsyz/LKcoG7pV3cGZewHkOO EVaVhmA5msffpmk5KpRPhzfCXGwBncw/z3vmeiX67m+18wifP9MtkwaiM6OxE7JersgD u14A== 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=TQMO1HpsoCxaU8DiNFBs3GsDK7ImM5RabRrq5luFARA=; b=cnNWozMizoI8/1soz4buiBu71jSPfqHK4h6bwgOI8dppSSVvDKKhlVDFgA11hzwj0C bMK28UfdBqxzNWZEJPbUTl7ptI0aZCDfWIe/LTNqTAcIVXSxNjpNa2ovtoAREEJ50leh 2Z+EvekQnYMWlzzMC41PLqzSZtI3pIVpCiIBYGG+CwbG86LMcUjFzGuoMdYAzGNcf4I4 okmBmdjpDh88wzphIHCoExCMiwuflJBk24+3zo1FSAFWDY5JHMycbYPnPTIJo2ScBILg Ew3nPNHHrR0CQvVtKIdOQNTHsAeR9a8wcFS9a4lJbAF0LAUrLXxmSgfj/PP7xThI1uXN KQBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OjShH931; 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 y65-20020a638a44000000b00476990d057asi2290421pgd.472.2022.12.04.18.34.59; Sun, 04 Dec 2022 18:35: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=OjShH931; 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 S231178AbiLECRa (ORCPT + 84 others); Sun, 4 Dec 2022 21:17:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiLECR1 (ORCPT ); Sun, 4 Dec 2022 21:17:27 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB1F12A92 for ; Sun, 4 Dec 2022 18:17:25 -0800 (PST) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221205021723epoutp04f54a267ef80bee75335267ff07bd47bc~txBfya6JM0645906459epoutp04K for ; Mon, 5 Dec 2022 02:17:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221205021723epoutp04f54a267ef80bee75335267ff07bd47bc~txBfya6JM0645906459epoutp04K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1670206643; bh=TQMO1HpsoCxaU8DiNFBs3GsDK7ImM5RabRrq5luFARA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OjShH931MUEnXin1Bturi2CXgVKAtrAYsX4uCK/K4b5HrTqMTV5w6HkJNyOzPlDLF Ur2YXQZOa6gJABNNuxC7JGYVKv/4OciBDmMowscU23qT5SfkYDRPdeLhazTXuNqymA 9hKk3DQhikHr8rSTfabygJoUsXNIsOxSb7jmM/yo= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20221205021723epcas2p3a8a1d21f640f6687bb79bf93db20b12d~txBfIftdR2144621446epcas2p3W; Mon, 5 Dec 2022 02:17:23 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.68]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4NQRyV50w3z4x9Q6; Mon, 5 Dec 2022 02:17:22 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 9E.AF.08487.2B45D836; Mon, 5 Dec 2022 11:17:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20221205021722epcas2p3617020b6605820b9e10590af26f96d59~txBeALNMF2144621446epcas2p3P; Mon, 5 Dec 2022 02:17:22 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221205021722epsmtrp15791d2e2e88d229ac94c6bd04a9e90b2~txBd-IFYe1913919139epsmtrp1j; Mon, 5 Dec 2022 02:17:22 +0000 (GMT) X-AuditID: b6c32a47-ac5b870000002127-74-638d54b21719 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id CB.64.18644.1B45D836; Mon, 5 Dec 2022 11:17:21 +0900 (KST) Received: from ubuntu (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221205021721epsmtip2d0e2f9ed7eb4e01ddf5486274d8dd97d~txBdtqHBf2291822918epsmtip2i; Mon, 5 Dec 2022 02:17:21 +0000 (GMT) Date: Mon, 5 Dec 2022 11:11:43 +0900 From: Jung Daehwan To: Arnd Bergmann Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Mathias Nyman , 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: <20221205021143.GB54922@ubuntu> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Brightmail-Tracker: H4sIAAAAAAAAA02Te0xTVxzHc3p7by+4mkuBcQDH6oVswni0lcdFxZDp9CYSw4aiQjYo7bVl lLZpi8PNDRbHY8wpYglY2BQhA/FRuSKBChKgccIYkDFxknVMxxjF4BwQh6jbWi4s/vc539/j e37ngSOiWSwAz9aaGINWriExT35bX2hMBLvnS4Vk2h5C/fp1G0Y9r7gpoO6WXwRURckCSp2x D6HUQGMdjzpab8Wo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tedU9XEUHE1xNw2dXDZ993muPx9fdDA8KmXuqxP6/PDkMcYbsTM2 7Fuxh3GR1RH3A5u8zaouKuhsjc37/Zw5g39v9NqGVw9cO7y2K7EUZyQaajEXFScCAFEoiJ1I AwAA X-CMS-MailID: 20221205021722epcas2p3617020b6605820b9e10590af26f96d59 X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_151ec_" 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=unavailable 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=_151ec_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Thu, Dec 01, 2022 at 10:01:44AM +0100, Arnd Bergmann wrote: > On Thu, Dec 1, 2022, at 09:06, 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? > > Agreed, having another layer here (hcd -> xhci -> xhcd_platform -> > xhcd_exynos) would fit perfectly well into how other SoC specific > drivers are abstracted. This could potentially also help reduce > the amount of code duplication between other soc specific variants > (mtk, tegra, mvebu, ...) that are all platform drivers but don't > share code with xhci-plat.c. > > Alternatively, it seems that all of the xhci-exynos support could > just be part of the generic xhci-platform driver: as far as I can > tell, none of the added code is exynos specific at all, instead it > is a generic xhci that is using the wakeup_source framework. > > It should be possible to check at runtime whether an xhci-platform > instance uses the wakeup source or not, and then have the same > driver work across more platforms. > > Arnd > Currently there's no other platforms using wakelock. I wanted to add xhci-exynos as I think Exynos use it specially. I also agree we can add it on xhci platform driver if needed. Best Regards, Jung Daehwan ------nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_151ec_ Content-Type: text/plain; charset="utf-8" ------nsGjZeq2cmX7r6z8R2mwVRxDvTH8Yl9kQPEM01OfpImQQXYH=_151ec_--