Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19304C433FE for ; Thu, 10 Nov 2022 22:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbiKJWGp (ORCPT ); Thu, 10 Nov 2022 17:06:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbiKJWGo (ORCPT ); Thu, 10 Nov 2022 17:06:44 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1660E2A94F for ; Thu, 10 Nov 2022 14:06:43 -0800 (PST) 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=Cx6vNLRsNc+1LWMVheGdPfQJ3fstY/1r1HJNFE5netE=; b=L0JVzICA4A/zqX6xrCXKMXTEgg I502iHIOQDkSR6zoxbiOzmL51m5dJfWJr4xhF4cIdU2oMpv8UbuTb/G1Yt+qkxI6xi8qQVXX3vwGk HuHGIdCuOd3VH7LZwmdyXwunOwj7MtScERq1KVibkk5zJQvvaPbdNCaR/CVYNA49/qm0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1otFg4-0024RY-MR; Thu, 10 Nov 2022 23:05:40 +0100 Date: Thu, 10 Nov 2022 23:05:40 +0100 From: Andrew Lunn To: Lukasz Majewski Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, Matthias Schiffer Subject: Re: [PATCH 1/9] net: dsa: allow switch drivers to override default slave PHY addresses Message-ID: References: <20221108082330.2086671-1-lukma@denx.de> <20221108082330.2086671-2-lukma@denx.de> <20221110163425.7b4974d5@wsk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110163425.7b4974d5@wsk> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > It depends if the HW designer set this bootstrap pin low or high :-) > (often this pin is not concerned until mainline/BSP driver is not > working :-) ) > > As it costs $ to fix this - it is easier to add "quirk" to the code. Can you read the strapping configuration via the scratch registers? Then you can detect it at probe time and do the right thing. Andrew