Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1793006pxb; Thu, 28 Oct 2021 10:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiJrHLmEgO8Ut+U6hVcyFbp+DwDIzKa+csLiCuxZVJN/eqUkEPhSRG7Vfzk/ftUZ5bran/ X-Received: by 2002:a63:1e0e:: with SMTP id e14mr4125489pge.5.1635440834739; Thu, 28 Oct 2021 10:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635440834; cv=none; d=google.com; s=arc-20160816; b=t1XPi65qaEpKcf9/dG9NMVa0GbU29VMIaN+ZAHAPL/J2r9RgpbUZ3QK0MFIeEKRbIA zKaNxHzw+/AMCHxKbJDz4JjOSJA/JsL2iohlLVU+i54qNHmCbJC2PbBadk+1N9+taK3S o7SwQZFNbkUcM3maEerOoIcO2mtxNsWwXhwQV/nBscXGdY2mhIM5IkRbN+6mnJm24eOw W5De52VKnhTRjLhLVWhq2YyWxsIGgxursbiIaI4nRzWXFerdxjaikNvPtkgN/WOC7CwD qQ2stcrCDwPJMx30FlIIO0E3vnWCn9LW8Gk7gA0cRbOCIgxc4DSlj5JgBj1N8U0eOKfQ hssQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HkGYfxxVPcWMTGp2R4d/RlpWmLG/2/mcfu/24wT0+fg=; b=epI0ZiZxtPf7acF9wTK4PgZ6LCrtfeF2tXS0JrHOWAPvdwJpIbKp83LfS1c0l4dPrg Ls0kx05vddD8aKT8lSUi09uieHeUQZ/xBcDNJmBRWdaA24PAikzI1fNl6/Ow9TwaSGeX pQjGgc6SEwvFK8qw4t2sZojTJMPzHYUm5XRurNRlRqBikvBSC8svcFPEkrAIoW6wh1HG uhxlhdw3Fn9yUAqrn9PwE0wZFwjAZmAoL1pyxHaHVn+RJex2CSxB9/1wCizRxOztKT0f jbTLYj5r0M6mUvzdG/98KMM9erZebKQqeG582qT0lBYMT3jVtyMwaRFdEOpmZDoJfZyh jSlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="to/pZlYy"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si5629832pgw.508.2021.10.28.10.06.43; Thu, 28 Oct 2021 10:07:14 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="to/pZlYy"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbhJ1RII (ORCPT + 99 others); Thu, 28 Oct 2021 13:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhJ1RIH (ORCPT ); Thu, 28 Oct 2021 13:08:07 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC07C061570; Thu, 28 Oct 2021 10:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HkGYfxxVPcWMTGp2R4d/RlpWmLG/2/mcfu/24wT0+fg=; b=to/pZlYy6m8mMy7hBJXsH3C0Ou fxSKKQTtUakArGZtAGa5ys+DJrPdBTJZcpNXIwa3DVmtRgKCefy7QjNeNYRN5nYQ/t5eQkfigrGJk 52UnMW2/NsapzYaw87FM2O0QOhdW7OmefsyVogazJVeDhO7p6MpObUwh3AFYykFLq8QFbVOMeGY9j stJAREGqeV/4RyXvBk3AD+vL+9gHm6UNz2tcMKrJx3WX8t23RfrUthb7rdIaONo0hNTVyfPykv43T +2BkSB4NLEEKnmK/swvviYIGcDCRfbfqa0eXfiljoNn9kY+tt562+LPcoF3KHGXmFc8JXxOGPD9Zg HhTuf56w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55358) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mg8qQ-0007oe-64; Thu, 28 Oct 2021 18:05:38 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mg8qO-0000VT-Qj; Thu, 28 Oct 2021 18:05:36 +0100 Date: Thu, 28 Oct 2021 18:05:36 +0100 From: "Russell King (Oracle)" To: Prasanna Vengateshan Cc: andrew@lunn.ch, netdev@vger.kernel.org, olteanv@gmail.com, robh+dt@kernel.org, UNGLinuxDriver@microchip.com, Woojung.Huh@microchip.com, hkallweit1@gmail.com, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, devicetree@vger.kernel.org Subject: Re: [PATCH v5 net-next 06/10] net: dsa: microchip: add support for phylink management Message-ID: References: <20211028164111.521039-1-prasanna.vengateshan@microchip.com> <20211028164111.521039-7-prasanna.vengateshan@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211028164111.521039-7-prasanna.vengateshan@microchip.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 28, 2021 at 10:11:07PM +0530, Prasanna Vengateshan wrote: > Support for phylink_validate() and reused KSZ commmon API for > phylink_mac_link_down() operation > > lan937x_phylink_mac_config configures the interface using > lan937x_mac_config and lan937x_phylink_mac_link_up configures > the speed/duplex/flow control. > > Currently SGMII & in-band neg are not supported & it will be > added later. > > Signed-off-by: Prasanna Vengateshan Hi, I've just sent "net: dsa: populate supported_interfaces member" which adds a hook to allow DSA to populate the newly introduced supported_interfaces member of phylink_config. Once this patch is merged, it would be great to see any new drivers setting this member. Essentially, the phylink_get_interfaces method is called with the DSA switch and port number, and a pointer to the supported_interfaces member - which is a bitmap of PHY_INTERFACE_MODEs that are supported by this port. When you have set any bit in the supported interfaces, phylink's behaviour when calling your lan937x_phylink_validate changes - it will no longer call it with PHY_INTERFACE_MODE_NA, but will instead do a bitwalk over the bitmap, and call it for each supported interface type instead. When phylink has a specific interface mode, it will continue to make a single call - but only if the interface mode is indicated as supported in the supported interfaces bitmap. Please keep an eye on "net: dsa: populate supported_interfaces member" and if you need to respin this series after that patch has been merged, please update in regards of this. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!