Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3670149imu; Fri, 18 Jan 2019 14:52:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN64HOOnAXHe/1qH2OBRR1amEZs7CPoZ/iVf7VYG6b1f9caS+Wbzn4c4pZzpY9kISLDxmJXT X-Received: by 2002:a62:2c81:: with SMTP id s123mr20997792pfs.174.1547851976790; Fri, 18 Jan 2019 14:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547851976; cv=none; d=google.com; s=arc-20160816; b=at4K4SW7croj+/x/UfabumbsyCXeHgcxQDch13LwBMDn1G4ttSyXsJ3DQcPAPJDuXN 52s5SpZX9RkQOs6y6bT2X2K+1mCYkOUUlL95m6ijT5t58HaqtSf9EuSQY+sEAju7ZKDa AT7K6ZBJEsylzRagQLYRovDUz18amHnOC+4YTdUqTaGx00VuAqHAQYaN1YE3rsSgk6am j4MXbf5POZNoZsarRPwoi+MLTfPvHypyDrCei/7iW2ZfWfjpzZLJ+Fnfihlq8fgMElaV tz/W2hoEUmzO3cxSOt2AMPCLe1UThcXAWU8P9lJSRSbz0DI7WsQ1Q4PfEw99Xdl83lpz nmAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LUSvv6gyP/U0jb8swx6kbJOKJ75Cx8i7+Ck6/NBHcX0=; b=YgH2tjCBVwRSo+w1tegY65yAl9ejCwzewOxsRq8Ge5e1/NBTLkAiLTICH0oBQIDGnT 0lCWn1dmOi6YD0qHha36LXtYYt9B8wy8dbEcj208D9tylbhjHMdeyaDLRhWkmIEf4rcH 5Idii12z6tG9IStPaE0U3UtiepP0cpel/62ifhn5yVlVQfBuZB2dEaW1HqiAKsEedc0V 0aYmIFaCoEPLzT/uxGqKDdea4mCclRWZAnJvkQTC5HOG4hTvqkQtKXsJEyWewoUaUOWi /KNui9oYhH40sQ95+D3IgEiuUbAN+mz7MN88O5IytX4Y+DLsd75Yeb5csB9RvOq3mrxK RdMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=oNJTYYuO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si6111324pli.284.2019.01.18.14.52.40; Fri, 18 Jan 2019 14:52:56 -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=@googlemail.com header.s=20161025 header.b=oNJTYYuO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729938AbfARWGv (ORCPT + 99 others); Fri, 18 Jan 2019 17:06:51 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42037 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729621AbfARWGs (ORCPT ); Fri, 18 Jan 2019 17:06:48 -0500 Received: by mail-ot1-f66.google.com with SMTP id v23so15745185otk.9; Fri, 18 Jan 2019 14:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LUSvv6gyP/U0jb8swx6kbJOKJ75Cx8i7+Ck6/NBHcX0=; b=oNJTYYuO/R2XMxoEYLVk3BuofcbSO2Jal56gIgxesN3nRoMwa8kQQeoALeU/jcioAY 0BMPTGKc0jxuJfvJiBGXy4FEh6QOa1vNE4KfNVWxsjr/OuF0lw7BOPhf/Tjh1939Hesr R7bO1MgW1JlIatvJsLhiYDd0HRb7GXE2SVUDiS+lpkAM/2ZGbLZSVPXQe79lFwJsd43Y 1gjHPxFRAsvqbYyVis5tnL0yFoQwyl6X5di/X0GfxZXh3YpaNjiMZSiqYiL8M/vpmJYb EaPDBANJvfwULOAitQgiNU6/ViUEoOaksobKoQgUi3BbeOchsHJrlDyBA/z0SMchOtIE jS1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LUSvv6gyP/U0jb8swx6kbJOKJ75Cx8i7+Ck6/NBHcX0=; b=ufDq/hn+auHcNWSNGyztQ979o8VhgyAK5yQRe2a4mQ/K0wXbj3LGRP0eg/817BQcJE ru2rijdKQtrgN73jOFdrxxtmB69Kz4mMldj9SDupHnKeoi0CZfiOGLLN9Ivlz+VBibD3 uWw6EdtepS+Bk5k+MnrKixniOQgztRWKDvoZWgh1avvjW6CNqlGDdeVExfK/HWSKxT1X AFcXhMcGFp3dRJ/RcqOktmztgjA9ODjnKwIN4KZIrRUJKjT2ibZrAcEyVlWldwmbqYKV NUfvy7FIMZAtDAwOlrrPRv+NyVLxE67EZKPhgGdoJIVYXLl5DGlBc2PAqb09a+ABIncv dabA== X-Gm-Message-State: AJcUukehr4s4rPtPiijIyTIUo3Ycyb+8X6Re6BymeWEjPV8JBTPCMra7 RFmNpQmE5GCdXeI9ZXbb4WH8MgDaMDNXKIqRaO8= X-Received: by 2002:a9d:a48:: with SMTP id 66mr12918180otg.308.1547849207355; Fri, 18 Jan 2019 14:06:47 -0800 (PST) MIME-Version: 1.0 References: <20190113181808.5768-1-linux.amoon@gmail.com> <20190113181808.5768-2-linux.amoon@gmail.com> In-Reply-To: <20190113181808.5768-2-linux.amoon@gmail.com> From: Martin Blumenstingl Date: Fri, 18 Jan 2019 23:06:36 +0100 Message-ID: Subject: Re: [PATCH 2/2] ARM: dts: meson8b: odroidc1: Fix usb phy regulator power failed warning To: Anand Moon Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Kevin Hilman , Jerome Brunet , Neil Armstrong , Emiliano Ingrassia Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anand, On Sun, Jan 13, 2019 at 7:18 PM Anand Moon wrote: > > 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"; > }; with this change I get the following message during boot: dwc2 c9040000.usb: Configuration mismatch. dr_mode forced to host as far as I understand your original problem is the following error from the USB2 PHY driver: phy phy-c1108800.phy.0: USB ID detect failed! phy phy-c1108800.phy.0: phy poweron failed --> -22 maybe we should fix that instead? Regards Martin