Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10602918rwr; Fri, 12 May 2023 10:11:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NW31lWmn2TocFeZ55HkrDLApKOhqIHd/N9gOpV0PjrnMTwbL9nFqxLTryjCMw0bi+Uam5 X-Received: by 2002:a05:6a21:7899:b0:101:2dde:37b7 with SMTP id bf25-20020a056a21789900b001012dde37b7mr20076980pzc.11.1683911506683; Fri, 12 May 2023 10:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683911506; cv=none; d=google.com; s=arc-20160816; b=NoP9ygeUEu2fBRTNpXm3z+/j46Ngh0J8b89wBFOJLSysfaIp+dyMsLnNFCdAbNvesr L7Mk+8gyIlUS/JedaDGZ5iXCkepiSVyM+xluMxb4y50pScCx6kJp8nqmjcF9Vqu2j63Z ySRqoOswid5lm9o+kGGAXqxP+j9VJD31qyQOZtJhsXiPoOhIIGCaxmKSgFzDcUUv4Pr7 XB0dZYtvhIxIhsOGBt0AiF2MfcYw2GhsKnyEFMJPeN4rSZ8uWvaxYMc9/iVuPmXcxrCO 1qhsPaaz1FStiRAf3xDM4B7q4hSs6K4xGFfZSzjfWW+6fnuEjtNE0WA0JFAgd8CbCqFE tpzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WgyCZc0+du4N+dTZkKE4PbFdEgp5xlJtk0+36+OFtLs=; b=X04sqlWrfgLvMVouzdS78o4m9K7iA/7/EI0DFaguEZTyRnyZ/3V0NBKZsSzLE+Y33/ un4bimIb6s51qqXRgzZ51R9WA0ds9Kj9SmKuXQDVrTlNYQ9gD4xoFogLH9JY/hqcqNGQ rLx3i4oFFGu0vC3EVU0aYMG1Kt3q9UQiu8N6tEivugTlDdui4mHndHph065T7wVTzjjo 17+Bltbe3Sc/yOtXOXskl9Mqiub0fbHxn15oDDZHEIkJXW/XtrJqC5mJldEnDVfcq3TP HscwiEh7r2FoZvIG3y5zUMPyJcyfkbP15Y3glUrRqSjcyKV+kkvX+e2tq9Z3a8Kavq52 JpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aq1mpL/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b00528c16e927dsi9895332pgi.22.2023.05.12.10.11.34; Fri, 12 May 2023 10:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aq1mpL/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237736AbjELRBc (ORCPT + 99 others); Fri, 12 May 2023 13:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237723AbjELRBa (ORCPT ); Fri, 12 May 2023 13:01:30 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FFAA272 for ; Fri, 12 May 2023 10:01:28 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so91341983a12.1 for ; Fri, 12 May 2023 10:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683910887; x=1686502887; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WgyCZc0+du4N+dTZkKE4PbFdEgp5xlJtk0+36+OFtLs=; b=aq1mpL/CYYPyVxxuT1synoTadOINqfKrW4ajIyM2WqaRyGAkJGBxsYYe/2Y2cQ97Yh UWUYdRoH2SuCArWPH8YMFDrus8laLXbW3HNV/AAO/tdION23+5QleTt9IsGGvVHYkAlJ beTwgJ5WwjCdlCb4/warYmKtSammHAffCzLoEVeFj57dvbn1PZ5p21FxSKiBTTUGeIvu V+Z+/4/o6lotQ6wygwrus+wbKRQFc2xnD5hx46LWCiVHYkcSQbgkvkS8VV6dWZuXMa1j rg0/SZJvig9ulJ9NP5vM78uqaQizjpCrBC0ku4t2rM4YwS+JGOMAlH0LjyEDJDfh/3TO aFGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683910887; x=1686502887; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WgyCZc0+du4N+dTZkKE4PbFdEgp5xlJtk0+36+OFtLs=; b=SbI7Ybr0Te/uiYjO8bL8wiwDeHLUDeob9p9DsZw3Ip5466sgLLpVQaVkUf5CfOGs8i Ub1sFr3veGPVwYIVnLv2ay0fD9j/NkygM7dBJeqC9r59b1fGqrHeygRBzbvkEqTubGDb gvOv90hnMZHQnzIsI0CKMPh1KIF2s20s3w/FYNtoI5Yz2ri14klfqyytgRIrL6p4yz3v XHEGRELlfnbQAqvpbL2YWuLfYZkb7vF9eXC7x1dty5uxbvnfCaDU3uBZL3gRTNItmo8V 761er5SUf5VsBiiSczONpg/0QWIndvz6PsB1H/bWOWs77MSYQJc8im8Wu6cFu9og8+O3 4sWQ== X-Gm-Message-State: AC+VfDxJtzaWXTdy12PxBrSbU9N+45DmooW5KigxnmI0GCZv5q3AxvJg X5auRxo2loZkk+pVLnrREcniOQ== X-Received: by 2002:a17:906:db04:b0:960:175a:3af7 with SMTP id xj4-20020a170906db0400b00960175a3af7mr20987144ejb.19.1683910886814; Fri, 12 May 2023 10:01:26 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:7ede:fc7b:2328:3883? ([2a02:810d:15c0:828:7ede:fc7b:2328:3883]) by smtp.gmail.com with ESMTPSA id hy25-20020a1709068a7900b0096607baaf19sm5635497ejc.101.2023.05.12.10.01.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 10:01:26 -0700 (PDT) Message-ID: <68f9bee2-5a5b-2962-6c3d-e73ade371545@linaro.org> Date: Fri, 12 May 2023 19:01:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v3 04/10] nvmem: qfprom: Add support for secure reading on QDU1000/QRU1000 Content-Language: en-US To: Komal Bajaj , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230512122134.24339-1-quic_kbajaj@quicinc.com> <20230512122134.24339-5-quic_kbajaj@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20230512122134.24339-5-quic_kbajaj@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/05/2023 14:21, Komal Bajaj wrote: > Add qfprom driver support for QDU1000/QRU1000 SOCs. > > Signed-off-by: Komal Bajaj > --- > drivers/nvmem/qfprom.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c > index 20662e2d3732..12a7981a8a71 100644 > --- a/drivers/nvmem/qfprom.c > +++ b/drivers/nvmem/qfprom.c > @@ -109,6 +109,10 @@ struct qfprom_soc_compatible_data { > bool secure; > }; > > +static const struct qfprom_soc_compatible_data qdu1000_qfprom = { > + .secure = true > +}; > + > static const struct nvmem_keepout sc7180_qfprom_keepout[] = { > {.start = 0x128, .end = 0x148}, > {.start = 0x220, .end = 0x228} > @@ -490,6 +494,7 @@ static int qfprom_probe(struct platform_device *pdev) > > static const struct of_device_id qfprom_of_match[] = { > { .compatible = "qcom,qfprom",}, > + { .compatible = "qcom,qdu1000-qfprom", .data = &qdu1000_qfprom}, > { .compatible = "qcom,sc7180-qfprom", .data = &sc7180_qfprom}, I have doubts that this is still compatible with qcom,qfprom. It uses entirely different read method. That's why generic fallbacks are bad, one more case to my growing list of awesome examples. :) Best regards, Krzysztof