Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5393393ybl; Tue, 10 Dec 2019 05:24:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzH7dZBbNhXc5ONP/c5G8dJkK6zALYdPYjy8d6haowFiCOjYme5Rqa9SXAVNkqPg9nXJ/AE X-Received: by 2002:aca:520b:: with SMTP id g11mr3966236oib.167.1575984297857; Tue, 10 Dec 2019 05:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575984297; cv=none; d=google.com; s=arc-20160816; b=Zr12zg2Sw+3r0jiC0E31F7TbD+g+nmrqcidZ2Gkh5CHyifmAQiCWjuu01ryPuUkDRp reL3hI9+HYu3X4c4dk+GvNVZ+eH0vcRWBdKvUV0gtxLEz0MjbEHO0c17GF4DGAkkMrJ4 0b/jrKRm/XkCiK76LVIGe4htJstcTJv3uAT2AnPgSXuu3vPSmn5DyxRiaAQH5Q4cbFBW imdu1adP7sdFDy9zhhuXKgdnRUYryGbPVN9cdzsmm+HGxWWqXfyfOoD84jXTNY2uxvms OZM4Kg7WVAkB2MJqva/ZKsJ+e7MQNJ1bospJV/akMDYUqhwUJGds3swS0U/t7TcjXZ9Y YoKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=wS4OYwLXLEvBtINm/7GwVk3W/9nI5ZzRdQ3AYe/w/RE=; b=r+HaSVKJdMYckOjdGDTE5Xn+D7OqNynH3G9O2U33Si+Y/V04l27UdAK025a8yqhFTv E75xNqQk65Qj8cP3CeZkTE2jdrKIXZ/B/d94kbkCDJJ8VoXwEHK0vEig+bfvxfCVe6Vb BHQ+/t2fMC7+bV3B1YxSw6UEQaM7cyEKyGne5CHhQ40GJ5NLGdL2YSLXmqRyWylT8BeD o8/votiC2sX+wj8KrGcq9nP2P+JUFmwibGf+1XDzhE8HYTLimMeYwAPRJHWyNOqZ86x/ cDnECVFmH4AfoF0kiJpT2JXAOdSgKhmIlJJIEnMeYCckB48EXdeP/oHSMC2Z06sbNe4g PXYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fu1LtkIu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si1770431oiy.210.2019.12.10.05.24.45; Tue, 10 Dec 2019 05:24:57 -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=@gmail.com header.s=20161025 header.b=Fu1LtkIu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727667AbfLJNX5 (ORCPT + 99 others); Tue, 10 Dec 2019 08:23:57 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:56026 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727625AbfLJNXy (ORCPT ); Tue, 10 Dec 2019 08:23:54 -0500 Received: by mail-wm1-f67.google.com with SMTP id q9so3184811wmj.5; Tue, 10 Dec 2019 05:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wS4OYwLXLEvBtINm/7GwVk3W/9nI5ZzRdQ3AYe/w/RE=; b=Fu1LtkIuLARFdm/9GgPl/lueamweLUNxWP1y6mMVz45hVC7qqPlEZNGJENvQI3hgUP gVVvQLdtiSYFmn+EIWNTzIYdAS0846tqC2Gp8XZxL8+bQ79PRc/Yn6wVCahElwQD7eSy 5Ic7EfUj41zeS+NnaEZW30qn87Rj44EfvoSQmGrJxy7LIhMN1wcAb9QgYdLH+ZcbJimR Xf4+WhbQI5+zRTEfS2Ls4NSKePRpC0MowYlMBRrXv7j/cMv1Y+8Ukfg1FgwzcTwNjQku 14rLfeu7NpZ0PBMZGxK6q5/JKeMuXVbqme5XLgYPoO2sAPQG5zk3SXno9UXRT0e6Gklp QUTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wS4OYwLXLEvBtINm/7GwVk3W/9nI5ZzRdQ3AYe/w/RE=; b=JSgZuEzceSHlwgCYyF9jEnRwQOPXVZ6qRVGEnyRE7AWoudiGACsaeR2BIXKRT7VJE3 uEXyVsWc4tj5yy8tHtasZoLP8tFQYr9+JEXpleuaQq6MecquAn1jhkXmRt5e/FXJL9/u ZIVuHWb8uCW1vvN0KDnytDEuEa1TiqPNYQo4s2lj8An73M3Juz5/HJwqPsEbFJp48jgb fQ2Vox+EcRhebawQjMEkLZ2ibQFaDQVC9WylxAmAjhDmgS+eGzwjKQviWp7V6PcqPN0b s9hOo9F+LNbLcjti46BXyMtqdBIEgrL6BSGpJc20+xggX3MMqHIEz4vo55SpHuFgW5PG +N0A== X-Gm-Message-State: APjAAAVYmd9MpjoOJdXU4XieGy3p3RhWWJKsRd2Ujhs+xPzgUKaJ8Qr7 qpOdlxkE/KGvENIW5JMXt1hrIY5MJGw= X-Received: by 2002:a1c:c3c4:: with SMTP id t187mr5109555wmf.4.1575984232534; Tue, 10 Dec 2019 05:23:52 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id s82sm3101680wms.28.2019.12.10.05.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 05:23:52 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Florian Fainelli , Kishon Vijay Abraham I , linux-arm-kernel@lists.infradead.org, Mark Rutland , Rob Herring , Srinath Mannam Subject: [PATCH v3 12/13] phy: usb: USB driver is crashing during S3 resume on 7216 Date: Tue, 10 Dec 2019 08:21:31 -0500 Message-Id: <20191210132132.41509-13-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191210132132.41509-1-alcooperx@gmail.com> References: <20191210132132.41509-1-alcooperx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a result of the USB 2.0 clocks not being disabled/enabled during suspend/resume on XHCI only systems. Signed-off-by: Al Cooper --- drivers/phy/broadcom/phy-brcm-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/drivers/phy/broadcom/phy-brcm-usb.c index cc5763ace3ad..1ab44f54244b 100644 --- a/drivers/phy/broadcom/phy-brcm-usb.c +++ b/drivers/phy/broadcom/phy-brcm-usb.c @@ -543,7 +543,7 @@ static int brcm_usb_phy_suspend(struct device *dev) brcm_usb_wake_enable(&priv->ini, true); if (priv->phys[BRCM_USB_PHY_3_0].inited) clk_disable_unprepare(priv->usb_30_clk); - if (priv->phys[BRCM_USB_PHY_2_0].inited) + if (priv->phys[BRCM_USB_PHY_2_0].inited || !priv->has_eohci) clk_disable_unprepare(priv->usb_20_clk); if (priv->wake_irq >= 0) enable_irq_wake(priv->wake_irq); -- 2.17.1