Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp1289607rba; Fri, 22 Mar 2024 09:26:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQM+FZt+ItzdLnzLDpsulogy4y7eDplDTekfADNJbnVjL+VCKAzBvss68JI9pka+C8VdgmunsmGoWWp+6sfMJoqGKOq5seFULU9W67tA== X-Google-Smtp-Source: AGHT+IEc5N/5D3wcwo1r/UluYbIAxb3e7loPwQ2YMvoRkZo/KeTmY2DbeDDKX2ahUtIEvMiXRK8+ X-Received: by 2002:a17:907:7859:b0:a47:2e79:cffc with SMTP id lb25-20020a170907785900b00a472e79cffcmr168752ejc.55.1711124785197; Fri, 22 Mar 2024 09:26:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711124785; cv=pass; d=google.com; s=arc-20160816; b=fjnCyGk6CjfckXr4RcLKhB+Oxa7lX+uSOT+PHJuhSOl3cy/b5BMtVBnysuO01yZncS GUA+eHpCHFMpzE1Pn6gqfHbKRmmcIE+jHUulcuitATj1WBn+48rjkCK0OQ3g8lYN0JPV MyG3W9hzBbDftqgpOS0aud9HhvGPZMObl9TRxyYT3fZuCmSXL9ye+dNUTb4VT6M/sTrt xcA+aBsfg68YDNyqTuCQt9Xt1/jcTq1edfDVjJ21sWHil8UTtCBhgrwETtw48FF0r3hE G1F9CRDXTwnJCyZmWWRsUHhekgq8sWkyQYZsxEjEc2Sf5aiRjmXgVOUpFgpr9gDE+CSH GVnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=Y/6J+YbEX3EYv+o0oRRUc2f+RR8PKsdbh2rDoDRf+CQ=; fh=u7VJ9gKpI+0UnDIzL1fP59mWPSe43iMU3C5FWvzyvvM=; b=guXYv+C7U9VygRNirenwslb/Z+Ebn6BnQHwl5A8p3KYXFDNvdHDNTBR3qDqra1NW5z 0ZZ+ygEL7NDC4/+bBGI5C8gwvkwawIgR+2f0eG4BR60FhD5aGepSj6QYr1vtZ/cPR7gi aEX5xsw6/6Z7pPEf3rfNJTrOb6ZWu9QwaZXD6hzczezbvJfN2xQ0rXaeRIcMrRj1VOkv mQRNxCLnF4lXDQMgjdItFh2X6mcEBOpNIxqrQsryaYzDPXecKk3WU9lGjvBapNj1cw+w YuYqUFEt6g7FAwpuyGxrxBIW/O41RrFOjuYw3PHobTJpvuvcdvUaX/LrMtxAYmtHgVCE jVzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=W3V1cRet; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-111774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lv7-20020a170906bc8700b00a4737f27031si331903ejb.112.2024.03.22.09.26.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 09:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=W3V1cRet; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-111774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D80F81F22F6F for ; Fri, 22 Mar 2024 16:26:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D353F59170; Fri, 22 Mar 2024 16:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="W3V1cRet" Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (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 522524F60D for ; Fri, 22 Mar 2024 16:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711124777; cv=none; b=EnLjyfcZJdp/CQc7DwGHfUc0lPATddA25HgJLY6cpg8/UYunZfSqRAan+9CxuP4F2J5U+2wgJ+aqLrWYC4mqrB4Q2Uigd5mqKTvAC7OjdZcAiFUHuIi/W9aJWjri1oTPEjeZhZxIneGCQ+d/8Uub6m05JgVyYTRhKGsmpp0yEY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711124777; c=relaxed/simple; bh=HOkr8Hoor9LWrctKOQzP7fj5wIdq4ZleDhqNpY3eCFM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G6lV5KEG94XssEYTnmuAKtthz8olibpI81kGTEMnf5NCzFCDWQ6rZkGS+i8E1+5cnnXm+SelYHfMuSFQoyKTGBi5Opra25JeNkwtLbw+Y7jg/PFxMXChhTKxqbjuZE6RYRRarVrnHukPXzGMLY9v/tX55kUxZfShxeNw0QqmwQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=W3V1cRet; arc=none smtp.client-ip=91.218.175.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1711124774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y/6J+YbEX3EYv+o0oRRUc2f+RR8PKsdbh2rDoDRf+CQ=; b=W3V1cRetDjH+QZIfP4YR4L6tc6g5V3rgUlEvOaJraPy1aw5TxWHFAm76DXOEaXXhFcDmRO /A8RFQT2CcLz+uR6kYkPmm9mRm2eUeXxXManLt/BUgoFyzoQVys+3F5xw6hW2idomfhSEl z0QwYPUnTiKYqSmUGTO8tb68riCfcj0= Date: Fri, 22 Mar 2024 12:26:10 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/2] dt-bindings: nvmem: Remove fsl,t1023-sfp in favor of fsl,layerscape-sfp Content-Language: en-US To: Krzysztof Kozlowski , Conor Dooley Cc: Srinivas Kandagatla , Richard Alpe , linux-kernel@vger.kernel.org, =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Michael Walle , Greg Kroah-Hartman , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org References: <20240316002026.1808336-1-sean.anderson@linux.dev> <20240317-starved-pager-7a81c5045cfc@spud> <9daf9c8f-6606-4ff6-8065-6a32fa0d152c@linux.dev> <20240318-scarf-startup-64088b1d8d35@spud> <20240319-fondling-implode-322a9cb570b8@spud> <024ca6eb-c3d8-4764-946e-1070d1bfb806@linaro.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <024ca6eb-c3d8-4764-946e-1070d1bfb806@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/22/24 03:01, Krzysztof Kozlowski wrote: > On 21/03/2024 17:21, Sean Anderson wrote: >> On 3/19/24 13:55, Conor Dooley wrote: >>> On Mon, Mar 18, 2024 at 11:48:06AM -0400, Sean Anderson wrote: >>>> On 3/18/24 11:40, Conor Dooley wrote: >>>>> On Mon, Mar 18, 2024 at 11:08:00AM -0400, Sean Anderson wrote: >>>>>> On 3/17/24 11:10, Conor Dooley wrote: >>>>> >>>>>>> Additionally, should >>>>>>> they fall back to t1023-sfp? I see that there's already some dts files >>>>>>> with these compatibles in them but seemingly no driver support as there >>>>>>> is for the t1023-sfp. >>>>>> >>>>>> I checked the reference manuals for these processors, and all of them use TA 2.0. >>>>> >>>>> Sounds like a fallback is suitable then, although that will require >>>>> updating the various dts files. >>>> >>>> Yes, a fallback (like what is done for the T-series) would be suitable, >>>> but given that these devicetrees have been in-tree for eight years I >>>> think it would be preferable to support the existing bindings for >>>> compatibility purposes. >>> >>> Just cos stuff snuck into the tree in dts files doesn't make it right >>> though, I'd rather the bindings were done correctly. I don't care if you >>> want to support all of the compatibles in the driver so that it works >>> with the existing devicetrees though, as long as you mention the >>> rationale in the commit message. >> >> It doesn't really matter what the schema has as long as the driver supports >> existing device trees. > > We do not talk about driver now but bindings. You add new compatibles on > a basis that they were already used. This cannot bypass regular review > comments, so if during regular review process we would require > fallbacks, then you are expected to listen to review also when > documenting existing compatibles. Otherwise everyone would prefer to > snuck in incorrect code and later document it "it was there!". To be clear, the existing nodes look like sfp: sfp@e8000 { compatible = "fsl,t1040-sfp"; reg = <0xe8000 0x1000>; }; which is perfectly serviceable for read-only use (as the clock is only necessary for writing). As these devices are effectively identical, the compatible could also look like what the P-series has: sfp: sfp@e8000 { compatible = "fsl,p2041-sfp", "fsl,qoriq-sfp-1.0"; reg = <0xe8000 0x1000>; }; but in either case, it is desirable for the driver to match based on the more-specific compatible (as well as the less-specific compatible) as we already have enough information from the more-specific compatible to select the correct implementation. --Sean