From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3A66C87FE7 for ; Wed, 31 May 2023 13:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237135AbjEaNvN (ORCPT ); Wed, 31 May 2023 09:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237512AbjEaNus (ORCPT ); Wed, 31 May 2023 09:50:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0BE41FC8; Wed, 31 May 2023 06:46:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8254463B10; Wed, 31 May 2023 13:46:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41869C433D2; Wed, 31 May 2023 13:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685540778; bh=m+GOwXUa0kziIQ5hoJSwAPnamzkvs1sMWWSnsC3soOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s+B8omqRSlj0ZSs2G8ZH5D7hAz1GP2GnDjgt793A0hCIGom06RUMlqtbtKkwoYTLb Gn2Fcz3RIfrlBMTdPPyoiFG8uyPZri4c19YqcAP0r9gPhmYn99mEddiagWL9HZAbXi YTTsCF1FOWr70vFZaZ0GvatN6rmvbzhGWg2LJtlK8uWkHm0g8t49WG9zyZATChW2IC psTH8PK9+0crAfsipreQkCxNBahjPrVhr9pdozMdoeJqgJqVRBdFgHrjfbqITAzyfH YZx2qAWC94BVKcWik3V0PRQNxN6Ejvdt/gbRnmBJrh1uI2s3VTRdIAuhQ4Vx2IGmsH A5v3jwMBxbCDg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Manuel Lauss , Thomas Bogendoerfer , Sasha Levin , jiaxun.yang@flygoat.com, linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 07/10] MIPS: Restore Au1300 support Date: Wed, 31 May 2023 09:46:03 -0400 Message-Id: <20230531134606.3385210-7-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531134606.3385210-1-sashal@kernel.org> References: <20230531134606.3385210-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Manuel Lauss [ Upstream commit f2041708dee30a3425f680265c337acd28293782 ] The Au1300, at least the one I have to test, uses the NetLogic vendor ID, but commit 95b8a5e0111a ("MIPS: Remove NETLOGIC support") also dropped Au1300 detection. Restore Au1300 detection. Tested on DB1300 with Au1380 chip. Signed-off-by: Manuel Lauss Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/cpu-probe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index cf3fd549e16d0..f9368071a6bd9 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -1686,6 +1686,10 @@ static inline void cpu_probe_alchemy(struct cpuinfo_mips *c, unsigned int cpu) break; } break; + case PRID_IMP_NETLOGIC_AU13XX: + c->cputype = CPU_ALCHEMY; + __cpu_name[cpu] = "Au1300"; + break; } } @@ -1988,6 +1992,7 @@ void cpu_probe(void) cpu_probe_mips(c, cpu); break; case PRID_COMP_ALCHEMY: + case PRID_COMP_NETLOGIC: cpu_probe_alchemy(c, cpu); break; case PRID_COMP_SIBYTE: -- 2.39.2