Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1737232rdb; Thu, 25 Jan 2024 04:54:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqgcGsQAKoo96fFxH/q6JwSM1Y9XAhqus+tYC1xdHBVPL+DKgMXJi75gZVWz/SZ2C9m+hm X-Received: by 2002:a05:6830:3a94:b0:6e0:f1af:cdc0 with SMTP id dj20-20020a0568303a9400b006e0f1afcdc0mr748467otb.74.1706187285542; Thu, 25 Jan 2024 04:54:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706187285; cv=pass; d=google.com; s=arc-20160816; b=HVkWavm5+YMLhAaz/Q2iRxkTfUk+Q4Ot5CXN94nxoflwXnDh5gXJ36hN2A+99CifST blpT22UAWxvmi4YF7lPYImVCauxXLuQ3kMcKjHlaImftAgb8MYGe5up2sL6nieF73Yn4 lbqgPcad32hdudDeY9C4bW8c1nCw0+7eHTmKzmVVxbDCaZZVv+YkynJ2oVxZqgfwMhht wyPPKe2ZUasfCKlYy5c9u4lWQOn+3l+TpiB+FdbcVE55RGGQEgk2F4nOyc6A0Ixtm6Ae yzeB3Wn0tt1Usq9EZ43Xm8aZeXKpuCEzwHdGXwaAwlv7TFqfAJKBZXq3HvbUMAuXbSF7 MDPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s0T0+vRHRhUgiYGZ/b+0eXUc8UH2sGanEjkWACxYmY0=; fh=b5nLav+R1cjY7DhnJL0hMh6C8bnEKBtJkXcgmfAoGxY=; b=AKYfodQJb20PfXbJ0fhDxXldScehNWMqRVgUWdI+p23GmlAU1TqiMuLlQL26zsSjNk KP5uahVANKuAkOtDwoN6doEUDB0K6X93AqiDUYJUx1Cki6lqlxCzZ8ExORwoASrxPmji RpMFRM5VCT3D4SmDayzE+QKm5ELOEqf6S0uzSesHq+SPrONWfl+wwt8USYF8ZAIrvbWN byQlT/d310uSnn7/v6A2BLqT+RNRwFjDoPAHIhSMyVcy+PE4d3SN5cRfBuwt/dH2RP3B iLQeupXLnhn61+bPQdDDPi1su2dvBEw54eCqwD0UMuPuSOHgzl31f0JPOtJobvspgMq7 ptAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RLUEzpka; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-38597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r14-20020a05622a034e00b0042a0a210737si12234528qtw.532.2024.01.25.04.54.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:54:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RLUEzpka; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-38597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C8821C22B26 for ; Thu, 25 Jan 2024 12:54:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 322B94F60D; Thu, 25 Jan 2024 12:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="RLUEzpka" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C48614F885; Thu, 25 Jan 2024 12:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706187271; cv=none; b=KXFbe9h0yLhKKxJ/8fQYIY5u5/cBwDkuXv7ipmbjPFjFw4S0BVDy/AsWhJzGnPjP3jqiZaICA040/YqnfZbtNQ3TuyhHUcQGmARFEcRLJHFB6RI9agbNM9u/H7iwfPpaZtPCi4S8jX/FXHPJOA3dgUYp8J6xTPKs7wQ0U4eAyOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706187271; c=relaxed/simple; bh=IJhoKFM+i5ASs0eGsRCruWhTxm7oDqUUNqFVN5TeXwM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OQc3dB7OM35F17N2HHdP2rE6vwCIIbBi8pcFer+7uWoF0EG6j9XnX3CokMG3pSEptfULlqK0Sr3cPVIz9sKd/8MhiyaYbPApN0eudrM4affxWKqlMkYuDV78qBf3WjRnzCDrAJmJrq2WQKRM+VWZ3WKSb0S3qkTY+GLJLvzaq/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=RLUEzpka; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1706187270; x=1737723270; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IJhoKFM+i5ASs0eGsRCruWhTxm7oDqUUNqFVN5TeXwM=; b=RLUEzpkamyNFAt8RaguLH99mrXM/dtLTLRE8bGaEPqhWVqvf7CmM5SYJ aR1Nv3qikNHuX/zYK5bGcQBOmZKVtAPizspvC6ebkCKuOsjUbb6sZ14K4 mqtZll5QAxDB65OoL+ve4YhS8wfoBaozVhSB6U0pWbM7G5WSSK7zSt+F6 rvpQU2eU08rDZ4vB3WYoOOooj9wAnnaPyXq0Z60S3KkhXfrwn0lWB7cNR lR8clLN5E3T+US1zYib3yErByprz0QY5ilMG93IITRCR0E4YeI5p3ITFF LKqCi7h0oNdogNSYrzTbq23/O9kpkVef51+/PqTBKRMuYoMFsIVAmyGHX Q==; X-CSE-ConnectionGUID: /Aq3hlafTTiCOLhNSRHcKA== X-CSE-MsgGUID: lzBoItwTTlWkoW1LraUKKg== X-IronPort-AV: E=Sophos;i="6.05,216,1701154800"; d="asc'?scan'208";a="246002953" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 25 Jan 2024 05:54:29 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Jan 2024 05:54:19 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 25 Jan 2024 05:54:16 -0700 Date: Thu, 25 Jan 2024 12:53:38 +0000 From: Conor Dooley To: Andrew Lunn CC: Conor Dooley , Philippe Schenker , , Paolo Abeni , Conor Dooley , Woojung Huh , "Vladimir Oltean" , , , Marek Vasut , Florian Fainelli , , Eric Dumazet , "David S . Miller" , "Krzysztof Kozlowski" , Jakub Kicinski , Rob Herring Subject: Re: [PATCH net-next v1 1/2] dt-bindings: net: dsa: Add KSZ8567 switch support Message-ID: <20240125-crouch-decay-5b149b60e9f3@wendy> References: <20240123135014.614858-1-dev@pschenker.ch> <20240123-ripening-tabby-b97785375990@spud> <20240123-atlas-dart-7e955e7e24e5@spud> <979b1e77b5bb62463d52e7b9d3f9ca1415f4006a.camel@pschenker.ch> <20240123-carpool-avatar-c1e51ab3cc32@spud> <359c32a1-3ffb-4bb2-9a46-802dff3812c4@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FasY058SMp5+ll7F" Content-Disposition: inline In-Reply-To: <359c32a1-3ffb-4bb2-9a46-802dff3812c4@lunn.ch> --FasY058SMp5+ll7F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024 at 07:08:29PM +0100, Andrew Lunn wrote: > > That sounds counter productive to be honest. Why does the driver not > > trust that the dt is correct? I saw this recently in some IIO drivers, > > but it was shot down for this sort of reason. >=20 > DT is software, therefore it contains bugs. >=20 > Say we ignore that the compatible does not match the hardware on the > board and just accept the DT has a bug in it and keep going. >=20 > That then makes the compatible pointless, and unusable for anything, > since there are boards out in the wild with incorrect compatibles. If > we later actually use the compatible for something, it might cause > regressions for those buggy DT blobs. >=20 > By erroring out then the compatible does not match the hardware avoids > such bugs. It also makes fallback compatibles useless, which is what I see as being counter productive, since you'll have to add support to the driver even if (other than the id) the change is imperceptible to software. If you have your reasons why you do not trust the compatibles for these devices, then it is your prerogative as a driver author to cross check it and fail if they don't match. That said, it does not prevent the fallback being accurately described in the binding itself, which at the end of the day is what I am more interested it. > The marvell mv88e6xxx driver takes a different approach. All the > compatible does is tell the driver where to find the ID > register. Marvell keeps moving it around, so there are three different > compatibles for the three different locations. If you use the wrong > compatible, its not going to find a device is knows about and errors > out. So this also avoids bugs in the compatible. >=20 > Andrew --FasY058SMp5+ll7F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbJZ0gAKCRB4tDGHoIJi 0kQ+AQC8bfXwu4cS2q0UdokiptXIHP0dNFYEDpmgxeF19Tpo+wEAlrHaYMrYkfJH CKM8cpf8KpQLdoE/xhPrfS1a1YBYBQU= =aa2K -----END PGP SIGNATURE----- --FasY058SMp5+ll7F--