Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp255160lqt; Mon, 18 Mar 2024 07:07:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbV3syoMOV+5fntc9wMLxp9K3zxe4JAsc+GeLEiTSQcHQxZk0sauXNuC5t0/gmD+lj0ESiWyz540YX0jyJUSL/il8HC+aGK8rBJ2sqwg== X-Google-Smtp-Source: AGHT+IFs9ZT7+6OY/KXwcr359yWif9fBqzI/JYi6lP9rCLZPIzdUJhtK8BTKhfsJuQzXpmaVb0zv X-Received: by 2002:a05:6870:524f:b0:221:bf42:cf76 with SMTP id o15-20020a056870524f00b00221bf42cf76mr12650937oai.10.1710770847526; Mon, 18 Mar 2024 07:07:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710770847; cv=pass; d=google.com; s=arc-20160816; b=XOwX/tNijwbzLjuNomi/wEVITyWFGSvzJu47AlDiKm8GxceQiGQtRyuNK7sp8P2L26 0LXP4cNUAMIzFTVyowU+0RFVAxq3WCgJypQR8yIuxOSvceLHmhcndtcBFyvJU/r/dSrR nnFAVam/HkBTFXVLj+/4EoSQ/0ZQRAjFCSyYJXNmCezXp8V1gUsH/O/60P1rb807xh2v OzGRxbAQNYhL9imnkt6OGkZ0/0weMAIcyoNJ5JGjCZ742RJg04JWfHn/AxsV1ZOV5Sj8 Ra0zbVC9LkyGVr0XCFhewC2Ku9R+/wsVQrNE7GFDxaXlSYPf7bgqwYXvp0t1gsag2moH gqjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:from:cc:subject:to:message-id:date:dkim-signature; bh=vkD2c6YOu/3PLLtPJN8BZ4sJ1EZR5ZziaUiEsoLiRHo=; fh=NxP4NAlo3uOcfpuJFPg3E09HQqRdDCJQ6HmImmihWJA=; b=tPF/BYOiLlNr0apnRYGar/lifEVrsC4J65DbHCd2zaV017bNSt02fi4DEbgzdwN7VN klqmYvSkzucccPZ8j6ZyyTMIj5qUMsyXNXNeMFJGfp0hDyI2blKibh4cmn0FfpiPlkt1 56o7D8sGx0c8k5UpShYYowG9LuIdtQ4w19G+Yzt5nPgcBeeQqyIPXhtEm7yjOZPI/a4n V7svQvlpB1B7XpZcT0HO8svsuZ1JhfcoX4j+w3+ZgZgTEByAPUQQQxFjVMuBonFSDRSc TYMY126Mxm7trGj19mrAfLsjJAPDY3tdBbQcDYsLoNqP8IsiITMlHNa04OUGlqTsCePm +94g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UoAASRy4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fw15-20020a0566381d8f00b00476ca242bc9si3162363jab.122.2024.03.18.07.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 07:07:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106192-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=@kernel.org header.s=k20201202 header.b=UoAASRy4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 16A502816A2 for ; Mon, 18 Mar 2024 14:07:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 562834AEDC; Mon, 18 Mar 2024 14:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UoAASRy4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7D89F481AC for ; Mon, 18 Mar 2024 14:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710770841; cv=none; b=ofasxYAQoG0HnnoghX8Is86JmTGBiu8eiLGs7GwScKIYnzBW2llfdy/u06bY+ccDnVrSL1Mr2NGxttFaQNeCoPElZPyHfPs2hm/5m3HvQAKTkgTryiau06dlw/pVQtFJs1AiqAOGDNWTjhiGQY0HPKdzC4IcRwFIsU2kd9pcvAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710770841; c=relaxed/simple; bh=vkD2c6YOu/3PLLtPJN8BZ4sJ1EZR5ZziaUiEsoLiRHo=; h=Content-Type:Date:Message-Id:To:Subject:Cc:From:References: In-Reply-To; b=mzPYsHQPKWRvUcLHhl1FqD7ZJmFyoyxWisYaaCXp3XVUx9BNlCOXMPdCmqK4H34s7Ansob9s4Iz+vCrLrMeaiMPbu2eEH5ADD28ep6ixDSMjT6mLKcIKsZAoe/NPUA2ly/qCmLVvS2Wpeq/0DASd57GaisqoxU1yMYwgxtt+zW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UoAASRy4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE18FC433C7; Mon, 18 Mar 2024 14:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710770841; bh=vkD2c6YOu/3PLLtPJN8BZ4sJ1EZR5ZziaUiEsoLiRHo=; h=Date:To:Subject:Cc:From:References:In-Reply-To:From; b=UoAASRy49t4fYNk5zt4y3ZniIxzKKiwzxdCQE4wzQnV649Zwua5izMsVO/rVMbngB KMMX/zmbd1oJMn7AQRMeeX/sMIMN163l/RUwVVwT7LLkBwQXfG3Bf5EFSgDM869Z5q J1fqus1YFKq0OnTNxkIQj7VziN2+7BBOLm1iOgkkZbVaUSSeD9L7vO4LXAtM/2hBo6 K/JUc5lAA48VTB3Mu3GzGzyZ5JFRzPCHv73prUmPeRNyPxLhAzmjy9SlQs44qv/WTZ KPpAJlD2d1JzKY3hJy6BNiSjR7FNu0Y90a+huEiqI9LHf2I8zW5VGhzEG//MGA6TmB 1XPARtvsjEiVQ== Content-Type: multipart/signed; boundary=8ac9ce41e26f4cabb23549944e22bfa9a25961dadc257ee5a3e92aa37b29; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Mon, 18 Mar 2024 15:07:13 +0100 Message-Id: To: "Aapo Vienamo" , , , , , Subject: Re: [PATCH v2 2/2] mtd: core: Don't fail mtd_otp_nvmem_add() if OTP is unsupported Cc: From: "Michael Walle" X-Mailer: aerc 0.16.0 References: <20240313173425.1325790-1-aapo.vienamo@linux.intel.com> <20240313173425.1325790-3-aapo.vienamo@linux.intel.com> In-Reply-To: <20240313173425.1325790-3-aapo.vienamo@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --8ac9ce41e26f4cabb23549944e22bfa9a25961dadc257ee5a3e92aa37b29 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Wed Mar 13, 2024 at 6:34 PM CET, Aapo Vienamo wrote: > Handle the case where -EOPNOTSUPP is returned from OTP driver. > > This addresses an issue that occurs with the Intel SPI flash controller, > which has a limited supported opcode set. Whilst the OTP functionality > is not available due to this restriction, other parts of the MTD > functionality of the device are intact. This change allows the driver > to gracefully handle the restriction by allowing the supported > functionality to remain available instead of failing the probe > altogether. > > Signed-off-by: Aapo Vienamo > Reviewed-by: Mika Westerberg Reviewed-by: Michael Walle -michael --8ac9ce41e26f4cabb23549944e22bfa9a25961dadc257ee5a3e92aa37b29 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIgEABYIADAWIQQCnWSOYTtih6UXaxvNyh2jtWxG+wUCZfhKkRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQzcodo7VsRvs0YQEAsYw1iglE8VFvcu5bjOkVo5oFjG2qb2Jo lbITqsfqxfoA/iYKuEvmeC+oVqLKwTwaumonvnWI4F8TpREztajbvYoD =uszn -----END PGP SIGNATURE----- --8ac9ce41e26f4cabb23549944e22bfa9a25961dadc257ee5a3e92aa37b29--