Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5360040pxb; Sun, 6 Feb 2022 23:31:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJymK+Zp+TliVZ92ff6rDIUcV9rovp+92g4SWxTigmhcCcaEk4fvBuQ6RvZ9nddh3E9v4U8v X-Received: by 2002:a17:903:1111:: with SMTP id n17mr14685065plh.128.1644219086913; Sun, 06 Feb 2022 23:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644219086; cv=none; d=google.com; s=arc-20160816; b=uuoInghTYcQMMZ3hYA9xnDrRl8m6UK6m13lYufKetL62tX39BXzzv/WMVkwEYomslm 5z1+q/Y2hDBgIHId7ddDkhF8ZvRY0N7JDIbs5Rm7W0MAOaJCES9sNYel89lcZXgSBgZ2 X2JgRBJMsmsjHKOo4Rd87ApMKVnU2yr22vdcHX2FGvhLouqw9PPviB+/8t4ioJztqThS oniaA7TLCmh27+toW92/R/HXcC0i5E2G2drAhE7o4+bxwYMpGI4nkaxRUfO+9TyU0KUQ GsbEZLQADZAuE85CZSjqQNXDZWO6HMvBf+BX5VSHGAbhq3p/Puegjxisrg+GZWcxVFfj O7mQ== 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=oy+ZGHqwRh7hOUZO4LcUt2H3aLODsyQ1hM4QpkJBUNY=; b=uJR8yUfvYylaendbDfQ5ZBeBxWf7kATsH2GWEjAtm/u83nYWl5F4+azruh0/J1gHld tzDmAfvuz7uFGZDZ14Y4qp1KmvRPGydDpYZnBRTfvYMhxTBpwXC6waPyVNz3pUuscbyk zw/qLDKseS4VKi7KQEvGGMr2RRNEPpicavvkX0boZU+VEmbdJZ5PV0oxWFiY0o6CwUhD 1rK2Pp/tqLwLcbxxsAS94a/tT2iXpd8wLMB8/hrf2odXmB5/uA7tJITGu81NxZxvdQfF c4P7E1sQ5AfagHA/wutDJWCr3apO4lGgXAbovqW2peiGiEykEUyk4AgFzxYf7MjblYz8 5SFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VKrwU16y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191si9166463pge.528.2022.02.06.23.31.14; Sun, 06 Feb 2022 23:31:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VKrwU16y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354920AbiBDWy5 (ORCPT + 99 others); Fri, 4 Feb 2022 17:54:57 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:43270 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbiBDWy4 (ORCPT ); Fri, 4 Feb 2022 17:54:56 -0500 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=oy+ZGHqwRh7hOUZO4LcUt2H3aLODsyQ1hM4QpkJBUNY=; b=VKrwU16yfq7AedImRakIOxhI/n DfZ7Ciogw9mjqS2uyRhJvAaETrZRNYez3Q60zkdmdCfLmKwiI77aLRya6OVOIVOjiYfB7ElsZL+Cf FTxEs7PlZmNh/iWXeni+EkCsEGWizeRY2GbVEc3auGUbyT5KuALVRVQza3d/kH9l1qII=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nG7TU-004KaN-HT; Fri, 04 Feb 2022 23:54:40 +0100 Date: Fri, 4 Feb 2022 23:54:40 +0100 From: Andrew Lunn To: Tim Harvey Cc: Martin Schiller , Hauke Mehrtens , martin.blumenstingl@googlemail.com, Florian Fainelli , hkallweit1@gmail.com, Russell King - ARM Linux , David Miller , kuba@kernel.org, netdev , open list Subject: Re: [PATCH net v3] net: phy: intel-xway: enable integrated led functions Message-ID: References: <20210421055047.22858-1-ms@dev.tdt.de> 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 PHY_INTERRFACE_MODE_NA is a neat trick that I will remember but it > would only help with the rgmii delay issue and not the LED issue (this > patch). The GPY111 has some really nasty errata that is going to cause > me to have a very hackish work-around anyway and I will be disabling > the PHY driver to stay out of the way of that workaround Well, ideally we want the workaround for the erratas in the kernel drivers. In the long run, you will get less surprises if you add what you need to Linux, not hide stuff away in the bootloader. > As far as changing a driver to force a LED configuration with no dt > binding input (like this patch does) it feels wrong for exactly the > same reason - LED configuration for this PHY can be done via > pin-strapping and this driver now undoes that with this patch. Is it possible to read the pin strapping pins? If we know it has been pin strapped, then a patch to detect this and not change the LED configuration seems very likely to be accepted. Andrew