From mboxrd@z Thu Jan 1 00:00:00 1970 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 EF8AF3A6F05 for ; Tue, 5 May 2026 08:23:59 +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=1777969442; cv=none; b=uvlZoctDhAuVO08iAZxfnAiaBSKVDq7LO3skEOVHUXltLJ6Gmy1tqXs2f+TqGzpoeh+L6av7nUxYpUdcwoojiW9oDzinPtB0giRYGBRMbAvUbxL+p23JXz1me6OMS3+MRZvBz+c2bYNKVyCyi+OYax67coDbX2Eu5aF0jxGpL3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777969442; c=relaxed/simple; bh=tviv267WhZUlLMC9SxJZrfVicZ1SusoJ6Bx3/XXYOCY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=R1iIdjyucWTmJv5P6Ttmxxyu2Joov2rMb9E6ZS78Hryw+ZioFfznCzCo28AjLo+ewKr919SN7TzIJ7xrHwwuM9sCot/9RKt3CeqFket0jHMyuKa/dJCSoVQOoRcHRBb89YaMA2c3EOp+smqsw52j2j9afWQ3ERLxVoUVJcsCCLA= 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=h9TrZAKP; 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="h9TrZAKP" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 63D261A3524; Tue, 5 May 2026 08:23:58 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2E80C5FD9D; Tue, 5 May 2026 08:23:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1973311AD2094; Tue, 5 May 2026 10:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1777969437; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=uBIr3CQX6FUQHhQLmkVk7BnOw9CB7okApwAMfGpkl2A=; b=h9TrZAKPLIIAQmfpZs5cIBeWKoooSOKlwJoBXj6hj+mP5m81f4+hlzxtENpfxzL6Dx2MAk eDSbxdHC6GkoKPnJnPgqZkZ6WV4c1bkoa2/GvraXNtAh/rg5uwhXcK55jdzXfV7bIYtu0D QNZ0Y+uyEXFv8LnxzGL3P6VRZnOarWQrYpPUsXJa7hYLul4RudQdIjwkheu2ooe2Q+hCWH QinEgOeNF6j81iaQQGjhHwn/GYXtY8jGZviTURjSEQpdPXhGw3mL3Fv8esmMjaeJtqPfNf UgAiLDEpmUK0atl6MmkTYfG8wECFJBrkrHbnZZ3Sit2AGgn+lwcAWg152AdEWg== From: Miquel Raynal To: Arseniy Krasnov Cc: Richard Weinberger , Vignesh Raghavendra , Frieder Schrempf , Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, rulkc@linuxtesting.org, oxffffaa@gmail.com, stable@vger.kernel.org Subject: Re: [PATCH v1] mtd: rawnand: fix condition in 'nand_select_target()' In-Reply-To: <335fad03-6113-4508-b28d-b21c7efcffe6@rulkc.org> (Arseniy Krasnov's message of "Tue, 5 May 2026 11:14:25 +0300") References: <20260504221012.1310605-1-avkrasnov@rulkc.org> <87mryeqoqs.fsf@bootlin.com> <57b0cc2a-6d62-405c-bfa5-68d1c46dbad9@rulkc.org> <87h5omqntt.fsf@bootlin.com> <335fad03-6113-4508-b28d-b21c7efcffe6@rulkc.org> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Tue, 05 May 2026 10:23:55 +0200 Message-ID: <87bjeuqn6s.fsf@bootlin.com> 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 X-Last-TLS-Session-Version: TLSv1.3 On 05/05/2026 at 11:14:25 +03, Arseniy Krasnov wrote: > 05.05.2026 11:10, Miquel Raynal wrote: >> On 05/05/2026 at 10:59:16 +03, Arseniy Krasnov wro= te: >> >>> 05.05.2026 10:50, Miquel Raynal wrote: >>>> Hi, >>>> >>>> On 05/05/2026 at 01:10:12 +03, Arseniy Krasnov w= rote: >>>> >>>> Two important typos in the commit log :-) >>>> >>>>> 'cs' here must in range [0:nanddev_ntargets). >>>> be [ >>> >>> Hi, sorry, You mean? >>> >>> >>> 'cs' here must be in range [0:nanddev_ntargets].=C2=A0 >> I meant [0:nanddev_ntargets[ which is the mathematical way, IIRC, to >> indicate that the last value is out of scope/excluded. >> >> [0:nanddev_ntargets] means that nanddev_ntargets is included in the >> scope of values and here since you are explicitly showing that it is >> not, it feels wrong to use that convention. > > > Ahh, Yes I see, just small misunderstood in math symbols: > > I mean: [A:B) =3D=3D [A:B[ > > https://wikimedia.org/api/rest_v1/media/math/render/svg/0719b1b08cdf649e7= 35e6dab6dc7355fa37a9b21 Ah ok, didn't know that other convention, fine then, take the one you prefe= r if both are identical. Just add the missing "be" please! Thanks, Miqu=C3=A8l