Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2718038lqp; Mon, 25 Mar 2024 07:27:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMfy907jNDprp1ofKto8E1ksRPtTiOqoLg+dQxXJi1GD9n0KXufzXG61G8Ns88TqT9ygUn2Q3uI6CrHLshgQrWhKZQzNNkfNInIpiB/Q== X-Google-Smtp-Source: AGHT+IEsWVDcs2j3zrhHA1YFskHx/GWbM+RZDqq8IHciiUXriD3VdKhyKRa57LIFV3VReLgifpR9 X-Received: by 2002:a05:6a20:2d24:b0:1a3:5d70:1828 with SMTP id g36-20020a056a202d2400b001a35d701828mr7580503pzl.48.1711376852308; Mon, 25 Mar 2024 07:27:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711376852; cv=pass; d=google.com; s=arc-20160816; b=Dg+1ccLXk5R+pEX+1wyHLD4rL4i7oE9j6rLs/0fH7SYdm4MOeK9ECMhMSJ9q2rchd1 ymqF8j44FIq/Jt5uR17yEyshymSMrD1wSJ/fd1rcwZTC8u+5WHvBIxBhPtu0TggiqfUu /5kuxA4AEOpFIiv0Br4MuLcpoPCXAjUxRydyml9b4X/6LR7gY+OHIQZpzx8gecbBfa2r BqezJIpWlx5e/ezOiVEGcDJAr4ekkkkG7GvCSp9SUqRqyjLQxotDnz41flVKa3JDiQDn C8v+TvYp7GKKe/ydz0ELylXW1vIuc9jdqeU/Y3QZZ/Ls3mRYbdAhd4gJJp5drSpu3g1T MH7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=s8/p+IkZ8xufk6L6NhUiqrtkEMLBY43oIUbGcbGu9kE=; fh=H3z4hTyVfHa8kiarxa1q2707K/b1KqmKNoLx1TMDibA=; b=ATxz7H40rHfAggCWEFYoHsaSmbOg7n4yg6VqsX19WUP4un5SOzXJTAuoXahwUC/ngo x2W0Jcm82NYF2QttW9vgbJWAOrNTW7zJsPXGY8HZumSXAD1A9wmqVrYtd8QN//KmCZMV r2EDr2CsUOnjphLb0BNjtoBFlu7R7DbZP+Ak3NkUXwiTj6xYane9T+nBTtE2H+JX1qJL M46Y2ccwYdkt5DEYUehpX1uhUfCZK8w2pzWfOe6/WES4cF+/2kr9PYh7grfW0qebZBRq h0Jnn+rdd7sTvBYOtArU6Bp4ez+2ecyrakBuRypTa5dOqlRr2buWbSall05OArSUvFkC 3Rjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DAVvZbnr; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f16-20020a63dc50000000b005d8b8c6a98bsi7610002pgj.588.2024.03.25.07.27.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116815-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=@bootlin.com header.s=gm1 header.b=DAVvZbnr; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 DE2732E5627 for ; Mon, 25 Mar 2024 14:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 718EE18B61F; Mon, 25 Mar 2024 10:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DAVvZbnr" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 1606012FF78 for ; Mon, 25 Mar 2024 10:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361937; cv=none; b=cnlpHuusW0xVM0SkS3qKKMe8jlu5q4wqfX3ynW36hGLHPZkQ5XRvr2jpIu+tDxSfhRMcW7ZGucR0WxvYvH7HB2+hzYvZztjo3cPxR3/4xDriY0H2VVs+CIIR8GwlxHkqIcdLVk8CGVhqIR9iXsVUz+4cSreOXUokTJhgM3M5i8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361937; c=relaxed/simple; bh=5HTu0ynpAiZeBVx0C9I+484Y9Flm1GXxQ913JM7G75w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eESKWaHEyjOnN8+9OKjM05jr1syXflUu/BHNirC/BI/JzczGZQZE6JjaM7lf8XoeMAwAKLCcHxiVL6WIhs5AOkC+JwBAKQXBbCf4q3vOoyRkbVV3gJvfbYnlf0b4x2iofTxve2k7VfVdWzrOECf8944w/nfZTk2zEGXDJ6rZD10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=DAVvZbnr; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id E868A60005; Mon, 25 Mar 2024 10:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711361933; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s8/p+IkZ8xufk6L6NhUiqrtkEMLBY43oIUbGcbGu9kE=; b=DAVvZbnraPWkLZCfpdDcshPLU7zKUz7lx52bdxP1irC2Sag9IKmU3m64k7DGYAPDQ4q75M H/l1TdqNrRNV9dJ9KwSlVfDY/cMCESi0Cqhfl1sghENEtCylqjPwWijiMZcw39XHcDXcT1 2tnwKfK4owBzBB4w9t4K1Qm3rtk2TnifKDFS5Q7sOa0DznEAwcpMsdS0aDbDNV3PX/OvVg E6qoOR2CYLC52dnFBmDDcWSzkzDTrW241L3nOGRpzIyYWTiZS5ZNblPwvGvJxcoX9XC47K zHOXSXloiqskx4WvEH+QmYs7RLaQznF35Xpe6uHySchhMhsc/XYfaYhrAzMhJQ== From: Miquel Raynal To: Aapo Vienamo , mwalle@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mika.westerberg@linux.intel.com Subject: Re: [PATCH v2 2/2] mtd: core: Don't fail mtd_otp_nvmem_add() if OTP is unsupported Date: Mon, 25 Mar 2024 11:18:52 +0100 Message-Id: <20240325101852.262497-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240313173425.1325790-3-aapo.vienamo@linux.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'fe0b8213c0129ff2419458343d8d8e716b1495c0' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com On Wed, 2024-03-13 at 17:34:25 UTC, 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 Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel