Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3859807pxf; Tue, 6 Apr 2021 01:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNN7RhGsJCaS951SntCm7mviJX2mVrxmq8nx21FQG2qQ4gveGqANK5DT5l5Pbj5b2+db2Z X-Received: by 2002:a17:906:430f:: with SMTP id j15mr19576309ejm.543.1617699506794; Tue, 06 Apr 2021 01:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617699506; cv=none; d=google.com; s=arc-20160816; b=zrUqrzQOCnBqQVwUYH5Wea6ti6AsGUY/xs3VYkCKwZqiFBAm5RwAb9xhqvUJ9U56i2 5TC1w0FA3Bf2rIdbuTQPO0Eoa0T6XqOyJBqeg6AloWJSVfz2B3dxDFa0utODDT9Kbn1n zTXAEhyZEqg32xOnf68o4QrH/pvJwa5NljmYsxk9ltolzr3re3qxVmYjk/0pF0f0RQ++ 8dW3FHYE6NTfiRa9Cc/ZOEvD5LDg3oVnoNh7qSgL5X7WuMF3LoPjKa6h1z4DRW/pO3C1 CS1D+29KSd5nP1KzTuzxoun2C/C4yAMrjYY6hoPJPejfPPAFwtCVC9jIo1YnMzntZbSt VlJQ== 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=WaY7p4PQjmEDwY/I4/mDOgthBRZvHDeBjhlhb9uSZzo=; b=yu/SSG+bg/2qze/mnfIupRcDZfvGKPk/kuQtgHFstRyKbm6tlAbVxbJCRIHm7OGppi NpwEYwplXxPPG3EfD2aoiEUtDQdfDVEbP4WQ3sfRl5WM1dpoWNb5E+TeieQG/Ht5Fcxd 4jv8Emz5IYhYdFpHs1h0OLRmcXPt/xexXDQYbpUiM2xRGpUeosD/j5Zg1gQ5UZtxIU8h D3+zBwbcsOMp7dPPEI4w+QSbvZAUSTTmg9IhcG0ymHopR5Vm8rYmfo/xJPOfV7YL0eqx Ivh0sdjFm5kJwKcLDkJGfIipxBuCbe3JVhUl51MO8uLAWjo66A6Zk7/a597yvcSdqvfJ MWUQ== 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 lv19si17885697ejb.553.2021.04.06.01.58.03; Tue, 06 Apr 2021 01:58:26 -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 S240027AbhDET2B (ORCPT + 99 others); Mon, 5 Apr 2021 15:28:01 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34602 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232983AbhDET2B (ORCPT ); Mon, 5 Apr 2021 15:28:01 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lTUsy-00Eyf2-TT; Mon, 05 Apr 2021 21:27:44 +0200 Date: Mon, 5 Apr 2021 21:27:44 +0200 From: Andrew Lunn To: Danilo Krummrich Cc: Russell King - ARM Linux admin , davem@davemloft.net, hkallweit1@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com Subject: Re: [PATCH 2/2] net: mdio: support c45 peripherals on c22 busses Message-ID: References: <6f1dfc28368d098ace9564e53ed92041@dk-develop.de> <20210331183524.GV1463@shell.armlinux.org.uk> <2f0ea3c3076466e197ca2977753b07f3@dk-develop.de> <20210401084857.GW1463@shell.armlinux.org.uk> <20210402125858.GB1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Now, instead of encoding this information of the bus' capabilities at both > places, I'd propose just checking the mii_bus->capabilities field in the > mdiobus_c45_*() functions. IMHO this would be a little cleaner, than having two > places where this information is stored. What do you think about that? You will need to review all the MDIO bus drivers to make sure they correctly set the capabilities. There is something like 55 using of_mdiobus_register() and 45 using mdiobus_register(). So you have 100 drivers to review. Andrew