From patchwork Tue Nov 19 05:13:19 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: 11250889 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 10778109A for ; Tue, 19 Nov 2019 06:12:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E393C21939 for ; Tue, 19 Nov 2019 06:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574143925; bh=P3UvzSRpRnTNM+a2JJrkuszswtOIZUdDobM0GCA6KYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QxO2rgMVAexv9UEVgByxNrRkcU2yboEY2onxIViy598gMcTln2SRVkClTpuMPsrf8 zNL8KBJP0s5nGmvCjfQsONEnRAyEIkzo/cfMJv+5M+f8dcnge/zWb8vspPd+QN8HXW 9c0SCD54KAv/u8g+lE+C6Ux+zVu80mXtehZ57f/Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbfKSFXT (ORCPT ); Tue, 19 Nov 2019 00:23:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:38918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbfKSFXT (ORCPT ); Tue, 19 Nov 2019 00:23:19 -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 0ECAF21939; Tue, 19 Nov 2019 05:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574140998; bh=P3UvzSRpRnTNM+a2JJrkuszswtOIZUdDobM0GCA6KYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZTyQbh26klS1D9D1yyOuHwAmGQf2bnKSWTOHR0h0afd4o1ab6sWvydo5sSgNRLk1+ +bTwG2yL2R2IToDBbeLR/qsCz4E5iCb3pVty7Pu1PHLTVYd1ugv5D2eufGpw8d27mF DMtnpm7CAhiC9/njY5muGBM9EPwKJH7J5M2IcNGg= 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.19 002/422] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Tue, 19 Nov 2019 06:13:19 +0100 Message-Id: <20191119051400.401770057@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051400.261610025@linuxfoundation.org> References: <20191119051400.261610025@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