Received: by 10.213.65.68 with SMTP id h4csp838289imn; Tue, 27 Mar 2018 09:42:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6AkHfuD0iaXBcGnpzBGG3mu4qlDCpAZpGTezISEAXFA+qcJWGyjIYtT4lXXdqUdnvMlHv X-Received: by 10.98.204.12 with SMTP id a12mr55962pfg.3.1522168966138; Tue, 27 Mar 2018 09:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522168966; cv=none; d=google.com; s=arc-20160816; b=Aqq66esTGgx0fI5kK1ZoJY01WNzenkgtWlx7ZHElkK7C7OSw/k9ceC5iEucfP59oQ6 A2Q7sQaxF9w47+GWi6a+GzbXltMroAPSHPLjNxZ9pEMMt9OjvpXH0mxEKqqnlKzcwkRt +hvmdkHfOCPFiUKR7v4hfzZFZp+yR2rGOiNgYvm+LtNSvp54fDnetfHA8BED94Luz+ec us9cO8G7x6LluA8FqzpXUX1342FDgC5K1X2cSdjJEjmil2D2CKoCEyfKfrrQldqC0/xM LKoOoJtsKPaS8zt6Lmvoyjk+exp69sIcZKjAUBtha/OSECSCErm2JEWIsS5iA9vtQgBp XnqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TwC3phkF9ULdLCGVOQ4kA+EP2Y8FM+RiAA9dijuyrYY=; b=uXgPA54aGxSiBkrCYM8h+MoIbfsRWzA/Q+Ngqtt3MVJYOfJpDnZsVdAOaDU+hthkl6 1JHvIpgaNpivW34begNz43p7Y0xEeozV55Zz7SWc1Z1tLejONepuNOUlrxqSmc1mtmSO eZAcIF9gFXWwEr7pO9vH+EFyOiy50/uIfwKU7j1sgyTNu3jckT7FzbgQaOIwoZakuPls NPuE1j7uea2C2OvWfdVxQYpzUNZpje0XFcVEB/obC3xYrxVP2xWT9V6wzilLnveC8oTB 8v//1xjcM4QJqoi/O8T+1SqiNtbeHnCQIPowNyxJ4JxLqy2rfaxjDgyWtZRxH4aZbdEq Pd6Q== 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 w18-v6si823308pll.406.2018.03.27.09.42.31; Tue, 27 Mar 2018 09:42:46 -0700 (PDT) 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 S932441AbeC0QkA (ORCPT + 99 others); Tue, 27 Mar 2018 12:40:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47462 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932389AbeC0Qj5 (ORCPT ); Tue, 27 Mar 2018 12:39:57 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D00B510C8; Tue, 27 Mar 2018 16:39:56 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Kresin , Hauke Mehrtens , Martin Blumenstingl , Ralf Baechle , John Crispin , linux-mips@linux-mips.org, James Hogan Subject: [PATCH 4.15 004/105] MIPS: lantiq: Enable AHB Bus for USB Date: Tue, 27 Mar 2018 18:26:44 +0200 Message-Id: <20180327162758.010063910@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mathias Kresin commit 3223a5a7d3a606dcb7d9190a788b9544a45441ee upstream. On Danube and AR9 the USB core is connected though a AHB bus to the main system cross bar, hence we need to enable the gating clock of the AHB Bus as well to make the USB controller work. Fixes: dea54fbad332 ("phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module") Signed-off-by: Mathias Kresin Signed-off-by: Hauke Mehrtens Acked-by: Martin Blumenstingl Cc: Ralf Baechle Cc: John Crispin Cc: linux-mips@linux-mips.org Cc: # 4.14+ Patchwork: https://patchwork.linux-mips.org/patch/18814/ Signed-off-by: James Hogan Signed-off-by: Greg Kroah-Hartman --- arch/mips/lantiq/xway/sysctrl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/mips/lantiq/xway/sysctrl.c +++ b/arch/mips/lantiq/xway/sysctrl.c @@ -549,9 +549,9 @@ void __init ltq_soc_init(void) clkdev_add_static(ltq_ar9_cpu_hz(), ltq_ar9_fpi_hz(), ltq_ar9_fpi_hz(), CLOCK_250M); clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); - clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); + clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); clkdev_add_pmu("1f203034.usb2-phy", "phy", 1, 0, PMU_USB1_P); - clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1); + clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1 | PMU_AHBM); clkdev_add_pmu("1e180000.etop", "switch", 1, 0, PMU_SWITCH); clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); @@ -560,7 +560,7 @@ void __init ltq_soc_init(void) } else { clkdev_add_static(ltq_danube_cpu_hz(), ltq_danube_fpi_hz(), ltq_danube_fpi_hz(), ltq_danube_pp32_hz()); - clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); + clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU);