Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3909682imu; Mon, 7 Jan 2019 11:44:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN7I6Ep6v1t5iFs72FlyBu9mHjjK3KZQH7JXgbshLJDVDT/Ht3oS/wztA4ZaJtzEtZHRqZfm X-Received: by 2002:a17:902:b68d:: with SMTP id c13mr62344013pls.102.1546890256784; Mon, 07 Jan 2019 11:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546890256; cv=none; d=google.com; s=arc-20160816; b=YI/9TkVXEEIf7C6K13qrWxrcDk4RVGYRRuq7xup1Y9auhP1Tie+mrLthBut2jtQroZ 77Mf++Oyj+ywSbm+xjfFHga/gf0jxdxX1zY2lD3PkpY+eOrmhVEmk5NwXC60zTMqjyEz BHiUl/Vzir7pMO3Wkbh6bUoODjrQ15K+DtUcuBgfY9Wk1fNItgG1J1TEOI+68W3XSP52 O9B5EjjcpJOynypMKyKkytOBs3REC2UHUz6IXAy57V4YS22gtXUPLDG9cuRFSu+pSavF tAuX+xquW/24yDuuwAoMYBjJKYmbJvhynmDjcHX0JWXhKSm6rNHOWU/EwGMMYp3dk6QZ el0g== 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 :message-id:date:subject:cc:to:from; bh=ZLULqTfYj+AJQvXqpDBsZkrF9UoS6ZQLb+yTEXvZehA=; b=mOlxVbK1S4aD76SP3r64vfaLZ2dpGebzvG+AQSUUt/AQC9GAvajfnB7i/u9r5Az82G fbq7OvkTcqsdEKgImiWiNzqbV+9E7r+zMJWxRymKE+nAsElUEkN/RABeLDoHVww2Ql0j 5pNle5+4ROUDzCP0U3ArpwrJslU/xy4i2k3Tzx6RUWHXS4P3ablOhJ8WChuQIMFgEEqd rDhUDTk1JUxSQiltOnFdiBiw1pLTzRUgBiyRO4ncYtD90yPo3wmTVV8RqnnFI1roFvps UVYgrFX1Xp84fiq5pDkoGFvtYTmkGzc02+4GCJmnYhlY8i2ZJyxGSFkTSOOUlHblSbc+ kAjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14si7084056pgh.39.2019.01.07.11.44.00; Mon, 07 Jan 2019 11:44:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727521AbfAGTlo (ORCPT + 99 others); Mon, 7 Jan 2019 14:41:44 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:28214 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbfAGTlo (ORCPT ); Mon, 7 Jan 2019 14:41:44 -0500 Received: from localhost.localdomain (unknown [IPv6:2a02:8108:4840:8f74:a9a9:5e6d:35c6:d37d]) (Authenticated sender: albeu) by smtp5-g21.free.fr (Postfix) with ESMTPA id 74B575FEF7; Mon, 7 Jan 2019 20:36:37 +0100 (CET) From: Alban Bedel To: Kishon Vijay Abraham I Cc: linux-kernel@vger.kernel.org, Alban Bedel Subject: [PATCH 1/2] phy: ath79-usb: Fix the power on error path Date: Mon, 7 Jan 2019 20:36:34 +0100 Message-Id: <20190107193635.16300-1-albeu@free.fr> X-Mailer: git-send-email 2.19.1 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 In the power on function the error path doesn't return the suspend override to its proper state. It should should deassert this reset line to enable the suspend override. Signed-off-by: Alban Bedel --- drivers/phy/qualcomm/phy-ath79-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-ath79-usb.c b/drivers/phy/qualcomm/phy-ath79-usb.c index 6fd6e07ab345..f7d64f3910b4 100644 --- a/drivers/phy/qualcomm/phy-ath79-usb.c +++ b/drivers/phy/qualcomm/phy-ath79-usb.c @@ -31,7 +31,7 @@ static int ath79_usb_phy_power_on(struct phy *phy) err = reset_control_deassert(priv->reset); if (err && priv->no_suspend_override) - reset_control_assert(priv->no_suspend_override); + reset_control_deassert(priv->no_suspend_override); return err; } -- 2.19.1