Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4608267pxb; Tue, 5 Oct 2021 06:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5wCfOHncCtUuY7jezj2BCUb+s7hbl1zvf644IU+iQawYzElHcM2/Fdi4gOGiJT7IKTve4 X-Received: by 2002:a50:fc06:: with SMTP id i6mr10374189edr.370.1633441526501; Tue, 05 Oct 2021 06:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633441526; cv=none; d=google.com; s=arc-20160816; b=DfgnF7iGeyes5W/hV7Ben+4LmCATEZeXlZJwp2MlEahYH8YAWN/ns+K4Dvu1wzNLa3 i+YdZclhkOdhocBCqQuVITuSjZhEWUzi9Dn5JORWPFWqmoQlBc5l9M+7Wuv+k5UhDvHf lIaQ3gBu+iFbDJu6vivbeGldnUZbOj4wXmPgDaVPmpk/cbkUHiQPkKEi4oQuA9H7tL9a bBiddOccadbYH0mwb37Gc+ER+Mn1i8vxgQk1YlITw26CO98Q9h52FcJXYEy0V8pZQ275 bMFEb9sRFrysoqLKUM/b4jeOl3A98gz5qX8iL1tJEjP2bfPON4meh60IBdbfH0aMifvk R5+w== 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=ovSUEtGPSxl/nybmRBxSi47cRQoVCb66ArRug3qzPRw=; b=k1eZa8h2RiSLyNtQWAA5gFzmyU/XV1DSpLCo2m7A4aXInS4Z+r3lxZXTt/iPEXMvBc kmwI0PQNZ0CC5Wvjz8ID3g/RWzOfc4XJPNLgvhfiNDciIcArgCpRZEAygmOs2vut7mVO U/3B6EiUaF4X5Emk1T/wL8q3dtfsgNoLP49SYdJmGxE/XSR1Zcp3tZ5I3/ZbwZibsdJh W6FkxDRLO/D0N9iXkCaWD+MrpoEVO8b7u4++AMXyN4tXdf8Zjm3XBV6bJW6obpnji1As vBhcjXGeyYJtxy6BtAQNoR7mKHuXBghlzOnjMBIVbNY5teU+UBR0nADxN8hbNQspAHuV 0PHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o9Fkshon; 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 jz18si15119084ejb.66.2021.10.05.06.45.00; Tue, 05 Oct 2021 06:45: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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o9Fkshon; 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 S235056AbhJENpE (ORCPT + 99 others); Tue, 5 Oct 2021 09:45:04 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:49868 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235002AbhJENpC (ORCPT ); Tue, 5 Oct 2021 09:45:02 -0400 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=ovSUEtGPSxl/nybmRBxSi47cRQoVCb66ArRug3qzPRw=; b=o9FkshonziVohapuf/ejhvec8/ 4qy9q6yDuA2BH/3dV13boXtdKffTyuWuI074YfiFVnRA/pGrAEhzsZ4oUBj2y0TCCUFByPPmORCoI Mw7zGb/HvUtgF5aSCvi6lx8hKFK44Hg+5r8jjkuDBrn04lSEjutqL6ZVBFGycsepePdY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mXkio-009hJZ-83; Tue, 05 Oct 2021 15:43:06 +0200 Date: Tue, 5 Oct 2021 15:43:06 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Sean Anderson , netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, Heiner Kallweit Subject: Re: [RFC net-next PATCH 06/16] net: phylink: Add function for optionally adding a PCS Message-ID: References: <20211004191527.1610759-1-sean.anderson@seco.com> <20211004191527.1610759-7-sean.anderson@seco.com> 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 On Tue, Oct 05, 2021 at 10:51:38AM +0100, Russell King (Oracle) wrote: > On Mon, Oct 04, 2021 at 03:15:17PM -0400, Sean Anderson wrote: > > This adds a function to set the PCS only if there is not one currently > > set. The intention here is to allow MAC drivers to have a "default" PCS > > (such as an internal one) which may be used when one has not been set > > via the device tree. This allows for backwards compatibility for cases > > where a PCS was automatically attached if necessary. > > I'm not sure I entirely like this approach. Why can't the network > driver check for the pcs-handle property and avoid using its > "default" if present? And that would also be in line with ethernet/freescale/dpaa2/dpaa2-mac.c: node = fwnode_find_reference(dpmac_node, "pcs-handle", 0); We need a uniform meaning of pcs-handle. And dpaa2-mac.c has set the precedent that the MAC uses it, not phylink. That can however be changed, if it make sense, but both users should do the same. Andrew