Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2717427rwd; Fri, 19 May 2023 09:14:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bbf2ehsrXnfHvXAiSXe3uMsY4MVR8lsHT6vbb5xWfY3sECF8hpQyY4+O/n2mx7kzn0Ank X-Received: by 2002:a05:6a21:9201:b0:ff:b564:c532 with SMTP id tl1-20020a056a21920100b000ffb564c532mr2437951pzb.43.1684512885092; Fri, 19 May 2023 09:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684512885; cv=none; d=google.com; s=arc-20160816; b=csk4PkJeMAMvBruujTDLQd6CZvucR6o7iz6y1HiRfYrWbtBCnd+LeRxp8S5eI19gZL oVmyb6UBBuUVdwK8frqJILXYnUf/3jg6XS/2fS/74y77Gk2hatgHau4yC1lr5asJIb3B XfGOTRwTddo6zOB4Nb7Vtpo09b1IX9hlxTUeg7xbZnwg+1YlXa2V6nIu44GNenZd2E7u BejLJEpEmcL/s/FCd2Fm3+TlAfFiCuqc1CMFEsgRRArm2oOwZtAk3abVkQLgllTfsC2u Ps+BgIsoJEa1THOI0X5Jiw4SSnBZLQyb/LPmFJtcA2MtTa3QhNX1NI1rRKe8ExFaD0Lg GKgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fEghx6mVjcgBf40Xq8ewYu2k1cwOduuzKJ9E2w6kTwM=; b=TfbQm6gMp6DYFKZB2fghMd834SOuEvX7Ryd9hGG+G5xmBI9pb8d3zRBWUVafMqLIfW jAIRvcmMoH0X7TEa8Ke5srW09QtJ7z8hVIOlxPyA1Yiv0XT+p9yd6o4ZUrlItu2XNzdJ qlz1BYZz1KRbGDWiOxhnEfG7lT2iYYGbD45dUBvIV656b+42enuMPLE5rA3BB02M53Nj 3ggJtuTztqot1P2cfGHUQFgmvLGMKD85oNJPY68uFSS3CGZ/PTYIX5E6GbhyGHm6QfRL c5he16Yn8Ven0nEYMLd67Tlob/XpczUWcM9YGS/ypDwIplQgCq6o1he6HibmwhQNitTy ZRCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i1W21HiP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b005258409132esi3826398pgb.150.2023.05.19.09.14.31; Fri, 19 May 2023 09:14:45 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i1W21HiP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjESQLe (ORCPT + 99 others); Fri, 19 May 2023 12:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjESQLd (ORCPT ); Fri, 19 May 2023 12:11:33 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38DF61AB; Fri, 19 May 2023 09:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=fEghx6mVjcgBf40Xq8ewYu2k1cwOduuzKJ9E2w6kTwM=; b=i1W21HiP4BIviwkn1gcVZAGlHI frWQrTpRodMyiUCDpfrOXFUrdkqUDsqQN5UhcGyWxJW5IkZHtevoCdkub2+rufkSMsPx1jaUNH/3w VAD1yJZwxtVK5eSgtdBCbr9E2DPYlqzGXaCn2sr1YoQa4SAULzUi26L9O6RmWgJ8GZPU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q02hN-00DLRZ-MI; Fri, 19 May 2023 18:11:21 +0200 Date: Fri, 19 May 2023 18:11:21 +0200 From: Andrew Lunn To: alexis.lothore@bootlin.com Cc: Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, paul.arola@telus.com, scott.roberts@telus.com, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH net-next v2 4/7] net: dsa: mv88e6xxx: add field to specify internal phys layout Message-ID: <31103ab4-c055-43bc-a124-84976ee47e32@lunn.ch> References: <20230519141303.245235-1-alexis.lothore@bootlin.com> <20230519141303.245235-5-alexis.lothore@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519141303.245235-5-alexis.lothore@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 > @@ -1198,13 +1198,17 @@ int mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, > { > int phy, irq; > > - for (phy = 0; phy < chip->info->num_internal_phys; phy++) { > + for (phy = chip->info->internal_phys_offset; > + phy < > + chip->info->num_internal_phys + chip->info->internal_phys_offset; > + phy++) { The code style is not so nice. How about moving this addition out of the for loop, it is static anyway. And then you can avoid splitting the expression over multiple lines. > irq = irq_find_mapping(chip->g2_irq.domain, phy); > if (irq < 0) > return irq; > > bus->irq[chip->info->phy_base_addr + phy] = irq; > } > + No whitespace changed please. Andrew --- pw-bot: cr