From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62ECBC433ED for ; Sat, 8 May 2021 17:31:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37C88608FE for ; Sat, 8 May 2021 17:31:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbhEHRc5 (ORCPT ); Sat, 8 May 2021 13:32:57 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:59432 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhEHRcz (ORCPT ); Sat, 8 May 2021 13:32:55 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lfQnt-003Hqc-08; Sat, 08 May 2021 19:31:49 +0200 Date: Sat, 8 May 2021 19:31:48 +0200 From: Andrew Lunn To: Ansuel Smith Cc: Russell King - ARM Linux admin , Vladimir Oltean , Florian Fainelli , Vivien Didelot , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v3 19/20] net: dsa: qca8k: pass switch_revision info to phy dev_flags Message-ID: References: <20210504222915.17206-1-ansuelsmth@gmail.com> <20210504222915.17206-19-ansuelsmth@gmail.com> <20210506112458.yhgbpifebusc2eal@skbuf> <20210507233353.GE1336@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 > The problem here was find a way to pass data from the dsa driver to the > phy driver. In this specific case the phy driver is an internal phy > present in the switch so it won't appear on anything else. For internal PHYs, you are safe. But please keep in mind any RGMII ports which the switch might have. Somebody could attach an external PHY on such a port. So you should not return any flags for such ports. Andrew