linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: Add the missing 'CPU_1074K' into __get_cpu_type()
@ 2020-09-23  6:53 Wei Li
  2020-09-24 13:55 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Li @ 2020-09-23  6:53 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Paul Burton, Serge Semin, Huacai Chen,
	Jiaxun Yang, Guenter Roeck, Ralf Baechle, Leonid Yegoshin,
	Steven J. Hill
  Cc: linux-mips, linux-kernel, guohanjun

Commit 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") split
1074K from the 74K as an unique CPU type, while it missed to add the
'CPU_1074K' in __get_cpu_type(). So let's add it back.

Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.")
Signed-off-by: Wei Li <liwei391@huawei.com>
---
 arch/mips/include/asm/cpu-type.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h
index 75a7a382da09..3288cef4b168 100644
--- a/arch/mips/include/asm/cpu-type.h
+++ b/arch/mips/include/asm/cpu-type.h
@@ -47,6 +47,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)
 	case CPU_34K:
 	case CPU_1004K:
 	case CPU_74K:
+	case CPU_1074K:
 	case CPU_M14KC:
 	case CPU_M14KEC:
 	case CPU_INTERAPTIV:
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: Add the missing 'CPU_1074K' into __get_cpu_type()
  2020-09-23  6:53 [PATCH] MIPS: Add the missing 'CPU_1074K' into __get_cpu_type() Wei Li
@ 2020-09-24 13:55 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-24 13:55 UTC (permalink / raw)
  To: Wei Li
  Cc: Paul Burton, Serge Semin, Huacai Chen, Jiaxun Yang,
	Guenter Roeck, Ralf Baechle, Leonid Yegoshin, Steven J. Hill,
	linux-mips, linux-kernel, guohanjun

On Wed, Sep 23, 2020 at 02:53:12PM +0800, Wei Li wrote:
> Commit 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") split
> 1074K from the 74K as an unique CPU type, while it missed to add the
> 'CPU_1074K' in __get_cpu_type(). So let's add it back.
> 
> Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.")
> Signed-off-by: Wei Li <liwei391@huawei.com>
> ---
>  arch/mips/include/asm/cpu-type.h | 1 +
>  1 file changed, 1 insertion(+)

applied to mips-fixes.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-24 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23  6:53 [PATCH] MIPS: Add the missing 'CPU_1074K' into __get_cpu_type() Wei Li
2020-09-24 13:55 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).