From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 7D5591A726B for ; Fri, 20 Dec 2024 08:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734685178; cv=none; b=InVS21fPPcXR/uEy6EhBdIMmOF9Dj34kfXCPmGSiwBG8EJtA4tm70BUNUw+LHdGWoy/dW1lN05zz8jApu1XYjqUhH/xdJ0Zc9TVV66LeJdcQjYL58qAibnxr/qOp9T7s8AWJ0CHAaMPjuXAa4agNjuWs4B8aOhMs1dDIZUAQrTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734685178; c=relaxed/simple; bh=SFl+e92WgcWv4oL6XD26FejdeGSjob+yvZ/tKdgd5SI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ZvvYpYmh9Yl8ZGzc/RtpVgcCHOPtsrX/RKyolfTBvBsxP4PWpMtG3kfqGiVFGdu7BmOM77V/rqDCVW+IbHVI2uRflG8rRHNqV+UHkDn+bB2dCHh7pCnrPVGE1cxynPInjqe50BU3aJTdjAo+0659puKvFTqdPOKaAYuKKs6q3Y8= 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=eUYgjtq6; arc=none smtp.client-ip=217.70.183.198 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="eUYgjtq6" Received: by mail.gandi.net (Postfix) with ESMTPSA id D4932C000C; Fri, 20 Dec 2024 08:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1734685168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SFl+e92WgcWv4oL6XD26FejdeGSjob+yvZ/tKdgd5SI=; b=eUYgjtq6wotf+agczNaxA5iFE53oz9LFwCoaiGNsWAMxMpSM55xlfCBoBbwCt3VQRuWuUr eeBwpB4gvZMdG9Jsv3f8UfL4HYJqEzEsW4c66NcjXH7AXOiO5pUendmpUoPcl4c95XX1ME P6gWt3hJ6L4v30TL5l7ghVQXZ7WoJzLfTUK0+vZA9uwZOCabgzg8gC6sPR2eV2MUgZ9T54 wqk6SahvL6BLec65gLCn0GdPykX7DySJeIlIlmzKqlTDKmHFMtBnyE0HEY+NlcKHH6WyHj f+xbB3S6MmOETH3+QkkKzng7fgMlGmLSyrxvY4gwdIzhlO0ewV1vGvY5kyTzkg== From: Miquel Raynal To: "Michael Walle" Cc: "Tudor Ambarus" , "Renjun Wang" , "Pratyush Yadav" , "Richard Weinberger" , "Vignesh Raghavendra" , , Subject: Re: [PATCH] mtd: spi-nor: extend description of size member of struct flash_info In-Reply-To: (Michael Walle's message of "Fri, 20 Dec 2024 09:36:57 +0100") References: <20241219-spi-nor-flash-info-size-desc-v1-1-6b53cf011027@linaro.org> <87r064c8r3.fsf@bootlin.com> <4660f0ea-b1d1-46c3-b5ea-efe549c9adf6@linaro.org> <871py3abt3.fsf@bootlin.com> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Fri, 20 Dec 2024 09:59:20 +0100 Message-ID: <87frmiwx07.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 X-GND-Sasl: miquel.raynal@bootlin.com >> >> TBH I'd be perfectly fine (and prefer) a dedicated member, because >> >> code clarity is IMO more important than memory footprint today. > > But that would have meant more code churn, because the default > should be the new method. Thus we'd have to change all the old > entries. Oh yeah, I feel it would be a patchset on its own. I'm just mentioning it if someone has the willingness some day. As for now, it is important to properly document how we use the fields.