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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19140C2BA19 for ; Tue, 14 Apr 2020 17:33:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EED9B2054F for ; Tue, 14 Apr 2020 17:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407701AbgDNRdR (ORCPT ); Tue, 14 Apr 2020 13:33:17 -0400 Received: from elvis.franken.de ([193.175.24.41]:38894 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732341AbgDNRdN (ORCPT ); Tue, 14 Apr 2020 13:33:13 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jOPQo-00026G-00; Tue, 14 Apr 2020 19:33:06 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id E7E29C010A; Tue, 14 Apr 2020 19:32:08 +0200 (CEST) Date: Tue, 14 Apr 2020 19:32:08 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Florian Fainelli , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH v2] MIPS: Limit check_bugs32() to affected platform Message-ID: <20200414173208.GA22802@alpha.franken.de> References: <1586488859-18715-1-git-send-email-yangtiezhu@loongson.cn> <181cf95e-c5f6-3899-e8eb-3f8847ec86d9@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <181cf95e-c5f6-3899-e8eb-3f8847ec86d9@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 11, 2020 at 10:32:02AM +0800, Tiezhu Yang wrote: > On 04/11/2020 12:25 AM, Florian Fainelli wrote: > > > >On 4/9/2020 8:20 PM, Tiezhu Yang wrote: > >>In the current code, check_bugs32() only handles MIPS32 CPU type CPU_34K, > >>it is better to build and call it on the affected platform. > >> > >>Move check_bugs32() to the new added 34k-bugs32.c to indicate the fact that > >>the code is specific to the 34k CPU, and also add CONFIG_CPU_34K_BUGS32 to > >>control whether or not check the bugs. > >> > >>Signed-off-by: Tiezhu Yang > >This is not a whole lot of code, so moving this to a separate > >translation unit seems a bit heavy handed, also file renames, albeit > >tracked properly by git are always a challenge when doing back ports. > > Hi Florian, > > There exists the following three ways to do it, I'm fine either way, > maybe the first way looks better. Let us wait for the MIPS maintainer > to say what he prefer. > > Hi Thomas, > > What is your opinion? I don't see a reason for doing that at all. The 34K workaround is only compiled in if CONFIG_SYS_HAS_CPU_MIPS32_R2 is defined. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]