Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9434827rwd; Wed, 21 Jun 2023 07:25:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sAPzkBKlUUu2BF3fyn2dYVPLg5iRmDnvsf/Xaoz+TyAtL0BgT/mcix9DKNh+7YsjlSbqI X-Received: by 2002:a05:6a00:cc4:b0:63d:47ab:65ed with SMTP id b4-20020a056a000cc400b0063d47ab65edmr13231207pfv.7.1687357546898; Wed, 21 Jun 2023 07:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687357546; cv=none; d=google.com; s=arc-20160816; b=vNaBOrchEwXQc/zeV21i305uf+wc2WWO4QUmNbOEdemWzverRCCqh2FcuYFz1pDhP6 SFhkqhF7+s6AtrendUu0+dKDNPXhcFHqb9oQbUitCERriOXQAO4WjKzVxcAJFBBJoWzM 2dF32GyGK+nmnygEKYqQbpIoJ5u4BK16m3vXlJg7RbK5QhF6+zocsDiHleoBRT32iHRH ECcI93IfmFiaehI2OQR6GIcJjQXR3IOEgY6zOz8KUOTprLB0zpKzy9dZKV5YYiL+bO6S 0xen5r6dFybwNVBUqDfBNhhpDLGr2BLWDaxyYc7vZ0XBYoGfH0gh40U2BxJb8/a5BXZV wGmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZWRCFZXAPHzdA6vP2E2XWsKuJ79sIapBO4CmdZgqJ3w=; b=zzIUe3r10ZbaGOkdqpI6I5dGoU47RLP9G0HG+O4RtX8FAWoI/qGh9mHrMk/oUBtBvS eeNtriIxLG2qVk64+x9SYbwnWl4SpFdAZIFCB5GRBU28LekflYYnW/6RQtEJzVL+eqk2 BqCE2M3FpdXiKxqAvAoH/0j/N0ztC7jAYAxbz/zJm6NO+oqpmyu9vR6ww1CzP/IOumMM iO87fhnofLkriw6cHrAwcxpivHLnrczM4dy1ILyiGB1Lat5pdWn1j5zZ0f3019clAZa7 ljxt6Vj98l4RcX0dSnIj3gCF2m641Ue6y00IvOoE/pafht0NgEvWDDwhJMxggg8flLJ1 JhZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a636f0b000000b00553365f5bf0si455468pgc.321.2023.06.21.07.25.33; Wed, 21 Jun 2023 07:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjFUOI7 (ORCPT + 99 others); Wed, 21 Jun 2023 10:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbjFUOIx (ORCPT ); Wed, 21 Jun 2023 10:08:53 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6139218C; Wed, 21 Jun 2023 07:08:52 -0700 (PDT) Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1qByVq-0004Ap-00; Wed, 21 Jun 2023 16:08:46 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id F1A4EC0346; Wed, 21 Jun 2023 16:08:22 +0200 (CEST) Date: Wed, 21 Jun 2023 16:08:22 +0200 From: Thomas Bogendoerfer To: Shiji Yang Cc: linux-mips@vger.kernel.org, john@phrozen.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] mips: ralink: introduce commonly used remap node function Message-ID: <20230621140822.GC7206@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 07:44:32PM +0800, Shiji Yang wrote: > The ralink_of_remap() function is repeated several times on SoC specific > source files. They have the same structure, but just differ in compatible > strings. In order to make commonly use of these codes, this patch > introduces a newly designed mtmips_of_remap_node() function to match and > remap all supported system controller and memory controller nodes. > > Build and run tested on MT7620 and MT7628. > > Signed-off-by: Shiji Yang > --- > arch/mips/ralink/common.h | 2 -- > arch/mips/ralink/mt7620.c | 9 --------- > arch/mips/ralink/mt7621.c | 9 --------- > arch/mips/ralink/of.c | 42 ++++++++++++++++++++++++++++++++------- > arch/mips/ralink/rt288x.c | 9 --------- > arch/mips/ralink/rt305x.c | 9 --------- > arch/mips/ralink/rt3883.c | 9 --------- > 7 files changed, 35 insertions(+), 54 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]