From nobody Tue Apr 7 01:35:35 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 D056C3D523F; Fri, 3 Apr 2026 16:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775232598; cv=none; b=cOF7MTIbKGguMH7SrIQtJ8bTVDWmiNqYzGKH+Mfec+itCwEIt3YfnYSWr5CJQaAPXCUkSttQFbMd4UK/Av05qzgw+l0S4oX5dTfBpZvyBfFJFvRF1WyPk6Non8vE2n4V5y5xUYq/ssAVGgGhUnmKjVsJVusOK8ryp3KPkQqpT4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775232598; c=relaxed/simple; bh=qPLXMm+0NZCXebRLpkoMzE/4h3YXK09rjoiIyhtHPnE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qYPzu6B7TCwaI4kGdvgzqLEcOYD4gAjryDcLlrto64pQHxlsepGbtsvdzLG03ahw/F8JtpzLt0NcmZNyIEG5PPDRVm32tzd+/qxYvGTr+lubreCeMaOWv4oPblkXipKeupc4JlaKNSZErF++jvA01mlBF1eUGW3ssrcOxK0NT0A= 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=Ki2kEhL/; arc=none smtp.client-ip=185.246.84.56 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Ki2kEhL/" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 961251A312D; Fri, 3 Apr 2026 16:09:55 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 6BC1E603C1; Fri, 3 Apr 2026 16:09:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B386D1045010A; Fri, 3 Apr 2026 18:09:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1775232594; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=mfKlFM5DiGOhHJ1K9VJE1K/I5oWuny30sbh2IlUETAU=; b=Ki2kEhL/JO8VidYg5ks4h+IeDSHZzT9+wxi83xrg35C40ExITmee9IgiLmAf5swMwKDIk2 YgaJr9DmYluzBhOGeDEshGusZOsZ08M9r8HEwlB9tExHg2A7I+lRKovZQ3iP6qLEhiRKyQ /M4eM0aOF09QKuuEN6ylnJv6yI0oQaMa73kWQ6HSxgk3MH1nmpU0SpTQK1OzmKpvg5dLZg 1fOk9tpGL6FbmdDNv7p2SO3+wXqTy0n2+bHfD2LXZtEUSvhGcWsr3jFbxCV8QapX6yV7vv 064CLCEQImJMy53DRqpjgJ2os6g5D7KTdkkX0R2GbVTJTnjXDFYb+qgPYkxi6w== From: Miquel Raynal Date: Fri, 03 Apr 2026 18:09:26 +0200 Subject: [PATCH v4 08/27] mtd: spi-nor: swp: Clarify a comment Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260403-winbond-v6-18-rc1-spi-nor-swp-v4-8-833dab5e7288@bootlin.com> References: <20260403-winbond-v6-18-rc1-spi-nor-swp-v4-0-833dab5e7288@bootlin.com> In-Reply-To: <20260403-winbond-v6-18-rc1-spi-nor-swp-v4-0-833dab5e7288@bootlin.com> To: Pratyush Yadav , Michael Walle , Takahiro Kuwano , Richard Weinberger , Vignesh Raghavendra , Jonathan Corbet Cc: Sean Anderson , Thomas Petazzoni , Steam Lin , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Miquel Raynal X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 The comment states that some power of two sizes are not supported. This is very device dependent (based on the size), so modulate a bit the sentence to make it more accurate. Reviewed-by: Michael Walle Signed-off-by: Miquel Raynal --- drivers/mtd/spi-nor/swp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/swp.c b/drivers/mtd/spi-nor/swp.c index 64a917543928..246f6d5ca8dd 100644 --- a/drivers/mtd/spi-nor/swp.c +++ b/drivers/mtd/spi-nor/swp.c @@ -303,7 +303,7 @@ static int spi_nor_sr_unlock(struct spi_nor *nor, loff_= t ofs, u64 len) if (nor->flags & SNOR_F_HAS_SR_BP3_BIT6 && val & SR_BP3) val =3D (val & ~SR_BP3) | SR_BP3_BIT6; =20 - /* Some power-of-two sizes are not supported */ + /* Some power-of-two sizes may not be supported */ if (val & ~mask) return -EINVAL; } --=20 2.53.0