From patchwork Fri Nov 15 06:20:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 11245249 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 836EC13BD for ; Fri, 15 Nov 2019 06:24:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 641BA2075E for ; Fri, 15 Nov 2019 06:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573799057; bh=R/yEUO+q2waTOvNlrvQlDw37xD7IuqRvVUN46oEIu2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YdgMPqpOP/G+ENYQHq7S/mOxc3ckXN7Nk/+AdXddIa0IfhQefhKI5VbFQgzHFkkm7 DB8mSpSueMkkT8IsnlFyoqXZLnYg36WZX0tr0KpWXEllPrWhBOdBIhdrycKdfpCCzm J03+mifBzOtsUpeaEspFNqRfA3HsnVdrg6la1QUA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727363AbfKOGVh (ORCPT ); Fri, 15 Nov 2019 01:21:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:50422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbfKOGVd (ORCPT ); Fri, 15 Nov 2019 01:21:33 -0500 Received: from localhost (unknown [104.132.150.99]) (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 5155B20732; Fri, 15 Nov 2019 06:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573798892; bh=R/yEUO+q2waTOvNlrvQlDw37xD7IuqRvVUN46oEIu2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I9dfC5DJ7MwRQDZZBbroOJqEqXenEYzbeD0N+e/lufCrrrkAGLkSNo2d9zhXfAvX/ Nbd96WLa8+kpxhUQIJzvNBKg3HTX49+zDPrQu3+rBZjOMiga9cHG+bsANLI++IiiGY +y3P2CUyhLYTY4zK/kj8d+Tt87+wUJWuysCmoFtU= 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.4 02/20] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Fri, 15 Nov 2019 14:20:31 +0800 Message-Id: <20191115062008.088360533@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191115062006.854443935@linuxfoundation.org> References: <20191115062006.854443935@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 @@ -119,7 +119,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