Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8919AC4338F for ; Wed, 11 Aug 2021 08:34:27 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E06D760527 for ; Wed, 11 Aug 2021 08:34:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E06D760527 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 50E4682D85; Wed, 11 Aug 2021 10:34:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1628670865; bh=fGWqQPamBdE4G2rI6JfGnhWq/h3LNjoE0y8E0d4Lhlc=; h=Subject:To:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XFl/o/E7Qx00g6Z4ZMnAT+v9yncA/oLEVA6iSoQSLbrqk8obpHe2m+SM7rOYUrU0Y OHYbXDf0x+pzZ9eKHuO79/+JdKyrMnGSHm+KxsG90YXxLvCCBD/2RW7FmvtruZpCw9 ytCf7EfJ0f/qNP+QrdK0yehOs7D0j2eugo5HK7F7wJp19K0ML8tWOsKfj1kUFrrn0e 0JnQf6tm9VlowwNg3GJAQE4x1Cl821yK/AsUpWsxrWyoDGB7EmMP+80aJOnWJKtOtJ 3gpvQ2Iq2yE302GNvtiuPPHq5N8Dczp2O1bgDxv0kiImIaP4Frb3us4HtEhEJkxskC LCNYZZWbpR2hQ== Received: by phobos.denx.de (Postfix, from userid 109) id C25C482D91; Wed, 11 Aug 2021 10:34:23 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0715582D81 for ; Wed, 11 Aug 2021 10:34:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4Gl35S6xc4zQjBM; Wed, 11 Aug 2021 10:34:20 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 0euSMJfsWReq; Wed, 11 Aug 2021 10:34:18 +0200 (CEST) Subject: Re: [PATCH 2/3] flash.h: Remove CONFIG_SYS_FLASH_CFI from flash_info_t To: Bin Meng , u-boot@lists.denx.de References: <20210807050002.32723-1-bmeng.cn@gmail.com> <20210807050002.32723-2-bmeng.cn@gmail.com> From: Stefan Roese Message-ID: Date: Wed, 11 Aug 2021 10:34:17 +0200 MIME-Version: 1.0 In-Reply-To: <20210807050002.32723-2-bmeng.cn@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3174018B8 X-Rspamd-UID: b07ce3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 07.08.21 07:00, Bin Meng wrote: > Those embers wrapped with CONFIG_SYS_FLASH_CFI in struct flash_info_t > are unconditionally used in the cfi_flash.c driver. > > Drop the #ifdefs in the definition of flash_info_t. > > Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Thanks, Stefan > --- > > include/flash.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/flash.h b/include/flash.h > index 42b18a6047..f3959f5012 100644 > --- a/include/flash.h > +++ b/include/flash.h > @@ -21,7 +21,6 @@ typedef struct { > ulong flash_id; /* combined device & manufacturer code */ > ulong start[CONFIG_SYS_MAX_FLASH_SECT]; /* virtual sector start address */ > uchar protect[CONFIG_SYS_MAX_FLASH_SECT]; /* sector protection status */ > -#ifdef CONFIG_SYS_FLASH_CFI > uchar portwidth; /* the width of the port */ > uchar chipwidth; /* the width of the chip */ > uchar chip_lsb; /* extra Least Significant Bit in the */ > @@ -45,7 +44,6 @@ typedef struct { > ulong addr_unlock2; /* unlock address 2 for AMD flash roms */ > uchar sr_supported; /* status register supported */ > const char *name; /* human-readable name */ > -#endif > #ifdef CONFIG_DM_MTD > struct mtd_info *mtd; > #endif > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de