From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81E80EB8FAD for ; Wed, 6 Sep 2023 07:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbjIFHEQ (ORCPT ); Wed, 6 Sep 2023 03:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjIFHEI (ORCPT ); Wed, 6 Sep 2023 03:04:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79AC7CFA for ; Wed, 6 Sep 2023 00:04:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86063C433C8; Wed, 6 Sep 2023 07:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693983845; bh=iaLhRtKyGtozPCEIVwdSztCExtfwyqEGcqw5FKdYv6Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oNhSpxqafGb4vd0yUbC3mBK4LGciSxdUG5gcuZJss0y5MjAgjGMmQ3RB7IH8w3nHh A8AJpDjmIfu9ShvG5c82K7BuqJbyuT33I8RctABtg/NV9hrQf7Yqz88hVHFdfF6zJR 8yGgvgriBec4BVQEPaez4PcEIKYiOwT7er5szstNDCPnXvN+PUjeV09QqNbTjrIjR3 kTWzm/ZGilVF63Lc5lGi44yhxrqFstusSKzxACo1GPbmsw94gdpgEhl0biiCdq6FwM Kpf47Mo2b8o4u9L0UncOafjLLnHznTdXc/SODWeUYd2Eu8ERXhLSETUZH+VEyXphP3 l506S3dEU5fNw== MIME-Version: 1.0 Date: Wed, 06 Sep 2023 09:04:01 +0200 From: Michael Walle To: Tudor Ambarus Cc: Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v2 12/41] mtd: spi-nor: introduce (temporary) INFO0() In-Reply-To: References: <20230807-mtd-flash-info-db-rework-v2-0-291a0f39f8d8@kernel.org> <20230807-mtd-flash-info-db-rework-v2-12-291a0f39f8d8@kernel.org> Message-ID: <55b60d1204d3550dc5ab17dbbec523b8@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2023-09-06 08:04, schrieb Tudor Ambarus: > On 8/22/23 08:09, Michael Walle wrote: >> The id will be converted to an own structure. To differentiate between >> flashes with and without IDs, introduce a temporary macro INFO0() and > > why do we need to differentiate between them? The INFOn() macros will have a pointer to the SNOR_ID() whereas INFO0() doesn't have a pointer. Before, it didn't really matter because we tested for the id_len, but now we'll test the pointer (see next patch). -michael