Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4402765rdh; Tue, 28 Nov 2023 23:46:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHbYggBzAA1gY0CgsFQrBaR8D0ItW8FKpDbS7HREg8gpJraCDRuqUuTdHWz63G8AAUHrO8 X-Received: by 2002:a05:6808:14cb:b0:3b6:b9db:ea1c with SMTP id f11-20020a05680814cb00b003b6b9dbea1cmr25721790oiw.42.1701243980559; Tue, 28 Nov 2023 23:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701243980; cv=none; d=google.com; s=arc-20160816; b=T0YN4QuSuEbLXiuA6fbVLJG74AUHYoLJGU8nJfMNvG+emQ9TIpBxqkXNlfky7XFu3R VYZs4OgKwMpw4sAkie7IOZ7wIsa/7hAoRENF8JXq9KjXuUbA3YbYgxwx0lpRTLAmJzXN mz82WSaKAwNGhmpgNDGznmfLUUeoeP8EvVmTnHyc4rwR+lEcVNTWkfqVNVFzs6JOvIPz 42l3cDZlO2wrJctma5ALg8EcBMRLmnR122dDuDi8lmgs/4PsPQonpF4sm1Ex78DAoZIo fQH42NAz8jLGqYIHkUEtXSSfcOmMBIEFZm/sm/6ttPBHaRB1ngTC+P+gEDUGrgg0j2AS Czag== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=yN+tUdd9HKDL5IxRS3qriGU+Y1r/NfH7A0nKJ7ANPiw=; fh=nuPshAILciBlNt9hm/P/Q5Q+wf+qwus5uQSaOJnBr4g=; b=1F6PTpI2JX8mweHuY3FjPHckLBJwue1HVo3nxP146Ay56dxCx3ltptepmQ7jdpsvXt me6NZaQtNaol4l1pHVyBH3vz4jcSuN0XLiPB3fdTIkzQ2yUzW0cTz9TtjpZqK5gYRaQ+ tSZb80SmLLpD0FiDzSQjU8TZULcWzo4COEW/Sf8XOjwt7DsQD1hjNCpl8G+H9zCUJ7F5 Zcpz4vxO3xP5bpl55+Hd6vs01KlelN3TUnr/vJ4oZbm1n6tornnAT/hvCIJa3lgtGWpo 8KDbpTxTdsUGeVkSzdAIpswRQ1ah+muZK/OYijnW9LI6F8vBP3BCb5OZd1/20APERqcA dlVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wYOhHE0n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t7-20020a635347000000b0057884435a71si13514388pgl.396.2023.11.28.23.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 23:46:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wYOhHE0n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 98E1580A1E24; Tue, 28 Nov 2023 23:46:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjK2HqB (ORCPT + 99 others); Wed, 29 Nov 2023 02:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjK2Hp7 (ORCPT ); Wed, 29 Nov 2023 02:45:59 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A9F1710 for ; Tue, 28 Nov 2023 23:46:05 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3331974c2d2so139764f8f.2 for ; Tue, 28 Nov 2023 23:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701243964; x=1701848764; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yN+tUdd9HKDL5IxRS3qriGU+Y1r/NfH7A0nKJ7ANPiw=; b=wYOhHE0nVE68Kb7iiUww+UIln55znOnEo+V/sLENFNLJKdsS7PVR+4X+yyh7bbwUak wspfPNwW4jOeyM3Zuwq8GgQIw9ON+VzezSSdbmQRKGxRY+n11Kbf1+OsXUyPm5FwHHNF U9fMMDlksMgjiMGgPxIDDRsXvqdcr/pLBpShsAKSyl1zde7wMALVeQHzLXMWuqFHql8A bzSVHSk5PwNmFlWZi8bLn/2R8tmzlJK9iiKsOSFT4J5SDLC8sBg20bibUfMm40ANQsSE oVSxSK576EtA0fMx2JjaQCCVb5aaSp+Dck43c/gUXkHN01gY30tRIorbBPYBxMTRvIJq qqLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701243964; x=1701848764; h=content-transfer-encoding:in-reply-to:from:references: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=yN+tUdd9HKDL5IxRS3qriGU+Y1r/NfH7A0nKJ7ANPiw=; b=RvRIvowWtebyjqWu0fs8hINtIaH+1qmpGjEo2FKmqlrin7UACze8f6urox9ZE4PdE9 4MMhaPOsVLPIC+9viVpD95NcWcrqWQTKX/WHIOUpjwDafN39SaiEoUccC5pldhUDj/89 HCXvRngaMfiizs35lB4EoUyUupnVyiJobAvrANR/XbWe1i/LIRo5w+3bvKK4XKN9DnpQ IcCOXk0dYQf4IgvUk7mjJO3GZuB6SN3XWBsPD/45UnSmumk2dEzAITKKw8biOLcfRhRg D7++xB4ffd8fp1/VAvBtIM3wUR5XcKLjzfUATxCrH7cPW1Epa+4II/Ie51epGH+zUCoj jKxA== X-Gm-Message-State: AOJu0Yw5o4Xv99FrY2FBHQgKLtOMTV6hyD/zyscH6N82JftbWHm1vUHf Zyo9vo2553TOLrIn4F4tOHdsSw== X-Received: by 2002:a5d:464f:0:b0:32d:a54a:f57c with SMTP id j15-20020a5d464f000000b0032da54af57cmr12396758wrs.25.1701243964350; Tue, 28 Nov 2023 23:46:04 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.75]) by smtp.gmail.com with ESMTPSA id t20-20020adfa2d4000000b00332cbece829sm17137026wra.59.2023.11.28.23.46.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 23:46:03 -0800 (PST) Message-ID: <9c97e28e-fbb8-4a7f-8205-821fcbd579f6@linaro.org> Date: Wed, 29 Nov 2023 07:46:02 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 2/2] mtd: spi-nor: Stop reporting warning message when soft reset is not suported Content-Language: en-US To: AceLan Kao , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , Dhruva Gole , linux-mtd@lists.infradead.org, Mark Brown , Kamal Dasu , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , Mario Kicherer , Chuanhong Guo , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231129064311.272422-1-acelan.kao@canonical.com> <20231129064311.272422-2-acelan.kao@canonical.com> From: Tudor Ambarus In-Reply-To: <20231129064311.272422-2-acelan.kao@canonical.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 23:46:17 -0800 (PST) On 11/29/23 06:43, AceLan Kao wrote: > From: "Chia-Lin Kao (AceLan)" > Hi, > When the software reset command isn't supported, we now stop reporting > the warning message to avoid unnecessary warnings and potential confusion. > > Reviewed-by: Dhruva Gole > Reviewed-by: Michael Walle > Reviewed-by: Mika Westerberg > Acked-by: Pratyush Yadav > Signed-off-by: Chia-Lin Kao (AceLan) You haven't specified who shall take these patches. Is it fine for you if I take just the SPI NOR bits? If you want Mark to queue both: Acked-by: Tudor Ambarus > > --- > v2. only lower the priority for the not supported failure > v3. replace ENOTSUPP with EOPNOTSUPP and check the first command only > v4. move the version information below the '---' line > v5. remove dev_warn if soft reset operation is not supported > --- > drivers/mtd/spi-nor/core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c > index 87cb2047df80..96a207751cf2 100644 > --- a/drivers/mtd/spi-nor/core.c > +++ b/drivers/mtd/spi-nor/core.c > @@ -3237,7 +3237,8 @@ static void spi_nor_soft_reset(struct spi_nor *nor) > > ret = spi_mem_exec_op(nor->spimem, &op); > if (ret) { > - dev_warn(nor->dev, "Software reset failed: %d\n", ret); > + if (ret != -EOPNOTSUPP) > + dev_warn(nor->dev, "Software reset failed: %d\n", ret); > return; > } >