Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp276308rwd; Fri, 19 May 2023 20:11:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qAeIyIs8AM2ol/HxHPowK1j6JcLWVbsxx1voPRhl6VotW+usOJQ+cAwsLkBPhQcD+pPGU X-Received: by 2002:a05:6a20:12c1:b0:101:7ccd:e197 with SMTP id v1-20020a056a2012c100b001017ccde197mr4813781pzg.52.1684552290889; Fri, 19 May 2023 20:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684552290; cv=none; d=google.com; s=arc-20160816; b=OapOMZhKgvRjs7BdvHSU1yxAEvtaMbRoLR5b3xakNEMCKnXFHEsEImz7q7cbfmRxvy uW0Wf7yEM/qkXBI2mfKm576VAk3RD1mWfI/0gc/QoYm5r50hNJTQAt772VP7cnCyXOnn iYbtuwt9RTT24gQ6zF76rOoAKHfZVVm+AGxyZ5pZWGyr4ZQ0038zgJ2ofmQj+lhM8dgk IzqY0CvoN9gVI5/NFS5F2LPlSsj0foCQt2FoqqaN4u8zXwYOW6Amz3Wp6H+Obt0VDfoH bNYWDgtE4G08Dtlz0pRXtF4nQYZUsPLUGLTlpvSl8nKpPWWsXdR+hDevJh8XHA1lIy2C zZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mG6nPHHvLhCRp6hw5zssT3HnTGNDFbEKlVUElYpacVI=; b=fh5iazCaozMnIr44dFnzwcThIzynOdlFGES6vwMQR+rlDXF0MhQW1Bf+NkMEf/e/uG 0UTY6sJmU+q58zcS5hqN10bvDRHPx0mQUbA8u1vjLsX0VSC/7wNLeuR8kbCMOgFUzKbJ nvsh/i8Te4tJgscbcUbZy6u6LqmjZvhzLfGU73gIeAswTH56leOfzZJw9xtD5kGOaJvW HBWJgwwKgdzk91IraSUbquSGU+BNoHg03QdC+mkGPtsJEgtfqdhoQtGBrG0qiSNiceyt kBqfq7usREBpipkGFdFWvVJQ07bHlpYEBWlwT88GYoIMNEixezj1B7h7Stlho0AB6iP/ rlJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BzEQpqpk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a633718000000b00513a793932fsi685575pga.394.2023.05.19.20.11.16; Fri, 19 May 2023 20:11:30 -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=@gmail.com header.s=20221208 header.b=BzEQpqpk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjETCyU (ORCPT + 99 others); Fri, 19 May 2023 22:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjETCyT (ORCPT ); Fri, 19 May 2023 22:54:19 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C85E45; Fri, 19 May 2023 19:54:15 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-64384c6797eso3134154b3a.2; Fri, 19 May 2023 19:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684551255; x=1687143255; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mG6nPHHvLhCRp6hw5zssT3HnTGNDFbEKlVUElYpacVI=; b=BzEQpqpkv05j9izGvRa/Kc6/0CzpEmOjqOmytho8xWjqmfoXL9HPpPBoopKHhbLPBn feHiKzY6LDs/C+mujSkZUixPEtU9+kXbQUCXm3zUzuIXtF8LR3h2WZo2J/nSzqu4TF7+ kjen2D4ctrhIzFYIUAIjCfKffh3U/whcpNu3atQaE35YFMo9B2vBqdlkzPkaXoSASQwA /vLIWZKXBblbS4iTK/S8Gglkk/j0Dwnuu+M1nNvTfsSUzGkYuc5RW1htrka6efswyXyM oyqUq7w4MfzQpj/uXepKL2RFqJYev8EsR8N9Cuy6rE3yViy5ZfmUsPMELowy/U4Zm3mE yxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684551255; x=1687143255; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mG6nPHHvLhCRp6hw5zssT3HnTGNDFbEKlVUElYpacVI=; b=WFtF3S0jt1pgxYt5mEqWoTdHjlde9DSXklQSAGRjEfJMKxofpYnWkQI/Gpt3IfSJJY cH1OkBMigRrdak3oLgyeqSE5QnQU9K+sBC315CS7BSQkSfxqrnyRadmeu+JL+OqudEIj MXSIL4HuLYWxezQiIm9gDh02Lti4tybcomIL4yipn1W2DcT3TrmL/+8/4qfATHrJE+lA wOYpIPr2OVPLTCFFCo+H7VdzNIgXUMM17IdZ/y4PbuRpWPd9q1YYW2l9oXnQGOGIdBPZ S6rc0+8o7Ip0yJOtKpgQUeMT1dw4vS+bBulvIUcDHAjCXPZxrclrO7bxQD9YcJJKCOcZ jrpw== X-Gm-Message-State: AC+VfDx1XVQUc+t+NBwf/1Wn0Mr2A1+Rj5F10pr5W7kurYxUp7bZw+MH 8Wk2dXD9uKQMV+DmpjU1Zfb1nlzP5v9hJw== X-Received: by 2002:a05:6a20:6f01:b0:100:5082:611d with SMTP id gt1-20020a056a206f0100b001005082611dmr3428675pzb.32.1684551255051; Fri, 19 May 2023 19:54:15 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id a21-20020a62bd15000000b0064389eab4c8sm314729pff.126.2023.05.19.19.54.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 May 2023 19:54:14 -0700 (PDT) Message-ID: <7a1d4bf8-7ad2-daac-4822-9e1cdac35c89@gmail.com> Date: Fri, 19 May 2023 19:54:12 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH net-next v2 2/7] net: dsa: mv88e6xxx: pass directly chip structure to mv88e6xxx_phy_is_internal Content-Language: en-US To: alexis.lothore@bootlin.com, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King Cc: 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, =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20230519141303.245235-1-alexis.lothore@bootlin.com> <20230519141303.245235-3-alexis.lothore@bootlin.com> From: Florian Fainelli In-Reply-To: <20230519141303.245235-3-alexis.lothore@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 5/19/2023 7:12 AM, alexis.lothore@bootlin.com wrote: > From: Alexis Lothoré > > Since this function is a simple helper, we do not need to pass a full > dsa_switch structure, we can directly pass the mv88e6xxx_chip structure. > Doing so will allow to share this function with any other function > not manipulating dsa_switch structure but needing info about number of > internal phys > > Signed-off-by: Alexis Lothoré Reviewed-by: Florian Fainelli -- Florian