Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp74361lqt; Mon, 18 Mar 2024 01:32:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZK5ybYtMjJJs5ygKkBgWEQOE1uqbkkqQO/Z7p77lQiyEquHN3DnuhD9RLkl4z1qk2pkKplbxuZzLNvz69Xpd7z8fb/EWrK8w5GT/Icg== X-Google-Smtp-Source: AGHT+IEe/kTnGMVTn7jVsrdJDd4FfYZcryOktvJ04EhdXKAriC6OaPzJLxPMGonwDVPrT38VDqTs X-Received: by 2002:a05:6a20:12c7:b0:1a3:6464:1154 with SMTP id v7-20020a056a2012c700b001a364641154mr3678390pzg.0.1710750766683; Mon, 18 Mar 2024 01:32:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710750766; cv=pass; d=google.com; s=arc-20160816; b=fC8nf6LCorFJRqsZ/6LM5I0i6AaFV108+N8N2vxEaVqV/ovdJmUAzxFvqodPlnZ8TF ue86kQFMunvLSPVK8vR/+fKbAlxEL52mkY9BnNnBiPRoRCrI/iiE/RncMhO1u+FEPLl0 SD7ubrPUG3sIRFE77wI3rox4kQ28K5yua9qeuYWpOXVFX5hg/iV70kdk0ehZGgVqOscm ivKmUoGHNNSLh2CntSC/RPzcBoumkkBWfGboMVfoKUBMiLAeigZO1KaWlp3h3GH2MkA2 SVOl7yRTcR8AvaZgOKrcOEB+2l8yyVdSnDVqkBP3iOEl+omPEP10FxqdCMFFUSHArkyI K34g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=sCBjdIljVl7n3SHU3VSHSE5xRH6DxbvTSqyd6NrP4Fk=; fh=+hF+l69Vpdpi7r7b4E2mzsBgEPgylGJ8albKfZJvvTM=; b=Pi5zLXGASnkqjJa9hjh3KMtTgpy9v2IBpY+tBnxFuZRaajMzROucneAAElWzrS0KyQ uRvZwpGa6cGH+0M/v9tLF+L0xUUpsT8cg1WO3Hk4YaSLDc0ns7D/PbDNluOsxkxscK9G /kGVq/v8dZWg41+i37Q7ZzyuA2cJ3M+sthsxzyJM7g9vFn5pU/7cSwefiNOgeSoeIVGF v9hkjDtz1N1yc+IFfLAFArmFXcVk/XIwgZT8STEGv1D5qpiBhTMDEXWJN9wvAAnF84V5 8F6HYPSu3ga2UDRxkg8C1AYoX4/IkdKRPnxOkbT3/UAypNQfSPlz2FiQaOwwGBmKs2Sz NNqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bit42.se header.s=loopiadkim1707482520 header.b=BIPBhtVi; arc=pass (i=1 spf=pass spfdomain=bit42.se dkim=pass dkdomain=bit42.se); spf=pass (google.com: domain of linux-kernel+bounces-105818-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105818-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p18-20020a631e52000000b005dc8762dce5si7709259pgm.51.2024.03.18.01.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:32:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105818-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bit42.se header.s=loopiadkim1707482520 header.b=BIPBhtVi; arc=pass (i=1 spf=pass spfdomain=bit42.se dkim=pass dkdomain=bit42.se); spf=pass (google.com: domain of linux-kernel+bounces-105818-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105818-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 613AC281EB6 for ; Mon, 18 Mar 2024 08:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B923626AD8; Mon, 18 Mar 2024 08:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bit42.se header.i=@bit42.se header.b="BIPBhtVi" Received: from smtp.outgoing.loopia.se (smtp.outgoing.loopia.se [93.188.3.38]) (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 6A61E208DA for ; Mon, 18 Mar 2024 08:32:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.188.3.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750761; cv=none; b=Ks7QQYhNYBY04+Txr1lUkqo4HPjubS+A4r+9Wsi3Ml17ih/hQkpun1RN9XfNOBJ8gCTKc25q6mT7ZybwPCpiOU1TmRcrbqE8G01aF4oqcKpGWm8v/ZD4l5VM+V+N7JMNeFNs7qHYLXxmiudZ9YD7vzb7b9cn2TMHuaS5U9jsmNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750761; c=relaxed/simple; bh=ZLLRwKv52FwS71Q9TRUs3pSjcDZEBliufyAc0LAPBEM=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=MFi7ed/eU8/griinvUUeTjW27HxhHxY3oSuxrpif83AGR6hGD73b9pEWfMdC9SqPrNWybN/s+lGNMpUxe3ym5JgfxiJVe8pgU0+xSrT28oYxJAVpUbDwoF6hQUaVf2mkkIW1COhmUg8cqInqU+Yn+IOjPj4bk9pyEKq3TPkLhks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bit42.se; spf=pass smtp.mailfrom=bit42.se; dkim=pass (2048-bit key) header.d=bit42.se header.i=@bit42.se header.b=BIPBhtVi; arc=none smtp.client-ip=93.188.3.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bit42.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bit42.se Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 6FF8F2FFDEC9 for ; Mon, 18 Mar 2024 09:32:36 +0100 (CET) Received: from s979.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 5F8482E286A0; Mon, 18 Mar 2024 09:32:36 +0100 (CET) Received: from s470.loopia.se (unknown [172.22.191.6]) by s979.loopia.se (Postfix) with ESMTP id 59E2710BC3B2; Mon, 18 Mar 2024 09:32:36 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.21 X-Spam-Level: Authentication-Results: s470.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=bit42.se Received: from s981.loopia.se ([172.22.191.6]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with UTF8LMTP id o87pN2BTdgsU; Mon, 18 Mar 2024 09:32:36 +0100 (CET) X-Loopia-Auth: webmail X-Loopia-User: richard@bit42.se Received: from webmail.loopia.se (unknown [172.22.212.9]) (Authenticated sender: richard@bit42.se) by s981.loopia.se (Postfix) with ESMTPA id D152422B1705; Mon, 18 Mar 2024 09:32:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bit42.se; s=loopiadkim1707482520; t=1710750755; bh=sCBjdIljVl7n3SHU3VSHSE5xRH6DxbvTSqyd6NrP4Fk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BIPBhtViO6u+7532rWxsm4A8kN5iHpcMJQmKUmm4T0DbSTbrmOsOAXxvEEUM8mWBA uS673T4dsOoJhy/0PBA8vGhacriKPT56XkxhWjtrB+y1s5iQyaOQkzMGCYGm52biKK MBOV5pIaqqdoIdLdtrsBv+Plr9fFYE9M3EGxPNdBimxFY0RGwVOvPSoEVJXHdV7Shu H8ZQGvXbNpWTnuiCNppfi4sbyGTulykrRaVr7GErKLWVAyBnFhsWBpWSC67Eo4HaGp WOe3LMo+PwZOlR2IYfveUEQb3dDq7s+uDrZYzIux13/07cHMZRlz8dwOJZ4W+l3VNd lpqUpTcl1Gmkw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 18 Mar 2024 09:32:35 +0100 From: richard@bit42.se To: Sean Anderson Cc: Srinivas Kandagatla , linux-kernel@vger.kernel.org, =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Michael Walle , Greg Kroah-Hartman Subject: Re: [PATCH 2/2] nvmem: Remove qoriq-efuse in favor of layerscape-sfp In-Reply-To: <20240316002026.1808336-2-sean.anderson@linux.dev> References: <20240316002026.1808336-1-sean.anderson@linux.dev> <20240316002026.1808336-2-sean.anderson@linux.dev> User-Agent: Loopia Webmail/1.6.3 Message-ID: <6f5636e65df5616395cc8e24f63b09ef@bit42.se> X-Sender: richard@bit42.se Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit On 2024-03-16 01:20, Sean Anderson wrote: > The qoriq-efuse driver is a duplicate of layerscape-sfp.c. The T-series > uses TA 2.0, while Layerscape uses TA 2.1 or 3.0 (depending on the > chip). Add appropriate compatibles to the layerscape-sfp driver and > remove the qoriq-efuse driver. I did not add support for P-series SoCs, > since they use TA 1.0 which doesn't share a major version with either > of > the existing implementations. > > The qoriq-efuse driver does not properly abstract the location/offset > of > the fuses properly, instead exposing the device's whole address range > to > userspace. This is not appropriate, as the fuses only occupy a small > portion of this range. The layerscape-sfp module correctly constrains > the nvmem size to the fuses size. This represents a (necessary) > compatibility break. The qoriq-efuse driver has been in-tree for around > six months. Hopefully this will limit the fallout. > > I would appreciate if someone with access to trust architecture 2.0 > user > guide could confirm the number of fuses. > > Fixes: 0861110bb421 ("nvmem: add new NXP QorIQ eFuse driver") > Signed-off-by: Sean Anderson I don't think Fixes is appropriate here. Apart from that: Acked-by: Richard Alpe