From patchwork Tue Nov 19 05:16:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 11250857 X-Patchwork-Delegate: paulburton@kernel.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20B68930 for ; Tue, 19 Nov 2019 06:00:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 00D4E222A4 for ; Tue, 19 Nov 2019 06:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574143257; bh=P3UvzSRpRnTNM+a2JJrkuszswtOIZUdDobM0GCA6KYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=XryVJp0kFn45VCM+e7GniKYFlR9HuEjAK/ePQhYgf71KtF+alP7HxXsy7ZMif0wCq 37n2MBrHyG9npT0XKqFakXh+ZBPH8Hnjvmju5y+iMm0Fa0F0QUJQfa1/t+I5bxt/8M emQXt7bfuWmbAZdAASBiAA65pmZz448pm4X13t7U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730887AbfKSFot (ORCPT ); Tue, 19 Nov 2019 00:44:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:40280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730389AbfKSFos (ORCPT ); Tue, 19 Nov 2019 00:44:48 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5B5D2082F; Tue, 19 Nov 2019 05:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142288; bh=P3UvzSRpRnTNM+a2JJrkuszswtOIZUdDobM0GCA6KYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ATRGXo7bCGkazMVnNM9frUHi7ZvrLAKwewawN4ZmDChaC78OyusOHnP1GmE3+SbE3 3puJmYQOzmvHGX7H4cYfkK6mnwED6VqD0SC85LWMu4QbuIKtj26OOyTMRT7Y3aG+7T CDrZtF+LwFuRmIDSWoDEcHwyJ09pQvyWNKdE88ng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonas Gorski , Paul Burton , linux-mips@vger.kernel.org, Ralf Baechle , James Hogan , Florian Fainelli , Amit Pundir Subject: [PATCH 4.14 003/239] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Tue, 19 Nov 2019 06:16:43 +0100 Message-Id: <20191119051257.078005896@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- arch/mips/bcm63xx/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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