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 F2FC1C77B7A for ; Wed, 31 May 2023 13:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237346AbjEaNxV (ORCPT ); Wed, 31 May 2023 09:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237366AbjEaNu3 (ORCPT ); Wed, 31 May 2023 09:50:29 -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 099A430E7; Wed, 31 May 2023 06:46:00 -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 1832B63703; Wed, 31 May 2023 13:45:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C994BC433D2; Wed, 31 May 2023 13:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685540758; bh=R6DbqOMM/XsB0TOY41yzxYiaFTGjmRmDmp3AUPXK3OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p15bEg5MCraxGVqUlkGzSRrl6NXI2nvz5n5OOptSAOWoqpDKERIrpNCgDku9Jc5sc 4Ud6tsH76K8mdZR71o8KrTrMFl/XNrG0ngStd5a9GGq2whav16Uc+RImWfctNlTn9U CQ9haovs7iwTbbApgchb+w0Tu/KGm2j4vLQfLcEKNzixKajWUYg1rrKSPAGDlqMZey s35xQKtud53QL9/Id9BdiVRydmBvp6y5QUq9PBd9U2/FLrjeTOIWzc6V6yYAunhC5J fRUxvi+dnyMaP2tAX6XzYxlwf+yPd04MgFCCJFq+LWLwRPUBsoA7WNr+6/KtH45zy2 EGJidFX1xlUSQ== 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.19 10/13] MIPS: Restore Au1300 support Date: Wed, 31 May 2023 09:45:38 -0400 Message-Id: <20230531134541.3385043-10-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531134541.3385043-1-sashal@kernel.org> References: <20230531134541.3385043-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-kernel@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 581defb369c36..ef95f488de6b0 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -1705,6 +1705,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; } } @@ -2017,6 +2021,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