Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp607209rwl; Wed, 5 Apr 2023 05:29:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bORgZRyIq52bNKUNEIWOlAr/bh7dhFZ7XwlFbgpUZoSM1+V0gxA+iId971ZpUv6bqpmykD X-Received: by 2002:a17:906:55cb:b0:878:545b:e540 with SMTP id z11-20020a17090655cb00b00878545be540mr2451869ejp.51.1680697751086; Wed, 05 Apr 2023 05:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680697751; cv=none; d=google.com; s=arc-20160816; b=xXldvXGp99Uia946YIkvWImAApK1xmXsjIYLlP3YnK6qBrB5GRN0192qo5r46OR1Ec DKgbmUy6S9QfoE+XqihwDQjiTW539I0SPskdVaG8WEbC71PiBe7CsFRBczOXdsXP2GJW izxs2p0AGQpbQDf7/pjMrkl7ZOzmxR0GETsZMIJsUOP11L5FlqPEfexqUsVuVjIa/Y38 NwH1Qd4GP/ZGIkJqJ5CZ1ssl8u7fgcNY7+pSwzM+BxV81eiwaHPmPeuYYOBjPo4oPSg/ 9FxIM3ITpSjqBd+PgGDha5Hk7Xx6zWD3frYBKAePZopv81P/5vhB6MgcEbXJ/GtprN3A VC6Q== 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=XMhGMpvRCw9ZdTDV2vCr97P+WoVe706J2XlL4hwYhII=; b=uWhy8W3kfqNUI9S/5JkvWWJKHY/qOLUwoFUDY/iyuf1WVvcuwtFgpIzufUQUI+GAtC pm25vaTYsf1PJn3qS8n+1CrVFck6EGwNJ8b7wXywWsWAbsj+Q/eASiey+ykTvWFPZRgk ofso9QN76whBdIqs4odAlgyj1i8nQYg4Ko63cQpf+TjlDJortk/lDMdTpF1cc7xvLGLl QiVeiKRASfml12JdY+ZRMyOTWwY3FUdddmBFMi4fY1jubCU0CuGqqIOWEeCAr01aNOvO 8kLgddEj0PcvEHpvvPoZF7hu0nXJoILiX2o2Q4xudIWZiXrEDxA5UK6X0li1Ry+iYYWn i6QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EegSUHRU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a170906185900b0092722a78f71si2682488eje.300.2023.04.05.05.28.46; Wed, 05 Apr 2023 05:29:11 -0700 (PDT) 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=EegSUHRU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237971AbjDEM2D (ORCPT + 99 others); Wed, 5 Apr 2023 08:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238036AbjDEM1y (ORCPT ); Wed, 5 Apr 2023 08:27:54 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08CAE4ECF; Wed, 5 Apr 2023 05:27:35 -0700 (PDT) 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=XMhGMpvRCw9ZdTDV2vCr97P+WoVe706J2XlL4hwYhII=; b=EegSUHRUQBVSxhxSK6puYe5k07 pC01JJ6PYaTWSo+WfyAzrRtI/fIJEg3TkL3jcTzNlNibC+42oJGjX23WhJJYwjShuKJh17JnhQ1oS mL2fOO9oawb7XAJKD60Z0iXLEBm7dy7QpYMKkXkMFjq1uvpH4IEu+xaWxl4OZawZA6Wg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pk2ES-009WEM-Dx; Wed, 05 Apr 2023 14:27:20 +0200 Date: Wed, 5 Apr 2023 14:27:20 +0200 From: Andrew Lunn To: Marco Felsch Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Richard Cochran , Radu Pirea , Shyam Sundar S K , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 05/12] net: phy: add phy_id_broken support Message-ID: <6461467c-8f9d-41b6-b060-08190126e81f@lunn.ch> References: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> <20230405-net-next-topic-net-phy-reset-v1-5-7e5329f08002@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405-net-next-topic-net-phy-reset-v1-5-7e5329f08002@pengutronix.de> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 05, 2023 at 11:26:56AM +0200, Marco Felsch wrote: > Some phy's don't report the correct phy-id, e.g. the TJA1102 dual-port > report 0 for the 2nd port. To fix this a driver needs to supply the > phyid instead and tell the phy framework to not try to readout the > phyid. The latter case is done via the new 'phy_id_broken' flag which > tells the phy framework to skip phyid readout for the corresponding phy. In general, we try to avoid work around for broken hardware in the core. Please try to solve this within nxp-tja11xx.c. Andrew