Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp207296imj; Thu, 14 Feb 2019 18:42:14 -0800 (PST) X-Google-Smtp-Source: AHgI3Iac70bd4BR1/f+0Mbha8PeX8vncsd2SMOsW6gZuumM3zcUBHoU0uUR0vC8JBTl3/3RNFPYk X-Received: by 2002:a62:5287:: with SMTP id g129mr7586650pfb.22.1550198534295; Thu, 14 Feb 2019 18:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198534; cv=none; d=google.com; s=arc-20160816; b=q/KRcWBnK18CzBPTYU4vi1+gFWk8wLHR3kshlUeeodH6R5LD13PJqSBUG2czrW4de7 VCe6o7nEVU6B4FImSpQxLYPfmQsQUo1Uqvom8Hzv/7zsJhY8nYvwmlQSiK3lcTxMP/3f 2en0bOvNebl2WvSw4wEYKHaJCZ7VsRR58VxFTdpz093u0LApWnF5xh1gSz9naDqIHTgA ptfcxEXQe8c8q1f+gMjB9DmQ6ZhC4tq4nwrgoIxW280B5lt6rI/s8lzakjJ6eyMmDs3c FvnDVfx9/1B0TAHLkVsYQbVGvkhANzdjsSoMcPEUI96xJGpqIqvd+7Pe9ybiH+w7QMdV oRyQ== 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=IkPXN6Libqo1Yo2YWF7Ln+gD/mjq48lToOQnew1y7hA=; b=J4r4VTIIvJezJabQ4VVC+CoGcIA8GGh23cNbXCqdrK06llVqgiF/MjiArfQb9fB+VL +RkCoxsoBqFv5LPI1wuVhcDfnTbWvFf2KBwX3EWErpHV4YwnpNluGSS8Zn4ehVgaQ9v/ GBWy/b90YHsxPT/7OnR0XP92H5kD5S0pMM1gRp7EgUsRrlDg+5IOolDLsbI16xYWxx1/ t9L7auCbwsg+ACjytpk93yYAT7k/4ik9jWkb3nv5cAa3rReGXRdDA5izqP0gwmyRyttw HD+vJgvL2MPjhwkzsB3zRuPVRtW/zIw9F2QSOpJMPWYSNIqNSv/6cpOJrx4OZpIWmDKJ FhSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vlg+P08R; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o186si4131385pfb.66.2019.02.14.18.41.58; Thu, 14 Feb 2019 18:42:14 -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=@kernel.org header.s=default header.b=vlg+P08R; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389214AbfBOCJt (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:49912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388760AbfBOCJn (ORCPT ); Thu, 14 Feb 2019 21:09:43 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 82C3521B68; Fri, 15 Feb 2019 02:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196583; bh=dVAiIHuw0E+PlsXSgmiKkIGI7JFclc6jl/VfrJkywmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vlg+P08RglOW6PuIG5B+CYOD3AB/lwjdxVMpsh3Do4aAke68DQWz+J9ntJBaHJ31Z LdCrMn+xKhsoeD6MzF5BEb3V8TXe9AjuGfwu6HvLAU5nzMvwO30uHeSBmL4BLO2Svk bVhV4lSL9HJAoVvSXHe14Cy6kUghAEI6RoNSUPdg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alban Bedel , Kishon Vijay Abraham I , Sasha Levin Subject: [PATCH AUTOSEL 4.20 27/77] phy: ath79-usb: Fix the power on error path Date: Thu, 14 Feb 2019 21:08:05 -0500 Message-Id: <20190215020855.176727-27-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alban Bedel [ Upstream commit 009808154c69c48d5b41fc8cf5ad5ab5704efd8f ] 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 Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sasha Levin --- 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