From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UoAASRy4" 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C06D3C54E58 for ; Mon, 18 Mar 2024 14:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:In-Reply-To:References:From:Cc:Subject:To:Message-Id:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fHsMAjLXWiyS6iM1ZsYOFJfHeh+16UxnYLSyt0GjmzA=; b=2un0HCCSCwLfeP1AEIM4ubg3H2 A2tcYR6Dt9/hEVRTopMOwGpbDtOaLCKWph0DUdNQKGggTxSxgbwjbFm34HWJFbQra99ZApFCt1XLC fvYK8S+q92MM7hs2PgN8yzbWaRQLRnJxPJnypDkmVaEuoRGWg5Xzx4DPNUdxudJJZn9bhnY3NRg/7 9dKnEUEAuY2pXE6fY5F+l6rZURj/ul9B5/OgUsYo2g+L6Imqw80EyTn00Ey0shGzKY7CBzH3Nhric cnaejRydN1ZF/Yr/7AHPTGHzVZrOLiuoabyTwvDtwjAKAfM0kjSFcgGXYH5POEfneELN/KyehB3np sH2KjM2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmDeC-00000008kYK-1PXr; Mon, 18 Mar 2024 14:07:28 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmDe8-00000008kWu-166G for linux-mtd@lists.infradead.org; Mon, 18 Mar 2024 14:07:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id CE551CE0201; Mon, 18 Mar 2024 14:07:21 +0000 (UTC) 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== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240318_070724_505562_54B48E4E X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0921806705715089948==" Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org --===============0921806705715089948== Content-Type: multipart/signed; boundary=8ac9ce41e26f4cabb23549944e22bfa9a25961dadc257ee5a3e92aa37b29; micalg=pgp-sha256; protocol="application/pgp-signature" --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-- --===============0921806705715089948== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ --===============0921806705715089948==--