Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7512704rwp; Tue, 18 Jul 2023 17:06:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHohrR/t2P9xJSaFAg+LqMMlHjnH/HGsslty7LAWM0WcZzcWFxut1M+EQzWcd6NxNmk2pmQ X-Received: by 2002:a17:903:441:b0:1b8:3601:9bf7 with SMTP id iw1-20020a170903044100b001b836019bf7mr14151106plb.24.1689725212941; Tue, 18 Jul 2023 17:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689725212; cv=none; d=google.com; s=arc-20160816; b=jRnWYhP5D2zJmkXkhVHenS5KuiHULWjEWBZUuwOLf/SqftgHHMqwUyfOtN+By0Pra/ nTSPtco5u0VnmIXBszH0DbgLSHQWRIM36dU4gmq73uBY88iEWjHiXclPSGsmkmT6qHiU MxpqJ57XaPwztYCzQlh5fFLrwZpuoI25UK62WW7y6jBqqILkka1D3dCMhR86E5u/gI+V GMUBNkrgXDZ88O3Y48gsJ9Vqz0uWFOE8iXYMJ9fFK94brJLrNM0nY8PhWHI+mzpTc1j5 7K8mDvUZshekDHNpRAwP0zqhZnI5P5NTvQHVaw+0EJTqzaP81q2IJ8J+z6aYM//8G4jI yvAg== 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=cENNk0DUwEVttvnmoBqq817jhXxYEJLMGNEsGNnVoM8=; fh=3Qw1G3qOo3in3hNUZUHpUMCPsGaVFIMiDja10RKWAas=; b=PL2wXMqvhS0tNJ1kZJ8V7MuiaacffmWGFxYgvoxdd90xQZFv6PQ4zpjruyk5zaV/YI wcvC3y8JwuEcDA1kGHwQbAUpUuJLPMlKGu7xG8ZpIF6KrG0sYWWFwVv7E6A+v4fUo9Es fEQAOPG4mlPfshhfT7/mSjbpWBZmpSw9SDHYwGHX83e4T2bz0zvKxRNtafC9/ym9sZY8 OsmZ88GkJnvEpVNxuoL4gTKeJLkur6gklvwilNDL7woYdPrzUfiG86DWJr90iWYdsT95 DlH5gATmYyEnSo9sPbWN7jpkBg/ixFvX4kgmwFFukEK8a2fKW5WLN/PJ06Vt/g/PCevP rZaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UoB2zwRd; 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 i14-20020a170902c94e00b001b66f1d121bsi1510768pla.255.2023.07.18.17.06.40; Tue, 18 Jul 2023 17:06:52 -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=UoB2zwRd; 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 S230128AbjGRXbI (ORCPT + 99 others); Tue, 18 Jul 2023 19:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjGRXbH (ORCPT ); Tue, 18 Jul 2023 19:31:07 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C208D134; Tue, 18 Jul 2023 16:30:59 -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=cENNk0DUwEVttvnmoBqq817jhXxYEJLMGNEsGNnVoM8=; b=UoB2zwRdDo3OKW92kxcnnaC0mo U+mFSc8P5miVWXac4Do2m4iPei5L0AKUEjhS1IYapjv79+zZjcWeIuWPK1yZRhYCkLSJysaIiXOBj 9wHFcVz9/rL3UAtrE8k63aEsYf2NeWoE1d9g9iA+/d67sPTmI9w8RBfCyakxNBHXDTfc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qLu9B-001fie-Cs; Wed, 19 Jul 2023 01:30:25 +0200 Date: Wed, 19 Jul 2023 01:30:25 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Michael Walle , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yisen Zhuang , Salil Mehta , Florian Fainelli , Broadcom internal kernel review list , Marek =?iso-8859-1?Q?Beh=FAn?= , Xu Liang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman Subject: Re: [PATCH net-next v3 03/11] net: phy: replace is_c45 with phy_accces_mode Message-ID: <26d16266-83e2-4494-8c29-ca4879be28d4@lunn.ch> References: <20230620-feature-c45-over-c22-v3-0-9eb37edf7be0@kernel.org> <20230620-feature-c45-over-c22-v3-3-9eb37edf7be0@kernel.org> <509889a3-f633-40b0-8349-9ef378818cc7@lunn.ch> <6afc205e-b525-44df-b81b-ef7cfdfb6680@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 > Why would it be two drivers? I'm assuming there is no C22 over C45. So phy_read() is not going to work. I'm also assuming the current driver is using the C22 register space. So either the driver needs re-writing to use only the C45 register space, maybe using C45 over C22, or it needs a second parallel driver using just the C45 register space when only C45 bus transfers are available. Andrew