Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp297215lqt; Mon, 18 Mar 2024 08:09:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkjoRJN/j9nZNHeKz+qGjPXkesbq4JTVENWoDCbbW34TeCwzVQjDUkXCXZG8sOpp20FgtQJsUTWi35fYBFO9Qc1IsundwHNmfBOKgRIA== X-Google-Smtp-Source: AGHT+IEGsiKNRwDvDbD98Sbm/c8JRp03aDvFpSVDxjVd3OJTD7Nyo86G9JB2mqyiGMKhWHCt6aHv X-Received: by 2002:a17:902:d4c4:b0:1e0:8b6:d7a4 with SMTP id o4-20020a170902d4c400b001e008b6d7a4mr7423662plg.19.1710774558617; Mon, 18 Mar 2024 08:09:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710774558; cv=pass; d=google.com; s=arc-20160816; b=jzw+lXktJSwOMofD/3Fdz7Fem917c9R6B/7yQKe378RQZDnwF0+Rppq14ny+V2jKsx NchiyePwL+N7J1UT6Ov3nruPRe/wb4MdWrsLY57dB3cNCN30KqMYJRegVojWXBGzZCFs 4O+TnGa84ADGddxHWLKFK/T6Kty11IHBJ8VifoNJgNxVafCSyTHvrLqOROuCTIydE/qD tTzfcAiIop6jSB6XckwPbiSXlrIvMBUTaFG1sDtoiJ845ckUjNAO55Np99lw2Nuex9Rm TrtpwwK5S6mVn+FOE5zOGic9mvuvr7jJu9cDb7K2NrNgn35F6wyMq+fVLI+tpUuYSKHN PqFQ== 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=jdUSjQfELoCxrmMar6U8OQhaRPvf8KwScinRJQd8ysE=; fh=fKh0O2Nl2lJwby+nT4CwbQ2UrmMb+JoQ0FszD2fyfQw=; b=kIiWqXcAZYhmDTthTsDeJhT7f5dFtqlP5QjV6b37jbXqoqi4Syn29imWJHXEzFzHwz /vCAuAO5L1zNJxntEpdSQ8I4EM79Cm1gbC++dOcZn9grtGZwz8a9vs0OaR8ZV7LUOKdu Ipe2HubVfG4WU99SDPinj3OhD9XwlEUHS8yBOlmR3MtWM2SKm8a+/eTHjwGmRcnCLGCK 77pwhmHTOUu6PmC7X87SMyITOcqBrUoRWVwjbkxazQrPO1nw96kcTSLHO5Z0/jFWQkQQ gwI5Np/C9WZYgYNM3oCRYgr8NlQPA5nmKT162dsrYKklAGdPTCZKBC0eJ3An9tytlfhi LfjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ri1M17Kr; 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-106271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mc3-20020a1709032b0300b001e038619e1csi581437plb.567.2024.03.18.08.09.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:09:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ri1M17Kr; 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-106271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106271-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4C4B3281AA1 for ; Mon, 18 Mar 2024 15:09:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AEEB4F213; Mon, 18 Mar 2024 15:09:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ri1M17Kr" Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 E35224EB54 for ; Mon, 18 Mar 2024 15:09:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710774543; cv=none; b=tOrHYPJTKNGpZsm+LDqLzAnjmbpUeyglQ6MsgKJvFfCOQDeHXaR8GuFnNFbRZWKf2fSySqNzfnqUKWEPw8hKr29kbYm/gkg5L9fDtJ6lCYvWZT2UVXolei2WoUGsv1thnlosFkT3oPrFtroa+YkanY1uwmOZ+SKpmAfZ0dq3p/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710774543; c=relaxed/simple; bh=jdUSjQfELoCxrmMar6U8OQhaRPvf8KwScinRJQd8ysE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nzl/4oW/G3sRz4whuOoSPTxPycQvmzFyDeLbZg8JgR0qcmPvw3RehNyhVIOpO3w52dREjhIxZcwwFj9odtv5kR5aZfoUxQ8f/6xwbTGBOM8L8UbddsEC4sCCqZGvWSIxWd2Qqbiq0zVVne10b+kueUbaE2IjsGalXN8/KuP0LyY= 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=ri1M17Kr; arc=none smtp.client-ip=91.218.175.185 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: <7e04a248-cf29-4f0e-b6c5-6dce0fd78613@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710774540; 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=jdUSjQfELoCxrmMar6U8OQhaRPvf8KwScinRJQd8ysE=; b=ri1M17KrHBQVuuHS6Pt0zlxhvdeECi6rIYC/QjRPDyMakidFBANeT9usyBd1f8yzhL6ssJ DiDCzFkSWXI8Vup9oo0wTgft/WWwI05jJ4fgudAflQjECt6fST+ztm6k9LUFQN2CSpdAQ+ N3c5iD68lcWN7S9PMnLUq/KQNpntEaw= Date: Mon, 18 Mar 2024 11:08:58 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 2/2] nvmem: Remove qoriq-efuse in favor of layerscape-sfp Content-Language: en-US To: richard@bit42.se Cc: Srinivas Kandagatla , linux-kernel@vger.kernel.org, =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Michael Walle , Greg Kroah-Hartman References: <20240316002026.1808336-1-sean.anderson@linux.dev> <20240316002026.1808336-2-sean.anderson@linux.dev> <6f5636e65df5616395cc8e24f63b09ef@bit42.se> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <6f5636e65df5616395cc8e24f63b09ef@bit42.se> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/18/24 04:32, richard@bit42.se wrote: > 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: As mentioned in the second paragraph, the original driver exposes the whole register space in the nvmem. I consider this a bug. --Sean > Acked-by: Richard Alpe