Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4590120pja; Thu, 21 Nov 2019 22:25:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyvQ8R1AbtavfKsoO0i8CuzVCi9ncHx7i4OBZmuSlXCRDRS4+QKkdDa6DVIy3qA2/rfv3xQ X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr19110048ejt.320.1574403930389; Thu, 21 Nov 2019 22:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574403930; cv=none; d=google.com; s=arc-20160816; b=idSka/L48IANPTC03Ouc53c6pUXCb/mj4FHXDPKcmSHWiBl0IiRIupqjTaBG96lRj8 QmTXOOFMOLCXqeYWe5wh4AzFgidO02lOdcFiQXNWgaBJZF/gr8u2U46pqEl67AMGu4ZU zryPqMC0LicHdG1Gc9kyvWKbXI+OXZbXUpylG6eahTXe5ZvvgoAt4Xsp44N7oyUUx2A6 MBMbXPXBt64M3V2CKA1JvyL4trKy2rjz80xecLqRBkvFTLKdqe+WswMeNoaALIHR7ke/ zi2NRX2K5E+Fn3rSq7Bg8Nt5xkcVOksZdGbcfgqVxVeZuhPnZTA7zhD2F3pISG/OFFjM WZrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pNUNWG+gCfQpUscGqB5Z8gGfasYk2s+eK4uuBXh8Eu8=; b=VWQdhH/8SiqFI9ItMm1eAXVGN3R0Fd4xV+ITg2kc5uas21PAxPfahzvyzkfKaUQ3pK ZJw1WpueuTAWGcADKxnnCCngPmRP14b1FzGr3Kf0Wm8fiNJcFV+VBm0ZJKt/WS+eh8fE lus8eEFrhoIGMFhKiQqjj4Slxrnn7n29jPmtrhv4INFBYTUBpck4ZpHPV0fVzpAX6gvU dkDnnRJROhU3lFLO5PX76t9JjGcTHmHpOBUkL6ozLPZtVb1KdA8C+xRpodmH9yaEu/2F /Hsmrstns7UGZ1BfcGy1WOJkhnfG+qkCQ1qvPmfJbtA2WUeEyHsIXurkbick5s9VI8Js qq7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i/S4Mim0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si3549033eje.263.2019.11.21.22.25.06; Thu, 21 Nov 2019 22:25:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i/S4Mim0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728324AbfKVFvz (ORCPT + 99 others); Fri, 22 Nov 2019 00:51:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:56994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbfKVFvp (ORCPT ); Fri, 22 Nov 2019 00:51:45 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1925B20731; Fri, 22 Nov 2019 05:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401905; bh=rsLBM3cma18JC08uAkyl2VGiLgFBkK5qXvuZx/pyph4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i/S4Mim0whJ8NNDBu6AtP8qJg86xOSY7Y8Tihzc82mzKv4qRw3oXP5y02yQT4kI7G vFMvBj35IxPiGFgSgHNrns8CaPB5KhQ2p1a9b7XEGcrHq2aYc1dBcvEDGX9ZuIBk9d AKe5Y9rTnCQb2uNESl4nu+vp6Tk2gN0JHdFnWlRI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jonas Gorski , Paul Burton , linux-mips@vger.kernel.org, Ralf Baechle , James Hogan , Florian Fainelli , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 136/219] MIPS: BCM63XX: fix switch core reset on BCM6368 Date: Fri, 22 Nov 2019 00:47:48 -0500 Message-Id: <20191122054911.1750-129-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonas Gorski [ Upstream commit 8a38dacf87180738d42b058334c951eba15d2d47 ] 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: Sasha Levin --- 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 a2af38cf28a70..64574e74cb236 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 -- 2.20.1