Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1624236ybz; Sat, 2 May 2020 04:10:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJN/5teH00K5LVAls0mTZXOwwEUN4osk6PO49LOcXyNOM2dAD1lNUH3ClZNmMRykd+J8Atd X-Received: by 2002:a17:906:af67:: with SMTP id os7mr6989883ejb.182.1588417834106; Sat, 02 May 2020 04:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588417834; cv=none; d=google.com; s=arc-20160816; b=0jF9MDlr2kJPR3FLyh3q55RL4RVpm4KZ+jTvkDS0SDfmacTR+eFM5ORtZTZUZlzJtu nVeYZ1cWKYDhMepH029Gt5TseLRyIvEgBbMueDJaF5G6AXuc/KijTVYVTX7IAKTE4O6u BAk8WXxVyjJGDjSimaqOfTplc/Ruh4ZiyKYHeX5hwevl3xZCs7ipLT8B8+Q1yo+HHBHu uRUMXlUWr+cNupv09H/Fvq+JLh3ZcTY8tfcB0QSS+gK66s9jMEweIuydsEscDhqnxGKj ihvATW6cG9fGLIWdCKCBLHtnTEuefUwJaBK3HGREIUjvIRMQl1tsSx1ZSA1VagjAl+RT DZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DjQODkBNf8/RYh8t9ztjsCcxLdPW3ecYjs5ApkMHPaM=; b=Pi2toxJOzFw/M1EAWh8O395NJWpB4PTJw5FxgxGd9SuRjgWaJJ6NwRHcHOYnUS8SOn be0RGgZ+uDvAsPLZrdKddtMOT1nszN8XztvQgJw2Yj9D0mYZqBJU5N0aLeRZMTvDXUgS QvqXJErIQqB2+LxWMSvgFgELhc/uQrYA/ZK7cnp8Q/cYmltUi5xGqXnFKUkgPgdzLSWu S6UzP7c7uSkByI/695dUIaq09BWJxF2p1+/0aU0n0s0o5GnCw+haZEa4uiBr6MoemhGf 5RpUJEradSErsA54m6Xvr794tew/XvIuw82fdcSAOFxm3BCvOKaBevIVq+bgowp6EjRy sVow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FZipQEaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u30si4168139edi.376.2020.05.02.04.10.10; Sat, 02 May 2020 04:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FZipQEaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbgEBLFw (ORCPT + 99 others); Sat, 2 May 2020 07:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726741AbgEBLFw (ORCPT ); Sat, 2 May 2020 07:05:52 -0400 Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0678C061A0C; Sat, 2 May 2020 04:05:51 -0700 (PDT) Received: by mail-yb1-xb44.google.com with SMTP id v9so230688ybq.13; Sat, 02 May 2020 04:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DjQODkBNf8/RYh8t9ztjsCcxLdPW3ecYjs5ApkMHPaM=; b=FZipQEaZRKjDoNHBlJJ5shFekNyb9zW8JSACeCww1NiBj40ZbsvExD+UAYINDsC8eb CTqX2fZRipOPTyMrrIQWAiGZqkTeFS3dW5uudPoTjGIOWmekWKscQCmpvPf7/LAn1nSU 8nrRcMbY2mDGpLq3k2y15BzgsZimxvaC4ugPCZBdsjJMvpM5dnyOi4fOK35vLVTrW8cJ 4VWuJgJ9U6K+BRiaE/d5Q8cm3yuOnpz4Ru+39CWNqcHQmBieueUlDXMReg4P6CvmOexV ibfehUNH/+0s1N2WBjURaoOH4TZtsP6JLuo0BffR4NwA6ov3fBB4nP6EU9t27jcLcwvW ZhVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DjQODkBNf8/RYh8t9ztjsCcxLdPW3ecYjs5ApkMHPaM=; b=Eaxu6ZwWht7qOOuO3unE/icdxMoJ9nKKVPPqXpr9HpcKhj5iG/IXGtlLE+YiZytZWC aB6zdz0Ex7sboRJmqbWc3lC3yKYmh7lDHPtgFEkD6QCNhIHz+n5GmJPHarKWPFbNMMsG gT6edZDgtfAurwecuKhLGjOaiwPjjvWMFc7+wEwJareT+MJ/+grgQlqEsbFSJHLQ1SZS f+VSnQDLLwfjSMRmcDW5iKIVroreZtHNdApXh6wy2U/wDqCGCOYWhsDdgfPcqIIlK9GS CeYZWVSRWVIRdjOSE9MKX1/sojz9kRGpZJQ6Jz+0aImQ22ymg6i9IoXosSzrA/RpQSH/ raRw== X-Gm-Message-State: AGi0Pualnj9i8AXKIdlohjjAWMU2PjL2rVQEMHbhkCJH48F+ypOV6SVZ s7E+QqDGMxyCFXp21BFFGZddEDMlVGXCCxcZlSA= X-Received: by 2002:a25:d8d0:: with SMTP id p199mr13179303ybg.152.1588417551191; Sat, 02 May 2020 04:05:51 -0700 (PDT) MIME-Version: 1.0 References: <1588393643-31499-1-git-send-email-bmeng.cn@gmail.com> In-Reply-To: From: Bin Meng Date: Sat, 2 May 2020 19:05:40 +0800 Message-ID: Subject: Re: [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig To: Geert Uytterhoeven Cc: Linux-sh list , Linux Kernel Mailing List , Bin Meng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Sat, May 2, 2020 at 6:09 PM Geert Uytterhoeven wrote: > > Hi Bin, > > On Sat, May 2, 2020 at 6:27 AM Bin Meng wrote: > > From: Bin Meng > > > > Drop CONFIG_MTD_M25P80 that was removed in > > commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") > > > > Signed-off-by: Bin Meng > > Thanks for your patch! > > Blindly removing config options from defconfig files that haven't > received much love for a while is IMHO not such a good idea, as it makes > it harder to see what the affected platform needs, or needed. > > > --- a/arch/sh/configs/sh7757lcr_defconfig > > +++ b/arch/sh/configs/sh7757lcr_defconfig > > @@ -36,7 +36,6 @@ CONFIG_IPV6=y > > # CONFIG_FW_LOADER is not set > > CONFIG_MTD=y > > CONFIG_MTD_BLOCK=y > > -CONFIG_MTD_M25P80=y > > CONFIG_BLK_DEV_RAM=y > > CONFIG_SCSI=y > > CONFIG_BLK_DEV_SD=y > > MTD_SPI_NOR became a dependency for MTD_M25P80 since commit > 03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI nor > framework") and commit e43b20619bdb6c851dd7b49cbd15e52875a785d4 ("mtd: > spi-nor: shorten Kconfig naming"). Hence CONFIG_MTD_SPI_NOR=y should be > added to avoid breaking the platform's SPI FLASH support. > > Just removing CONFIG_MTD_M25P80=y from the defconfig makes this less > visible for someone who wants to build a kernel for this platform using > "make sh7757lcr_defconfig": it can no longer be seen that > CONFIG_MTD_M25P80=y won't be present in the resulting .config file. > Thank you for the review! Sorry I missed that. > I think the platform would be better served with a proper refresh of the > defconfig file. I am not sure if doing a defconfig refresh should be a separate patch. I felt mixing the refresh with the real changes makes the code review a little bit hard. I just sent v2 without the refresh. Please let me know if it is okay. Regards, Bin