From nobody Tue Feb 10 07:42:25 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 350542EFD81; Thu, 8 Jan 2026 16:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767891549; cv=none; b=hg/tpmoqxCf624qXRh6GxxrXllu4lE1MWK5k7vFEY9uEUAsGL5e4t6US1jwymckUi3dT9y1Gqh3k22vl169RVZVun3sbojXGldJ9yfCcJDhoLOK/MmF2hKZus/sARhfuRZC5sviSna/gbRsDtOtvq46SuOpavWADww7mPeVujBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767891549; c=relaxed/simple; bh=iCfiMsUjEbvsR4lM+7YoHewMae65PTUZGwPNuWcvBuc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cTvDV97svf3A+n1rDY9B7LFOWPwoozj2qLCuaFcXRwyRXxJ36w8cfExSDubg+8PnmJA/lfz5YeDycjEbhvn3Cozm4jJzUtFfvu1QmpYk1TXow5eXJiuMizZnqgsoyMgEcwChUR2ryNrUUMXvkWS/Cs+upaAWtLM+rf901YAIXq4= 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=P4qEdUzv; arc=none smtp.client-ip=185.171.202.116 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="P4qEdUzv" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 224B2C1C3AB; Thu, 8 Jan 2026 16:58:36 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 552636072B; Thu, 8 Jan 2026 16:59:02 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 90D7F103C8889; Thu, 8 Jan 2026 17:58:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767891541; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=KPr75/L7Q2MSPflmaco7Z/uPl6GqRaTpWsWBClHqZT8=; b=P4qEdUzvuKIJ0PRJ7V2UHjJD8/E5V84kSDJUDxghZ6HYawuw2pEURYRKSjdwoiAJezlNGf 8SyYLMWGKS6u98T4bJ6E+1JvTNdAR3Zx7CgBbcx6/DoUm955O8777oIYlGHoiDYZwN0Z1Z kRtY6c1pCkPv58Q/fmPcwM82DmzkDYuEGFNi0MXJuTILA9yZSTTUvLJhuS8bIVuY9ZR5Yc bwBR29LGPy3byEqNVS4ieFwLI7db7Jz5F59CpRlB65q6gEUQ0Fd0mPRYHxg5VmCC4U4K8+ 65G738nuffxu4LEqgz8M9TeLbsSSra1oZektEovdvpODfw56EDiDN9U2V0B5zQ== From: Miquel Raynal Date: Thu, 08 Jan 2026 17:57:41 +0100 Subject: [PATCH v2 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: <20260108-winbond-v6-18-rc1-spi-nor-swp-v2-8-c462ef806130@bootlin.com> References: <20260108-winbond-v6-18-rc1-spi-nor-swp-v2-0-c462ef806130@bootlin.com> In-Reply-To: <20260108-winbond-v6-18-rc1-spi-nor-swp-v2-0-c462ef806130@bootlin.com> To: Tudor Ambarus , Pratyush Yadav , Michael Walle , 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.51.1