From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB353C433EF for ; Sun, 1 May 2022 17:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=t00KYDfgHazPqDbkdr9YQc9EsSPJwI+5yuoNwKvUNFs=; b=dzw84ZrAxh0jGR 78iISZKDZDmrvcTdb5WWSt5ePVsRNAKdAU6hjOsQ5VMzas9e5Ff7/RtZ7oStESxymtLOooOOPCbJY 36oJEjhgpZ8WIP1A4yQRSr10Hm7E488Emq3bAjB+uU0UStXV8/OJo0+y+PF1EtHwx9ShhD2cIHG/H PUAmINZ3BDql/+5pDIQ7C+7fUI//NkftTmNlKHhCRMnpT0koRY/XBT6WSV6mRglpnN9wupzJ0NaDU xHndA2V9ckACI+rv+sJhoST62qE+7aiauY7Rz6WFOejSNZv5aO22d4l+gqBTy6RMgUHFYkymYSOZn 9yo8/diN1gDCzm7QBmKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlDfM-00GeXA-3H; Sun, 01 May 2022 17:47:28 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlDfI-00GeWl-Sx for linux-arm-kernel@lists.infradead.org; Sun, 01 May 2022 17:47:26 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id 6EFCF60F9C; Sun, 1 May 2022 17:47:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC11C385AA; Sun, 1 May 2022 17:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651427242; bh=USoD1iakp9CJbXst8k1QRTjgGeLcsXnn5dbnaXS72aQ=; h=From:To:Cc:Subject:Date:From; b=cz0vFOxQ/Apz6LWbuwj87C45qGoxkONfZZIovoVHnevXP86Md0w8zscF5mRlLr2HV AhVCfRh5uQvOA1LM0vp3gokTAUT+JcCTKFvS8dPEN3rvGI8eo1jjeSiKDgCg8k88YO qMlzy+l/wkgiTcOL1sRyOfRr9u7s2eRGuvTogA7DJA64RCHbgzZd1ralUJc2D2AFHO h+XcL1Nmp7nVZf0eLTN240u59orlEg+ksJ15CVUi/iMzc2vEJrmHkKFEnJhqTppKlD VcQ28uG2NziN5mK+9sNj913IBowTKMxZT/wnRmPqC2Amj2AS+ou2pa0jzxkGlA6M1Y kFumun3zEhdDA== From: Mark Brown To: Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] ARM: dts: imx6qdl-udoo: Disable USB host to work around boot issues Date: Sun, 1 May 2022 18:47:13 +0100 Message-Id: <20220501174713.103449-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1924; h=from:subject; bh=USoD1iakp9CJbXst8k1QRTjgGeLcsXnn5dbnaXS72aQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBibsaNOMg/VWOsxQ1nhg6sZWwa33zpSMEpGEFzSqnF e8gP9MyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYm7GjQAKCRAk1otyXVSH0Bd0B/ 9pswxgPqxmlQ5LYBTKu26aogsan0YRaSrn6HuCezFDOwmphFmHfSd7SDJFMiGGoOB+m3e57pPGuL+5 oiYfTYtisLRf3JbNwM3bi6bOTloaPqLCUKl6RVFOv656+7Nx4slawxrRhSqkUMXxqLMs6P/w1b/EjJ KGKAmNNs9ZiJVCi3WVo8BBAcl4qGNXR7ON+YM+45kaOFSPmd/uMJphb5hB+9kjT0Uyc9AdCuuRN2g8 6vFLBiHH/KHAIrP0AU1f6NPl3mywtGnp+JYUhvzApkoicAVgy78Kk0LSk8kYibiX3pSoyZtJYa2ndS I4Gy1KwmGRI4sFaJ7zRoO9YoqB+sCc X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220501_104725_047287_FDFF4BBA X-CRM114-Status: GOOD ( 19.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Attempting to boot my Udoo Dual and Quad with mainline hangs during boot after printing: [ 3.270471] imx_usb 2184000.usb: No over current polarity defined [ 3.922502] mxs_phy 20c9000.usbphy: Data pin can't make good contact. [ 3.940097] imx_usb 2184200.usb: No over current polarity defined where imx_usb 2184200.usb is usbh1 in the DT. Adding debug prints to the code seems to show that we lock up at the first read in usbmisc_imx6q_init() which in combination with the above logging about the USB controllers suggests that we lock up on the first read in usbmisc_imx6q_init(). Looking at some of the other i.MX6 boards and the warning messages that are being printed suggests that there is bitrot in the DTS for the device so disable it for now, with it disabled the board boots successfully. Clearly this is not a real fix, but it does allow some use of the board with mainline. Similar behaviour is seen all the way back as far as v4.19, I tried going back to when the board was added but had toolchain issues. Vendor provided binaries seem fine on the boards so it seems likely that the hardware is fine and the issue is with some combination of the DT and kernel. This should obviously be resolved properly but for now this at least allows the kernel to boot with reduced functionality on these systems. Signed-off-by: Mark Brown --- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/imx6qdl-udoo.dtsi index ccfa8e320be6..93a8123da27d 100644 --- a/arch/arm/boot/dts/imx6qdl-udoo.dtsi +++ b/arch/arm/boot/dts/imx6qdl-udoo.dtsi @@ -295,7 +295,7 @@ &usbh1 { pinctrl-0 = <&pinctrl_usbh>; vbus-supply = <®_usb_h1_vbus>; clocks = <&clks IMX6QDL_CLK_CKO>; - status = "okay"; + status = "disabled"; }; &usbotg { -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel