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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 134EBC433DF for ; Thu, 20 Aug 2020 18:28:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF5E8208B3 for ; Thu, 20 Aug 2020 18:28:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kOjCZbaS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="n4v1+3ph" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF5E8208B3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:In-reply-to:Subject:To: From:References:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WxHekmUfBxULj9s0m89I/wk9wCF7EL5ovuWN8DxO/i4=; b=kOjCZbaSyuCB/iT0e7swjCyDQ 8RICOEcDIta3AiNR9GCy+/xFxXBQOK7/9axthRkKK0w1EqYrTi4EjKLkj2RIfGMrmjBEiQQoWEwF8 4WAduBie+P9fPJANJMedHBz6U9IE8rbBctPPzi8cMk9rTSQ13kjG7iN4tqSvdhbmVAV+NLkB7mQEk v4oN1Sk4bseP9DdM6UhdPr8+nFMBoumpyMQlQv6cIFl86BM5kHONTABrtaDNO0fL/q2K83LoFcpnS fSzPBIiCqHaT4dHiMHrX4UCjyJ0F3CF+6jc3lj4I233yhYZu56nqjy3BS9FCGECEbD9pGQfAE0V5P EwLuBu7cA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8pI6-0003DN-6b; Thu, 20 Aug 2020 18:27:59 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8pI4-0003Cd-7L for linux-amlogic@lists.infradead.org; Thu, 20 Aug 2020 18:27:56 +0000 Received: by mail-ej1-x643.google.com with SMTP id t10so3660167ejs.8 for ; Thu, 20 Aug 2020 11:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=wFU6iehEQRgm6hzdRdz9I3KMLqhTVpwPuMrgKp9w+qk=; b=n4v1+3phIsOZUbWt6KG79kSvXkI74RoAHTtRwDLSymbUnK3ebGOnoPeaHkDigI3fCz Be+u/NFKo2LHPvOgtbZV7f8jJN+zVPcJNjD136DToUXP8LxsIX8jd+LoC/qp4Ep9Jf6T lszR31UVipTHjD6KASH6x3p2GqeaF7yhlQD3gTTingP3UzWORG0afxHk3b0iFrHTVLkh EryYWz4M1r+z3HEKbyBDjs3WksmjpNi+ZrH1lTLLjzM/crqLB/ct86s+E83c7NSVlQhy LKZLor9PgrGOu/DUbIoXbP4ITaXhV4MvMpEtPw/t00oTLzJkSyAI7qFCKa5IL9DhaWAj ZPZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=wFU6iehEQRgm6hzdRdz9I3KMLqhTVpwPuMrgKp9w+qk=; b=gsirWHMImho4/gicYZAQK5ZYj/FacpTN58AY3y63SsnihwKBam8WeMjYEEbU+o6Y3U ztxlD6yOvCiGCEe77xGC8anX7F9QFygHfMe/Png9qRobfZlWYfZWPPKrxFiraJSzlrQN PtdqkFzREOx8I23Qgh/BjndQP3j8UkDSIu5bDo8XJotVnUVLXv9XqLu91uOIeO9xR4AV wfCJ5K1GEEDqsAfW0cRy9N8UbUZg4o/Kfxa6vI8T4cYytxzHbF52/dmMcz5lr1ujutPc TwqEjfsCDQnjERSef19bnATsIN5AlMrXhS80xScL4Ekhyeq9xEWzJCiWUG9yif0nLoCF Bm4Q== X-Gm-Message-State: AOAM531E6Eb6amc4mlcr2Hg0ugr+CGU85gg3L8oiu7GDAApKwzM2vOBb fMqC8qbMnFGMt644t+ZgCK0elQ== X-Google-Smtp-Source: ABdhPJzLTCb2qD90CjqOtg7OFn2t40v8DNlLGsKzih5dBf56Esst/PTsmHN/wUwOmlhz9iTzTOkbjA== X-Received: by 2002:a17:907:2119:: with SMTP id qn25mr4524366ejb.278.1597948072889; Thu, 20 Aug 2020 11:27:52 -0700 (PDT) Received: from localhost (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id b9sm1881881ejz.57.2020.08.20.11.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 11:27:51 -0700 (PDT) References: <20200713160522.19345-1-dan@dlrobertson.com> <20200713160522.19345-2-dan@dlrobertson.com> <1jy2maekzf.fsf@starbuckisacylon.baylibre.com> <7hpn7lci1g.fsf@baylibre.com> User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Kevin Hilman , Dan Robertson , Martin Blumenstingl , Neil Armstrong , Philipp Zabel , Felipe Balbi Subject: Re: [PATCH 1/1] usb: dwc3: meson-g12a: fix shared reset control use In-reply-to: <7hpn7lci1g.fsf@baylibre.com> Date: Thu, 20 Aug 2020 20:27:50 +0200 Message-ID: <1jy2m9qijd.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_142756_296198_04B1832A X-CRM114-Status: GOOD ( 15.62 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, aouledameur@baylibre.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On Thu 20 Aug 2020 at 20:02, Kevin Hilman wrote: > Jerome Brunet writes: > >> On Mon 13 Jul 2020 at 18:05, Dan Robertson wrote: >> >>> The reset is a shared reset line, but reset_control_reset is still used >>> and reset_control_deassert is not guaranteed to have been called before >>> the first reset_control_assert call. When suspending the following >>> warning may be seen: >> >> And now the same type of warning maybe seen on boot. This is >> happening for me on the libretech-cc (s905x - gxl). >> >> [ 1.863469] ------------[ cut here ]------------ >> [ 1.867914] WARNING: CPU: 1 PID: 16 at drivers/reset/core.c:309 reset_control_reset+0x130/0x150 >> [ 1.876525] Modules linked in: >> [ 1.879548] CPU: 1 PID: 16 Comm: kworker/1:0 Not tainted 5.9.0-rc1-00167-ga2e4e3a34775 #64 >> [ 1.887737] Hardware name: Libre Computer AML-S905X-CC V2 (DT) >> [ 1.893525] Workqueue: events deferred_probe_work_func >> [ 1.898607] pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--) >> [ 1.904126] pc : reset_control_reset+0x130/0x150 >> [ 1.908700] lr : phy_meson_gxl_usb2_init+0x24/0x70 >> [ 1.913439] sp : ffff8000123ebad0 >> [ 1.916717] x29: ffff8000123ebad0 x28: 0000000000000000 >> [ 1.921978] x27: ffff00007c4b1ac8 x26: ffff00007c4b1ab0 >> [ 1.927239] x25: ffff00007fc149b0 x24: ffff00007c4b1ab0 >> [ 1.932500] x23: ffff00007cd03800 x22: ffff800011fb9000 >> [ 1.937761] x21: ffff00007c60db08 x20: ffff00007c468a80 >> [ 1.943023] x19: ffff00007c466b00 x18: ffffffffffffffff >> [ 1.948284] x17: 0000000000000000 x16: 000000000000000e >> [ 1.953545] x15: ffff800011fb9948 x14: ffffffffffffffff >> [ 1.958806] x13: ffffffff00000000 x12: ffffffffffffffff >> [ 1.964068] x11: 0000000000000020 x10: 7f7f7f7f7f7f7f7f >> [ 1.969329] x9 : 78676f2c32617274 x8 : 0000000000000000 >> [ 1.974590] x7 : ffffffffffffffff x6 : 0000000000000000 >> [ 1.979851] x5 : 0000000000000000 x4 : 0000000000000000 >> [ 1.985112] x3 : 0000000000000000 x2 : ffff8000107aa370 >> [ 1.990374] x1 : 0000000000000001 x0 : 0000000000000001 >> [ 1.995636] Call trace: >> [ 1.998054] reset_control_reset+0x130/0x150 >> [ 2.002279] phy_meson_gxl_usb2_init+0x24/0x70 >> [ 2.006677] phy_init+0x78/0xd0 >> [ 2.009784] dwc3_meson_g12a_probe+0x2c8/0x560 >> [ 2.014182] platform_drv_probe+0x58/0xa8 >> [ 2.018149] really_probe+0x114/0x3d8 >> [ 2.021770] driver_probe_device+0x5c/0xb8 >> [ 2.025824] __device_attach_driver+0x98/0xb8 >> [ 2.030138] bus_for_each_drv+0x74/0xd8 >> [ 2.033933] __device_attach+0xec/0x148 >> [ 2.037726] device_initial_probe+0x24/0x30 >> [ 2.041868] bus_probe_device+0x9c/0xa8 >> [ 2.045663] deferred_probe_work_func+0x7c/0xb8 >> [ 2.050150] process_one_work+0x1f0/0x4b0 >> [ 2.054115] worker_thread+0x210/0x480 >> [ 2.057824] kthread+0x158/0x160 >> [ 2.061017] ret_from_fork+0x10/0x18 >> [ 2.064550] ---[ end trace 94d737efe593c6f6 ]--- >> [ 2.069158] phy phy-d0078000.phy.0: phy init failed --> -22 >> [ 2.074858] dwc3-meson-g12a: probe of d0078080.usb failed with error -22 >> >> This breaks USB on this device. reverting the change brings it back. > > [...] > >> In the meantime, I think this change should be reverted. A warning on >> suspend seems less critical than a regression breaking USB completly. > > Fully agree. > > Phillip, can you please revert this patch until the right solution is > found? Boot failure is much worse than a suspend warning. I was asking Philip about the reset API suggestion. I think the maintainer is Felipe for this change :) > > Kevin _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic