From patchwork Fri Nov 15 06:20:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 11245247 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 00F5113BD for ; Fri, 15 Nov 2019 06:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA1A220728 for ; Fri, 15 Nov 2019 06:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573799025; bh=R/yEUO+q2waTOvNlrvQlDw37xD7IuqRvVUN46oEIu2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=j4hcyaWr0AeihGSY3ZsIZJEc/88Yva0b/f3gNfPKM+FegdJ17+n337dAwI/I3Vq2J 9AG+jcFkDQxuCh2GgJqehFEyQcPP+l0M65E5vCjZwhmOqmw03EQp5ZTmM/cjPe7E53 gPnKqh3yk6vNFbWgCQIxXJv2czFUw5dm43vyUOKE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727747AbfKOGWe (ORCPT ); Fri, 15 Nov 2019 01:22:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:51820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727725AbfKOGW2 (ORCPT ); Fri, 15 Nov 2019 01:22:28 -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 0374420637; Fri, 15 Nov 2019 06:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573798947; bh=R/yEUO+q2waTOvNlrvQlDw37xD7IuqRvVUN46oEIu2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ppC1+6xATCY/0B63pAUn/9vsF5maHjERQpZDulcgtPe/oGlniGXbFxaDGAY+uzy1R /qPBOW0VsIWUy7ZNoL5+7XMREtchEPpM1vy7QsGKWy7LRx/fOoefhCeZLf27PdUqWq RSffTrI7xbd2cJMp95d3FFCZH71QTIPL6k4V+CW4= 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.9 03/31] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Fri, 15 Nov 2019 14:20:32 +0800 Message-Id: <20191115062010.879739177@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191115062009.813108457@linuxfoundation.org> References: <20191115062009.813108457@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