Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2803775imu; Sun, 13 Jan 2019 10:22:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN49h8aZVhWbJEoZPWikk2rk1kI9nonxdoLDXxcs+oDuLyU5YjiKulIY5/96XFT8TCuKBmkG X-Received: by 2002:a62:868b:: with SMTP id x133mr23679320pfd.252.1547403750972; Sun, 13 Jan 2019 10:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547403750; cv=none; d=google.com; s=arc-20160816; b=EtP8iIKLidZ60gFuIAI6fcXfACN+GP6RYYrcFiViweh0fuuUPItxYV1PaSK5Ki7Rup pUuI574n+7fMMvkWxoqL+B9rO94YN3J2+4h5zC2RkfxrknHQaZ2Gbg3V8uSYIBiLwFSJ XCjtAbmVn6BrZZudUsrBDxTO0x30Gd/4L88RZb4KTGQ11ae8aj4zBV762nadaTVRBmh4 /1MIZS9joapiVtVIdFuBAhJaVv6a5GkYN9cGo7RnBxoWeOTlUny8P7YM5jALsiT97Pb1 95dkz4njs4olXfomUgv7uAMGy1/zdxtMr34RKvChSU5/rNPMcgRmvNa7eFCDnnHFdv9v 9ufg== 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=qh1Vvz9nFt0zbkJ37Q8bDQfJww+y6baj77fJu8mv98I=; b=e0mq+/3LK4R2OHYpqUyTrRlkAMB5vvivzzPUe5/DmhyeiOMxyK89cDDyNui3rbzOq/ xlcHFaA+KqYqmORAqNv+LqLx7mQbt7phJIgvSXqh+OPq/pmvKxYlTjce+/NNjar8x6HD gjDj/5AcHTgeXA+CyzI1wbGgAHo9XPIak/8Q0GIBINURw83Jd/bIxT9XaUqJxCzFkLw8 fDC6gZgtPuLFi0K1hWYD3FTZ4O/m4suwiWir3WHUyX8BI/m673UgK6S8J2bDbq7iGVp7 JgVGeK6tb0MN+xT1lZDYggSplChfHg6xpQ0XpcQunt/vQv/EB6UaqNSavvwbUbLRsfi7 QFdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=swFYHZlf; 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 z71si12962275pgd.490.2019.01.13.10.22.14; Sun, 13 Jan 2019 10:22:30 -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=swFYHZlf; 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 S1726650AbfAMSSa (ORCPT + 99 others); Sun, 13 Jan 2019 13:18:30 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45651 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfAMSS3 (ORCPT ); Sun, 13 Jan 2019 13:18:29 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so8470640pgc.12; Sun, 13 Jan 2019 10:18:29 -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=qh1Vvz9nFt0zbkJ37Q8bDQfJww+y6baj77fJu8mv98I=; b=swFYHZlfdSg6jCEkobODwgnPuE6nEjJPb3gCppvr+w/wWhlYMhNhkpdli0TsuPs1xU LiPfvXrWVD1YZenmBCRbBIUcU1NlxKLj6noaSmaDDwGEay1PQS82tug/nRt3b5ySrrib JhQKHQI43TFPHc26H7D99Jyos/romqrC0+XSFier8LOeAasMYNDbUDjCNhVa6x0dow96 3aeCwoGWgnwlVFQ8xb/nTEd5B0kfJ3pq8t2W8BO+waZg/pvzoQ916HYusyXU6idwrx8q nY1OMC/wh0r7BpKC1hLlyPmx4pJFx0r7h8epi8w8h6HnDQHHTO8nrzvp3eqbUvvOv/ey ycKg== 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=qh1Vvz9nFt0zbkJ37Q8bDQfJww+y6baj77fJu8mv98I=; b=D8Wk9wzOZNZR63ZWAaM2WA/N/KWthjJpbZ+yTXbEtxq/iMYk//LqYt0pIGOAxxyhNY rXFTQOHCmyoEl/QwGo9uqRnX0cYGr4Tv2h1DhTz/LI4x3Qic2DZOhCHo1Mbvrt6nEEWs CoDTt3tS8KW91UOjqipUbYEoombVPSCHsKjGa7VCN3UE//Q5/AzXockMCgb01O6ycC7b KETmn7FKbKm+Z8+jhOCYKxpqBg0+zBfYqqhqd8r02VGTZxVwGbdCRoSTBnAe9w5Iv6mL YdkwUqY90WBL5GKSp5ZveMLlpo6MDbWomCI/2oZD0bxGqDMjL6CxcuBGjRIlC89mQZsj jV6g== X-Gm-Message-State: AJcUukc+p2777uOvHb16ba1TAKuDK8T+AvUelN173ABdSfs+CqnsrghP y/PZrcuW/kPSMLrMi6eYuXaFuJFd X-Received: by 2002:a63:9b11:: with SMTP id r17mr20476965pgd.416.1547403508296; Sun, 13 Jan 2019 10:18:28 -0800 (PST) Received: from localhost.localdomain ([103.51.74.105]) by smtp.gmail.com with ESMTPSA id i193sm157504416pgc.22.2019.01.13.10.18.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Jan 2019 10:18:27 -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 , Jerome Brunet , Neil Armstrong , Emiliano Ingrassia Subject: [PATCH 2/2] ARM: dts: meson8b: odroidc1: Fix usb phy regulator power failed warning Date: Sun, 13 Jan 2019 18:18:08 +0000 Message-Id: <20190113181808.5768-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190113181808.5768-1-linux.amoon@gmail.com> References: <20190113181808.5768-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 "peripheral" for dwc2 usb_phy0->usb0 initialization of OTG Micro-B type. Changes fix the below warning for phy poweron failed --> -22 This fix the initialization of c9040000.usb phy. [ 1.639706] phy phy-c1108800.phy.0: USB ID detect failed! [ 1.643850] phy phy-c1108800.phy.0: phy poweron failed --> -22 [ 1.649706] ------------[ cut here ]------------ [ 1.654273] WARNING: CPU: 0 PID: 29 at drivers/regulator/core.c:2054 _regulator_put.part.8+0xf8/0xfc [ 1.663400] Modules linked in: [ 1.666439] CPU: 0 PID: 29 Comm: kworker/0:1 Not tainted 4.20.0-xc1ml #11 [ 1.673192] Hardware name: Amlogic Meson platform [ 1.677894] Workqueue: events deferred_probe_work_func [ 1.683027] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 1.690746] [] (show_stack) from [] (dump_stack+0x8c/0xa0) [ 1.697953] [] (dump_stack) from [] (__warn.part.3+0xbc/0xd8) [ 1.705418] [] (__warn.part.3) from [] (warn_slowpath_null+0x44/0x4c) [ 1.713579] [] (warn_slowpath_null) from [] (_regulator_put.part.8+0xf8/0xfc) [ 1.722437] [] (_regulator_put.part.8) from [] (regulator_put+0x28/0x38) [ 1.730859] [] (regulator_put) from [] (regulator_bulk_free+0x28/0x38) [ 1.739112] [] (regulator_bulk_free) from [] (release_nodes+0x1bc/0x200) [ 1.747537] [] (release_nodes) from [] (really_probe+0x110/0x2cc) [ 1.755350] [] (really_probe) from [] (driver_probe_device+0x60/0x16c) [ 1.763599] [] (driver_probe_device) from [] (bus_for_each_drv+0x80/0xc4) [ 1.772110] [] (bus_for_each_drv) from [] (__device_attach+0xd0/0x138) [ 1.780359] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c) [ 1.788522] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x8c) [ 1.797470] [] (deferred_probe_work_func) from [] (process_one_work+0x218/0x504) [ 1.806585] [] (process_one_work) from [] (worker_thread+0x2a8/0x5bc) [ 1.814748] [] (worker_thread) from [] (kthread+0x14c/0x154) [ 1.822128] [] (kthread) from [] (ret_from_fork+0x14/0x2c) [ 1.829331] Exception stack(0xee0ebfb0 to 0xee0ebff8) [ 1.834369] bfa0: 00000000 00000000 00000000 00000000 [ 1.842534] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.850695] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 1.857311] ---[ end trace e28bbc26874282a4 ]--- [ 1.861984] ------------[ cut here ]------------ [ 1.866524] WARNING: CPU: 0 PID: 29 at drivers/regulator/core.c:2054 _regulator_put.part.8+0xf8/0xfc [ 1.875629] Modules linked in: [ 1.878658] CPU: 0 PID: 29 Comm: kworker/0:1 Tainted: GW 4.20.0-xc1ml #11 [ 1.886817] Hardware name: Amlogic Meson platform [ 1.891513] Workqueue: events deferred_probe_work_func [ 1.896641] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 1.904366] [] (show_stack) from [] (dump_stack+0x8c/0xa0) [ 1.911573] [] (dump_stack) from [] (__warn.part.3+0xbc/0xd8) [ 1.919041] [] (__warn.part.3) from [] (warn_slowpath_null+0x44/0x4c) [ 1.927203] [] (warn_slowpath_null) from [] (_regulator_put.part.8+0xf8/0xfc) [ 1.936060] [] (_regulator_put.part.8) from [] (regulator_put+0x28/0x38) [ 1.944483] [] (regulator_put) from [] (regulator_bulk_free+0x28/0x38) [ 1.952734] [] (regulator_bulk_free) from [] (release_nodes+0x1bc/0x200) [ 1.961159] [] (release_nodes) from [] (really_probe+0x110/0x2cc) [ 1.968974] [] (really_probe) from [] (driver_probe_device+0x60/0x16c) [ 1.977224] [] (driver_probe_device) from [] (bus_for_each_drv+0x80/0xc4) [ 1.985734] [] (bus_for_each_drv) from [] (__device_attach+0xd0/0x138) [ 1.993984] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c) [ 2.002147] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x8c) [ 2.011092] [] (deferred_probe_work_func) from [] (process_one_work+0x218/0x504) [ 2.020209] [] (process_one_work) from [] (worker_thread+0x2a8/0x5bc) [ 2.028371] [] (worker_thread) from [] (kthread+0x14c/0x154) [ 2.035752] [] (kthread) from [] (ret_from_fork+0x14/0x2c) [ 2.042955] Exception stack(0xee0ebfb0 to 0xee0ebff8) [ 2.047993] bfa0: 00000000 00000000 00000000 00000000 [ 2.056158] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.064320] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.070934] ---[ end trace e28bbc26874282a5 ]--- Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- Rebased on Kevin's amlogic/v5.0/fixes branch Note the warning is not getting produced on the latest kernel. --- arch/arm/boot/dts/meson8b-odroidc1.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index a49a8509b288..9d7f725cfe35 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -318,6 +318,7 @@ &usb0 { status = "okay"; + dr_mode = "peripheral"; }; &usb1 { -- 2.20.1