From patchwork Sun Dec 12 20:18:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amjad Ouled-Ameur X-Patchwork-Id: 523472 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD015C433F5 for ; Sun, 12 Dec 2021 20:19:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhLLUTx (ORCPT ); Sun, 12 Dec 2021 15:19:53 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:44791 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbhLLUTw (ORCPT ); Sun, 12 Dec 2021 15:19:52 -0500 Received: by mail-wr1-f43.google.com with SMTP id t18so23815409wrg.11 for ; Sun, 12 Dec 2021 12:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kai+38ffN8h6EE4lcs4yXb6aSJaYI4aKa/cyVHvav4Q=; b=OHrb0CxnEGkk+A0FoXgxBbPagJ81j5Ten47px24G2jb+maDurlEHjgEge7FYXYmyGS vAZjK6eqwOwXQMgL4HOkX32LXFko7oObZuntxT04IBYvncbvETDvrgut/2Ck0ya/qF5b wEJCszgJcjnQvC1g+BQuqVnx+nPuVsEOdGqsSWWuw+mlcGF5i75ggl2ZCoVQrB0WwKXB sg9JEQPLFXfczqomsq+vSYYrjjt1BwBjN07DpHhMHuhZDECdbbcG2yGsefN8EGvWK51T XYPfKlzbfFetMpwTdBnHOAtBLIT8kS0hX0IK7nttm0VjmtB9wZBt8V9TKKADBbjnEqCv ASRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kai+38ffN8h6EE4lcs4yXb6aSJaYI4aKa/cyVHvav4Q=; b=rppB37X3ngubUoSdvkCuAVC/MkTVilw4rZjsgW7532oThGhhQsXxbk0FPQRdklYG30 iiDkJXM+gpujBgcKcccDhZ+ymgkLyrhiTUmhCLCdR7zOWiIG5MNojAmkZaNVaswbFY/D afXDVeTD2kq0GGtBaXseVEnDNtt3jfUYg5OBkdXK6Vb/fddi6yM4+VsyCHotnkXrzntS kcGfagbm8GwVXhZr1nk1HHJfEtTao1hRQlzS2pMif1AKF1VRLJQ8f9Lrr8sCoCHPY1c2 DoIvYvEJ3XhKQmMOWx2mk6R+zyRpRNp1kNhz8XyrJw5K6Slx4rDweMjsxssVFmxwmIXf xeNA== X-Gm-Message-State: AOAM531b4AZ6egvb5qnsUJo9aCS+G0Oz1Pcly/gS5MbUy8kFWWcUL55g GMLZrZeqVT9b7Z8CVQVLGYCq9Q== X-Google-Smtp-Source: ABdhPJwRch+y3kMPJINftWfz71kXXxhOT6aJCL97WR9M4GQ2LHsTtE1wLvBDA8lqYqO4uUdxL+zKZw== X-Received: by 2002:adf:e84d:: with SMTP id d13mr27337627wrn.72.1639340331606; Sun, 12 Dec 2021 12:18:51 -0800 (PST) Received: from localhost.localdomain (203.247.120.78.rev.sfr.net. [78.120.247.203]) by smtp.googlemail.com with ESMTPSA id p5sm9092710wrd.13.2021.12.12.12.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Dec 2021 12:18:51 -0800 (PST) From: Amjad Ouled-Ameur To: khilman@baylibre.com Cc: Amjad Ouled-Ameur , p.zabel@pengutronix.de, balbi@kernel.org, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v5 0/3] usb: meson: fix shared reset control use Date: Sun, 12 Dec 2021 21:18:41 +0100 Message-Id: <20211212201844.114949-1-aouledameur@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patchset fixes a usb suspend warning seen on the libretech-cc by using reset_control_rearm() call of the reset framework API. This call allows a reset consummer to release the reset line even when just triggered so that it may be triggered again by other reset consummers. reset_control_(de)assert() calls are called, in some meson usb drivers, on a shared reset line when reset_control_reset has been used. This is not allowed by the reset framework. Finally the meson usb drivers are updated to use this new call, which solves the suspend issue addressed by the previous reverted commit 7a410953d1fb ("usb: dwc3: meson-g12a: fix shared reset control use"). changes since v4: - call reset_control_rearm() after clk_prepare_enable() fails Amjad Ouled-Ameur (3): phy: amlogic: phy-meson-gxl-usb2: fix shared reset controller use phy: amlogic: meson8b-usb2: Use dev_err_probe() phy: amlogic: meson8b-usb2: fix shared reset control use drivers/phy/amlogic/phy-meson-gxl-usb2.c | 5 ++++- drivers/phy/amlogic/phy-meson8b-usb2.c | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) Acked-by: Neil Armstrong