From patchwork Mon Feb 18 12:30:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 10817873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC5571390 for ; Mon, 18 Feb 2019 12:30:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB1462A993 for ; Mon, 18 Feb 2019 12:30:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFB982A985; Mon, 18 Feb 2019 12:30:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 475A02A95F for ; Mon, 18 Feb 2019 12:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728293AbfBRMaU (ORCPT ); Mon, 18 Feb 2019 07:30:20 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:39674 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729690AbfBRMaU (ORCPT ); Mon, 18 Feb 2019 07:30:20 -0500 Received: by mail-yb1-f196.google.com with SMTP id s5so6680277ybp.6 for ; Mon, 18 Feb 2019 04:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ateX3s8gpfmkf/nVro5ijlmm4WUX31nTOLg9tsTAyHo=; b=Hx1wjV+im/r8g4D1bp3S1D5jpGoQGj7HvHwpejDBhO/CkXGx+488gncYSBSpGNSARm iyTtVcc3KgVZaLfunUua9UODmwMPXQnFIRm8hl9EVyEh8QHXmQBzsdp1Z/CBoOPeaoSV ikin1xwyzeDLAkn4CXt3ISvrrC9oQ4MFt5ZqQvfTYSTYah6G8iIsRMK35MQQN9CKqqtP ekeKHjxRHUN/JwIAHKBcbEldy8+1U9naKLok9pywoHknJNboUZAjo1VQUTYjxYxuA2K/ o6L+DI/PyfOHSh1Zd1/haa40AGy3gMtSNoSNf89t33VGN6ZH+Kbn1/slGAk0GH0hxm+W LHbg== 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; bh=ateX3s8gpfmkf/nVro5ijlmm4WUX31nTOLg9tsTAyHo=; b=VdC1xE75AxXKUNiYUzqRjtD7IYcOD7wVC2pwTof5SkXcPRoQTFtS9uC7f82sr+9RhQ u4XTlUMZWMozZmJvtMLi2Ae/OE6ECFLmF3h2/I85HtOtRb1KmsSIvKbptoo8rifQqj3n A3hdzvZ8TP32lpFt3SkoAtiYFh9LQSFxyAVbKHyD/iIaXw+vVbijnBWsodRuQqk/WF0u encwrKBIG9nUX82rgqBmm1tJ8dIF5KxvXSaVPiHgAjhxhWjKftVApOV6ZF3fNAEmUCay 9Pv8OARKfiz1tZ9VaUr8EAiU8WJP8YS8pOFdceeQ1VdFwRaNoAy5VyqNMJJdk4oXZU3g /Fyg== X-Gm-Message-State: AHQUAub17YYtgyqn0vM6WPW0IueolmVbhdDOOvRTv6WlGhohnZJVyo9B U9Euf7dytsa+G+dsFiiWIXjloQ== X-Google-Smtp-Source: AHgI3IZ0ikGflQzpigdpSjHwCFVf8oIyLZ31XectcfYiTm+tuEa6KV4uTlhpgVb9eX96Xd31K9dlAg== X-Received: by 2002:a25:be85:: with SMTP id i5mr18703799ybk.134.1550493019787; Mon, 18 Feb 2019 04:30:19 -0800 (PST) Received: from localhost.localdomain ([106.51.22.126]) by smtp.gmail.com with ESMTPSA id z77sm1663695ywz.91.2019.02.18.04.30.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Feb 2019 04:30:19 -0800 (PST) From: Amit Pundir To: Greg KH Cc: Stable , Linus Walleij , Jonas Gorski , Paul Burton , linux-mips@vger.kernel.org, Ralf Baechle , James Hogan , Florian Fainelli Subject: [PATCH for-3.18.y+] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Mon, 18 Feb 2019 18:00:10 +0530 Message-Id: <1550493012-5959-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jonas Gorski commit 8a38dacf87180738d42b058334c951eba15d2d47 upstream. The Ethernet Switch core mask was set to 0, causing the switch core to be not reset on BCM6368 on boot. Provide the proper mask so the switch core gets reset to a known good state. Fixes: 799faa626c71 ("MIPS: BCM63XX: add core reset helper") Signed-off-by: Jonas Gorski Signed-off-by: Paul Burton Cc: linux-mips@vger.kernel.org Cc: Ralf Baechle Cc: James Hogan Cc: Florian Fainelli Signed-off-by: Amit Pundir --- Cherry-picked from lede tree https://git.lede-project.org/?p=source.git and build tested for LTS trees up to v4.19.y for ARCH=mips bcm63xx_defconfig. arch/mips/bcm63xx/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/bcm63xx/reset.c b/arch/mips/bcm63xx/reset.c index a2af38cf28a7..64574e74cb23 100644 --- a/arch/mips/bcm63xx/reset.c +++ b/arch/mips/bcm63xx/reset.c @@ -120,7 +120,7 @@ #define BCM6368_RESET_DSL 0 #define BCM6368_RESET_SAR SOFTRESET_6368_SAR_MASK #define BCM6368_RESET_EPHY SOFTRESET_6368_EPHY_MASK -#define BCM6368_RESET_ENETSW 0 +#define BCM6368_RESET_ENETSW SOFTRESET_6368_ENETSW_MASK #define BCM6368_RESET_PCM SOFTRESET_6368_PCM_MASK #define BCM6368_RESET_MPI SOFTRESET_6368_MPI_MASK #define BCM6368_RESET_PCIE 0