Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4490608imu; Tue, 29 Jan 2019 02:27:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN55+5ugKNR4uEGgMBo6/5nrM7hKYTphiE6pHLf7dc8jUTbYBDuzZMcdPVfBJsRT6kJ4rZvV X-Received: by 2002:a17:902:6948:: with SMTP id k8mr25016308plt.2.1548757643493; Tue, 29 Jan 2019 02:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548757643; cv=none; d=google.com; s=arc-20160816; b=UYZA3iOXmo8ffQE7dnZvq/Yi/uAfAohG63a5glrIm25f83lRn727W6h3So16LpG49n y1nscMD9BeijZwismQ5ijHkw2SEN+RLNEy5QBTqeQvdYvGSs4hZL1mqPsm3N5dbRgFXj WOWlUCo5ShJ6QPYebDpw9HHnv0TI3CJSBWKi/sobWjZWUZxSU88uVgoDD7IFNUVkgEHN wBcx2GQp1v7RubOH2pgM4X4WnuXHt9Ll7Mwy3Lv0J/0uY61i05lmC9kzGNqCmmw8f9bZ h6J9a5sVu0fN6N51aXzh1AUONHAOXd1Wka1c563fpOybfM02ufeGwXceYJ+w1pklB6iM 5GSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/mz1GCPGNj2WDwAfONjKQvSJS/qM5Bd+vzAaodwt2AI=; b=UyKDpeFvlfR+Xkqa9Ezhqr7OZOS1IevI6QICAofT6Dz1ed3mxe9pswHHv6RAgMiO6h Q5abL6rnBYC0okF39qGDwa5MCzN9Cx62qvxhDdDwAxZYoKFHitcLOa+d5MhIlzHy9YMq 5ARvzf0/SCPdMtaNQpYiffLv+IMbC4QmWqFl5e8VNYF6XS/pE1BJ/M78s7tpOUP3wHEw whPoAvh25WqFs5dX3HUxp0HAQ3aZSUhMufBA9wq54b1Dg2m4Vb+PlU24bj7pOG0eYvUj Ga3ZYGNMKvDEaCCYEE1Z4iXiuNmI26y3MW+LW7sc12z+PCv/ScmCiYOGtKoajvKtujde Jkxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tT6HRKwN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si34495184pfj.222.2019.01.29.02.27.08; Tue, 29 Jan 2019 02:27:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tT6HRKwN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728422AbfA2KZr (ORCPT + 99 others); Tue, 29 Jan 2019 05:25:47 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43615 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfA2KZq (ORCPT ); Tue, 29 Jan 2019 05:25:46 -0500 Received: by mail-pf1-f196.google.com with SMTP id w73so9443483pfk.10; Tue, 29 Jan 2019 02:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/mz1GCPGNj2WDwAfONjKQvSJS/qM5Bd+vzAaodwt2AI=; b=tT6HRKwNFozta4dPNaoKCXZVZ3/a8J5kz+UHuPAKNVPSJkjVBnKG5suITfhCKmXWUA KESYT55yTxiftdKTmQXEKbRcd0Azt+jsJ6mKTHv5ECUqraHcV7Y1b7KhY0YAgIFuIjxd U5lxXMj9zzc3D/Lx5E2UCiWWNNSbTCMejYrAlyVU+HS2A4EavUh5YXljQ5alxeCXJ5F5 rktJ8dANr27oJQm43UI8C/G/qj66bqu7rH7KLya2PbGmA0Hr4Pp7AVVtIWQ1l4T5BoC2 UbJw48nYSTe9NHzMmT5Cv3jURPS0h9Ur5mb4aHZsXdsEj33wlkPiK66bm7jI4leu7jDs gDRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/mz1GCPGNj2WDwAfONjKQvSJS/qM5Bd+vzAaodwt2AI=; b=Qi50moye9qJcMcQOm3BenE6+adu8H5hVUNvDDU3Z+65Mw+m9jSvDNI7sNO1up0iEKo APV3ImITkKyvrRrFiKhdj3yEFgU3YGdu1T69zaSSMY6sputq8kB1pKY57GJxPR5oNUrF L1xjPt/yIv9ebR1cjJSFJEyIsIJkKb23SPtUkdFrbpcu2pJdxRXpppbuQU48Mlwpdmr5 JKLEDWrQ01KV9+gKu9yuzjEnctAf3jl5P2Gx9PRu5kP3waoFX83me3vIml4UnWrXUbUV H/TFmZTeMqZ5cKqFLhBpr3TNjK8/t2CP6AETYKRo3ULjqECCdIomlSNDnK7g8deS1hcI obhA== X-Gm-Message-State: AJcUukcdqsLEDygxD8C0jUqrCRN/EwiTxPpGze+dMLR7an0mLCrImsj0 /mn8zyFmPTzTygVifQWBWJgL7Kp8 X-Received: by 2002:a62:3006:: with SMTP id w6mr25829827pfw.258.1548757545262; Tue, 29 Jan 2019 02:25:45 -0800 (PST) Received: from localhost.localdomain ([103.51.74.149]) by smtp.gmail.com with ESMTPSA id d21sm47744462pfo.162.2019.01.29.02.25.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 02:25:44 -0800 (PST) From: Anand Moon To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Kevin Hilman , Martin Blumenstingl , Neil Armstrong , Jerome Brunet Subject: [PATCHv3 2/2] ARM64: dts: meson-gxbb-odroidc2: Fix usb phy regulator power failed warning Date: Tue, 29 Jan 2019 10:25:21 +0000 Message-Id: <20190129102521.4141-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129102521.4141-1-linux.amoon@gmail.com> References: <20190129102521.4141-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Override the dr_mode from "host" to "otg" for USB_HOST controller (usb0) changes help usb_phy0->usb0 initialization of OTG bus port. Changes fix the below warning. [ 1.183681] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator [ 1.190627] dwc2 c9000000.usb: Linked as a consumer to regulator.0 [ 1.196696] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator [ 1.206094] phy phy-c0000000.phy.0: USB ID detect failed! [ 1.210243] phy phy-c0000000.phy.0: phy poweron failed --> -22 [ 1.216072] WARNING: CPU: 0 PID: 78 at drivers/regulator/core.c:2054 _regulator_put.part.11+0xf0/0xf8 [ 1.225147] Modules linked in: [ 1.228169] CPU: 0 PID: 78 Comm: kworker/0:1 Not tainted 5.0.0-rc4-xc2ml #1 [ 1.235066] Hardware name: Hardkernel ODROID-C2 (DT) [ 1.239987] Workqueue: events deferred_probe_work_func [ 1.245072] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 1.249816] pc : _regulator_put.part.11+0xf0/0xf8 [ 1.254473] lr : regulator_put+0x34/0x48 [ 1.258353] sp : ffff0000117b3b00 [ 1.261630] x29: ffff0000117b3b00 x28: 0000000000000000 [ 1.266891] x27: ffff80007ec1a7b8 x26: ffff000010eec280 [ 1.272153] x25: 0000000000000000 x24: 0000000000000009 [ 1.277414] x23: ffff0000117b3bc8 x22: ffff80007ecd3c00 [ 1.282675] x21: ffff0000111ad6c8 x20: ffff80007ecd3e00 [ 1.287936] x19: ffff80007ecd3e00 x18: 0000000000000124 [ 1.293198] x17: 0000000000000000 x16: 0000000000000000 [ 1.298459] x15: 0000000000000400 x14: 0000000000000400 [ 1.303720] x13: ff00000000000000 x12: ffffffffffffffff [ 1.308981] x11: 0000000000000038 x10: 0000000000000040 [ 1.314243] x9 : ffff0000111c58b0 x8 : ffff0000111c58a8 [ 1.319504] x7 : ffff80006b055200 x6 : ffff80007edd2880 [ 1.324765] x5 : ffff80007f400248 x4 : ffff80007fb92b00 [ 1.330026] x3 : ffff0000112c9d58 x2 : ffff80007edd2880 [ 1.335288] x1 : 0000000000000000 x0 : 0000000000000001 [ 1.340549] Call trace: [ 1.342966] _regulator_put.part.11+0xf0/0xf8 [ 1.347278] regulator_put+0x34/0x48 [ 1.350814] regulator_bulk_free+0x30/0x50 [ 1.354868] devm_regulator_bulk_release+0x18/0x20 [ 1.359612] release_nodes+0x1b0/0x220 [ 1.363320] devres_release_all+0x34/0x50 [ 1.367288] really_probe+0xec/0x290 [ 1.370824] driver_probe_device+0x54/0xe8 [ 1.374878] __device_attach_driver+0xb8/0xe8 [ 1.379190] bus_for_each_drv+0x78/0xc8 [ 1.382985] __device_attach+0xd4/0x130 [ 1.386780] device_initial_probe+0x10/0x18 [ 1.390920] bus_probe_device+0x90/0x98 [ 1.394715] deferred_probe_work_func+0x6c/0xa0 [ 1.399203] process_one_work+0x1e0/0x318 [ 1.403168] worker_thread+0x228/0x428 [ 1.406877] kthread+0x124/0x128 [ 1.410070] ret_from_fork+0x10/0x18 [ 1.413603] ---[ end trace 498aca4cb07e5377 ]--- [ 1.418251] WARNING: CPU: 0 PID: 78 at drivers/regulator/core.c:2054 _regulator_put.part.11+0xf0/0xf8 [ 1.427316] Modules linked in: [ 1.430338] CPU: 0 PID: 78 Comm: kworker/0:1 Tainted: G W 5.0.0-rc4-xc2ml #1 [ 1.438615] Hardware name: Hardkernel ODROID-C2 (DT) [ 1.443534] Workqueue: events deferred_probe_work_func [ 1.448621] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 1.453366] pc : _regulator_put.part.11+0xf0/0xf8 [ 1.458023] lr : regulator_put+0x34/0x48 [ 1.461903] sp : ffff0000117b3b00 [ 1.465180] x29: ffff0000117b3b00 x28: 0000000000000000 [ 1.470441] x27: ffff80007ec1a7b8 x26: ffff000010eec280 [ 1.475703] x25: 0000000000000000 x24: 0000000000000009 [ 1.480964] x23: ffff0000117b3bc8 x22: ffff80007ecd3c00 [ 1.486225] x21: ffff0000111ad6c8 x20: ffff80007ecd3f00 [ 1.491486] x19: ffff80007ecd3f00 x18: 0000000000000007 [ 1.496748] x17: 0000000000000000 x16: 0000000000000000 [ 1.502009] x15: 0000000000000400 x14: ffff80000531da90 [ 1.507270] x13: ffff80007f4ae050 x12: 0000000000000000 [ 1.512531] x11: ffff80007f4adff0 x10: 0000000000000040 [ 1.517793] x9 : ffff80000531da98 x8 : 0000000040000000 [ 1.523054] x7 : ffff80006b054700 x6 : 0000000000000001 [ 1.528315] x5 : ffff0000105a868c x4 : ffff80007edd2880 [ 1.533576] x3 : ffff0000112c9d58 x2 : ffff80007edd2880 [ 1.538838] x1 : 0000000000000000 x0 : 0000000000000001 [ 1.544098] Call trace: [ 1.546516] _regulator_put.part.11+0xf0/0xf8 [ 1.550828] regulator_put+0x34/0x48 [ 1.554364] regulator_bulk_free+0x30/0x50 [ 1.558417] devm_regulator_bulk_release+0x18/0x20 [ 1.563161] release_nodes+0x1b0/0x220 [ 1.566870] devres_release_all+0x34/0x50 [ 1.570838] really_probe+0xec/0x290 [ 1.574374] driver_probe_device+0x54/0xe8 [ 1.578428] __device_attach_driver+0xb8/0xe8 [ 1.582740] bus_for_each_drv+0x78/0xc8 [ 1.586535] __device_attach+0xd4/0x130 [ 1.590330] device_initial_probe+0x10/0x18 [ 1.594470] bus_probe_device+0x90/0x98 [ 1.598265] deferred_probe_work_func+0x6c/0xa0 [ 1.602751] process_one_work+0x1e0/0x318 [ 1.606718] worker_thread+0x228/0x428 [ 1.610427] kthread+0x124/0x128 [ 1.613618] ret_from_fork+0x10/0x18 [ 1.617153] ---[ end trace 498aca4cb07e5378 ]--- [ 1.621778] dwc2: probe of c9000000.usb failed with error -22 Fixes: 5a0803bd5ae (ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes) Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- Changes from previous patch change dr_mode from "peripheral" to "otg" Since usb_phy0 is otg port as per the shematic Fixed the commit messages with latest warning This patch depend on this below patch [0] https://patchwork.kernel.org/patch/10777359/ /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M |__ Port 3: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M |__ Port 3: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M |__ Port 3: Dev 3, If 2, Class=Audio, Driver=, 480M |__ Port 3: Dev 3, If 3, Class=Audio, Driver=, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M drop tested but from Kevin --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index da729ed00408..5d81ad02483b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -312,6 +312,7 @@ &usb0 { status = "okay"; + dr_mode = "otg"; }; &usb1 { -- 2.20.1