Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1723500pxv; Sat, 10 Jul 2021 13:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLvlENCeboeAFHJ5QoYpmAvOIZpP19zxfzXc0sqJ9//xCusVWxgzabAxKkSOwIM5S3b6cc X-Received: by 2002:a05:6402:c6:: with SMTP id i6mr15964436edu.330.1625947475131; Sat, 10 Jul 2021 13:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625947475; cv=none; d=google.com; s=arc-20160816; b=i6oxImdcBCJz1YrJ3vZcsgkY0f05Q3csQE7n6Nuv5EeX3IJobaDAcPpYzdMQsSzIf0 VdDkfz1h/BG4GULptDHz9gNHZEWTAUvF05Xp3BNCRrOBjUXBYKYNpPbYB+TrVKE13aUp SqAWitPXf8QF62CJr5uFyGw3/Cb7YECkuhP3EimvD8lS+lAK+9C/VihCzCOTrkRytqUM fO+kNNo4p/8GTM9e+D1HbJ4oLo7nUNs5s6rRRCatKuQIJ6qBBQ+BU7YL4Li7QkwgVLLw wfeSTlmVjRi2mPXw326LfVNOMhD3qw8cFQSE+auH6unN/ufKk8Pv04eag5e2XQ4nFKsc W8ag== 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; bh=JKYSk8cI5rzkk+FQMR88IvOy5p2WYdjHUz8YQ1/Hupk=; b=ZmpxCDecCZFpz+vt6/a/gYe9oOYagwsl8zjJf7Vf+JK1dEnfFgwHysXIGDYEufSaGt DgtKDvySYV5hbvlzynCNgiHeAHn/2xGXknNKElSCbj8HYDfWvRcs77xbZifLum89+Asv 1lyUN/1j2Fmc9alQRskDG/OzjW4qkFeedKr8lUgK2HLrl6r/rKGny7qktjCZscNZqOLt ZkQLzQdgIpXPSWRQQCKnt69Yc9vnkvEk02xEDbyH4z8Who6lBWDtEhCDdZS9zlvwx/c0 2pRThq1CRZfQ6g1TuhlNQe1zhs/MdnhA+07Id5+zKKQWm21sKwHXBMD3GPu5k/Ppcw9l JhOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si13439384edw.70.2021.07.10.13.04.12; Sat, 10 Jul 2021 13:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231772AbhGJUFa (ORCPT + 99 others); Sat, 10 Jul 2021 16:05:30 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37455 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231753AbhGJUF3 (ORCPT ); Sat, 10 Jul 2021 16:05:29 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 8E70CFF805; Sat, 10 Jul 2021 20:02:40 +0000 (UTC) Date: Sat, 10 Jul 2021 22:02:40 +0200 From: Alexandre Belloni To: Vladimir Oltean Cc: Colin Foster , andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, claudiu.manoil@nxp.com, UNGLinuxDriver@microchip.com, linux@armlinux.org.uk, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 net-next 2/8] net: dsa: ocelot: felix: move MDIO access to a common location Message-ID: References: <20210710192602.2186370-1-colin.foster@in-advantage.com> <20210710192602.2186370-3-colin.foster@in-advantage.com> <20210710195913.owqvc7llnya74axl@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210710195913.owqvc7llnya74axl@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2021 22:59:13+0300, Vladimir Oltean wrote: > On Sat, Jul 10, 2021 at 12:25:56PM -0700, Colin Foster wrote: > > Indirect MDIO access is a feature that doesn't need to be specific to the > > Seville driver. Separate the feature to a common file so it can be shared. > > > > Signed-off-by: Colin Foster > > --- > > In fact, this same piece of hardware has a dedicated driver inside > drivers/net/mdio/mdio-mscc-miim.c. The only problem is that it doesn't > work with regmap, and especially not with a caller-supplied regmap. I > was too lazy to do that, but it is probably what should have been done. > > By comparison, felix_vsc9959.c was coded up to work with an internal > MDIO bus whose ops are implemented by another driver (enetc_mdio). Maybe > you could take that as an example and have mdio-mscc-miim.c drive both > seville and ocelot. That was indeed going to be my comment. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com