From patchwork Thu Sep 8 21:13:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 75830 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp35648qgf; Thu, 8 Sep 2016 14:15:37 -0700 (PDT) X-Received: by 10.66.75.164 with SMTP id d4mr152688paw.22.1473369337069; Thu, 08 Sep 2016 14:15:37 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [198.137.202.9]) by mx.google.com with ESMTPS id z3si48731284pav.257.2016.09.08.14.15.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 14:15:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 198.137.202.9 as permitted sender) client-ip=198.137.202.9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 198.137.202.9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bi6e3-0005tR-5O; Thu, 08 Sep 2016 21:14:03 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bi6dw-0005qa-Mo for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2016 21:13:58 +0000 Received: by mail-pf0-x22d.google.com with SMTP id 128so21765770pfb.3 for ; Thu, 08 Sep 2016 14:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=LXXOAGf198FbhmPxCx4myCAwzH7XxXmDNvdLqEVRYMs=; b=LuLESAq9YKyLEYVZ4wQRI2o5fcT+6mpEQgFaskQj7f1zIRQowRJH5OQeVNlUunxGVR wpq11HKHzi+CK4FJ9WO7cYzFf/W4amv6znn3t4Ln5PVbgaAqaQ8M1eH+o4Er6wUEam14 4DEy61mBPfLNkZe3tV/JP3MusixzVhEIhEZ0s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=LXXOAGf198FbhmPxCx4myCAwzH7XxXmDNvdLqEVRYMs=; b=KkDOBtyvb9F6Su09aHDXdAclvq+6eQtEjHxY0CBzrk5dpEt/f+yvxAqdk5mZhyrKQT g/7pcYokviHT+1VQlb6vZBlpqb+HqvANzdwsor81aYQqWGmZImuD5BUE90uzlOk1zfyp a1ZHl61j7Vl1sBEQOxNOEMpxMIdUyhtFPrbxkbOou+rnftGJ4vTLh2MO1gyE16mgx63v 37zzcb/GWfQ70nqKeKftqlj5Uw/cMr5/3l9JKnFpj8PLVcINHWJTOVUFLNVkMB2aCPdh n3K+IJ6vFtEddCgalzzxqsI+7bpprLn6G/O+vaxQFfP8X9WErfVhwOZ/mEhcOarNlxzN vNXQ== X-Gm-Message-State: AE9vXwNqTwmqayxiP5eTTYF23BcfVNNFTRKuj1xDOBPCIgHBRR82v394MpruRLfTNu/275Ch X-Received: by 10.98.73.22 with SMTP id w22mr121799pfa.62.1473369214205; Thu, 08 Sep 2016 14:13:34 -0700 (PDT) Received: from localhost (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id t7sm5611paz.21.2016.09.08.14.13.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 14:13:33 -0700 (PDT) MIME-Version: 1.0 To: Peter Chen , From: Stephen Boyd In-Reply-To: References: <20160907213519.27340-1-stephen.boyd@linaro.org> Message-ID: <147336920894.5149.4788295408306540134@sboyd-linaro> User-Agent: alot/0.3.7 Subject: Re: [PATCH v4 00/22] Support qcom's HSIC USB and rewrite USB2 HS support Date: Thu, 08 Sep 2016 14:13:28 -0700 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160908_141356_977947_CFFD8322 X-CRM114-Status: GOOD ( 35.51 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Heikki Krogerus , Arnd Bergmann , Neil Armstrong , linux-arm-msm@vger.kernel.org, "linux-usb@vger.kernel.org" , lkml , Bjorn Andersson , devicetree@vger.kernel.org, Rob Herring , Peter Chen , Greg Kroah-Hartman , Andy Gross , "Ivan T. Ivanov" , Kishon Vijay Abraham I , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Quoting Peter Chen (2016-09-07 19:06:45) > On Thu, Sep 8, 2016 at 5:34 AM, Stephen Boyd wrote: > > The state of USB ChipIdea support on Qualcomm's platforms is not great. > > The DT description of these devices requires up to three different nodes > > for what amounts to be the same hardware block, when there should really > > only be one. Furthermore, the "phy" driver that is in mainline (phy-msm-usb.c) > > duplicates the OTG state machine and touches the ci controller wrapper > > registers when it should really be focused on the phy and the ULPI accesses > > needed to get the phy working. There's also a slimmed down phy driver for > > the msm8916 platform, but really the phy hardware is the same as other MSMs, > > so we have two drivers doing pretty much the same thing. This leads to a > > situtaion where we have the chipidea core driver, the "phy" driver, and > > sometimes the ehci-msm.c driver operating the same device all at the same > > time with very little coordination. This just isn't very safe and is > > confusing from a driver perspective when trying to figure out who does what. > > Finally, there isn't any HSIC support on platforms like apq8074 so we > > should add that. > > > > This patch series updates the ChipIdea driver and the MSM wrapper > > (ci_hdrc_msm.c) to properly handle the PHY and wrapper bits at the right > > times in the right places. To get there, we update the ChipIdea core to > > have support for the ULPI phy bus introduced by Heikki. Along the way > > we fix bugs with the extcon handling for peripheral and OTG mode controllers > > and move the parts of phy-usb-msm.c that are touching the CI controller > > wrapper into the wrapper driver (ci_hdrc_msm.c). Finally we add support > > for the HSIC phy based on the ULPI bus and rewrite the HS phy driver > > (phy-usb-msm.c) as a standard ULPI phy driver. > > > > Once this series is accepted, we should be able to delete the phy-usb-msm.c, > > phy-qcom-8x16-usb.c, and ehci-msm.c drivers from the tree and use the ULPI > > based phy driver (which also lives in drivers/phy/ instead of drivers/usb/phy/) > > and the chipidea host core instead. > > > > I've also sent separate patches for other minor pieces to make this > > all work. The full tree can be found here[3], hacks and all to get > > things working. I've tested this on the db410c, apq8074 dragonboard, > > and ifc6410 with configfs gadgets and otg cables. > > > > Patches based on v4.8-rc1 > > > > Changes from v3: > > > > * Picked up Acks from Peter > > > > * Updated extcon consolidation patch per Peter's comments > > > > * Folded in simplification from Heikki for ULPI DT matching > > > > I find the kbuild dependency error when compile your series, I remembered > someone met it before, would you have a solution: Yes. Should I send it through the drm maintainers? ---8<--- From: Stephen Boyd Subject: [PATCH] gpu: Remove depends on RESET_CONTROLLER when not a provider These GPU drivers only depend on the RESET_CONTROLLER config option to fix build issues that existed when there weren't stub reset APIs for reset controller consumers. Given that these drivers aren't providing any reset controllers themselves, they don't actually depend on the API to build (just to function) so they don't need to depend on it. Remove the dependency to fix recursive build errors like the following: drivers/usb/Kconfig:39:error: recursive dependency detected! drivers/usb/Kconfig:39: symbol USB is selected by MOUSE_APPLETOUCH drivers/input/mouse/Kconfig:187: symbol MOUSE_APPLETOUCH depends on INPUT drivers/input/Kconfig:8: symbol INPUT is selected by VT drivers/tty/Kconfig:12: symbol VT is selected by FB_STI drivers/video/fbdev/Kconfig:674: symbol FB_STI depends on FB drivers/video/fbdev/Kconfig:5: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:42: symbol DRM_KMS_FB_HELPER is selected by DRM_KMS_CMA_HELPER drivers/gpu/drm/Kconfig:98: symbol DRM_KMS_CMA_HELPER is selected by DRM_IMX drivers/gpu/drm/imx/Kconfig:1: symbol DRM_IMX depends on IMX_IPUV3_CORE drivers/gpu/ipu-v3/Kconfig:1: symbol IMX_IPUV3_CORE depends on RESET_CONTROLLER drivers/reset/Kconfig:4: symbol RESET_CONTROLLER is selected by USB_CHIPIDEA drivers/usb/chipidea/Kconfig:1: symbol USB_CHIPIDEA depends on USB_EHCI_HCD drivers/usb/host/Kconfig:84: symbol USB_EHCI_HCD depends on USB Cc: Arnd Bergmann Cc: David Airlie Cc: Cc: Heiko Stuebner Cc: Mark Yao Cc: Philipp Zabel Signed-off-by: Stephen Boyd --- drivers/gpu/drm/rockchip/Kconfig | 1 - drivers/gpu/drm/tegra/Kconfig | 1 - drivers/gpu/ipu-v3/Kconfig | 1 - 3 files changed, 3 deletions(-) -- 2.9.0.rc2.8.ga28705d _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig index 3c58669a06ce..6f7f9c59f05b 100644 --- a/drivers/gpu/drm/rockchip/Kconfig +++ b/drivers/gpu/drm/rockchip/Kconfig @@ -1,7 +1,6 @@ config DRM_ROCKCHIP tristate "DRM Support for Rockchip" depends on DRM && ROCKCHIP_IOMMU - depends on RESET_CONTROLLER select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_PANEL diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig index 63ebb154b9b5..bbf5a4b7e0b6 100644 --- a/drivers/gpu/drm/tegra/Kconfig +++ b/drivers/gpu/drm/tegra/Kconfig @@ -3,7 +3,6 @@ config DRM_TEGRA depends on ARCH_TEGRA || (ARM && COMPILE_TEST) depends on COMMON_CLK depends on DRM - depends on RESET_CONTROLLER select DRM_KMS_HELPER select DRM_MIPI_DSI select DRM_PANEL diff --git a/drivers/gpu/ipu-v3/Kconfig b/drivers/gpu/ipu-v3/Kconfig index aefdff95356d..08766c6e7856 100644 --- a/drivers/gpu/ipu-v3/Kconfig +++ b/drivers/gpu/ipu-v3/Kconfig @@ -1,7 +1,6 @@ config IMX_IPUV3_CORE tristate "IPUv3 core support" depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM - depends on RESET_CONTROLLER select GENERIC_IRQ_CHIP help Choose this if you have a i.MX5/6 system and want to use the Image