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 X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 09F6DC4338F for ; Tue, 3 Aug 2021 06:25:11 +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 D2ADF60EBB for ; Tue, 3 Aug 2021 06:25:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D2ADF60EBB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com 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 BE63C82D88; Tue, 3 Aug 2021 08:25:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="U0R9R9ku"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 736BF82D94; Tue, 3 Aug 2021 08:25:05 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1AB5282D6F for ; Tue, 3 Aug 2021 08:25:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-ej1-x62d.google.com with SMTP id o5so34714402ejy.2 for ; Mon, 02 Aug 2021 23:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G8Ij3tvZA+6bJUlQNING5Ljwq0SSPGCFdcCygDbt/Lk=; b=U0R9R9kukNBm14eBfIFs74cxQi/C0sgWGB2ghNIScZVs6t/Ev9X0yajxOkxGSBbInG FGQSW3CWD61KkHK4VrBrgllNtcHNOAm2LHm/jmi7sLNHhkVA+d08Hf0mS2/qBi0DuExE ZQzu114z/W96tnw1sfZUyfuxBQ629asj4amvI= 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=G8Ij3tvZA+6bJUlQNING5Ljwq0SSPGCFdcCygDbt/Lk=; b=b4IHPm2TDnMiXnCl0YUOBoef1RHLlu/CCy9jheaIY4SNYSBy0RFQWAENWxsVXzumsz rKKETrmGfYtaoAgNzLvfcKzH9UKT7O/sOlYMUY7jAHltUlOJdKsODIWoRsJkSbsvTKM5 MTiROzPJ6ZzGWPpceu2aR01Ioyk5lZaFfExrvhzsSir6iAXu+M/hKllST0nboL6L4Hf2 Fx5IbUvxVDT2E40P/U/KGD6T807NGR8KEvWro3LaPrMv3beFbxvnqH0VYiNCyfdJShQf Y5AflUBR0bdvvPILO0HZZKb3X7/VHSHsC+HEBz8M4uI1L9enKNQHntCKB/3A+Owa8aL6 h4BA== X-Gm-Message-State: AOAM532UlVvManKlJEYpJAzvqNJ2KB1uu+BZKxoHqq5A/9va3Im9CxAa 3ql9MgAARcl4vZRaNUXKICau8lp5vqU5uaFGWaIItQ== X-Google-Smtp-Source: ABdhPJx38Vyl59LwCxZh9BFaSaqVDP7bjFMzc3WbIlGVtUGERaWa0AD5bf6T7xmeJgJjtM3Y9yE2mtskMrUhlEbYi/I= X-Received: by 2002:a17:906:368e:: with SMTP id a14mr19639376ejc.60.1627971901750; Mon, 02 Aug 2021 23:25:01 -0700 (PDT) MIME-Version: 1.0 References: <20210730072017.660331-1-bmeng.cn@gmail.com> In-Reply-To: <20210730072017.660331-1-bmeng.cn@gmail.com> From: Jagan Teki Date: Tue, 3 Aug 2021 11:54:50 +0530 Message-ID: Subject: Re: [PATCH v2 1/2] mtd: spi-nor: Respect flash's hwcaps in spi_nor_adjust_hwcaps() To: Bin Meng Cc: Vignesh Raghavendra , Pratyush Yadav , U-Boot-Denx Content-Type: text/plain; charset="UTF-8" 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 Fri, Jul 30, 2021 at 12:50 PM Bin Meng wrote: > > The smart spi_nor_adjust_hwcaps() does not respect the SPI flash's > hwcaps, and only looks to the controller on what can be supported. > > The flash's hwcaps needs to be AND'ed before checking. > > Fixes: 71025f013ccb ("mtd: spi-nor-core: Rework hwcaps selection") > Signed-off-by: Bin Meng > Reviewed-by: Pratyush Yadav > > --- Applied to u-boot-spi/master