Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3526702imu; Fri, 30 Nov 2018 01:38:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/UD5L9I9eJD8km5S898gRVG24HZIPDsjuQ4WfhO/s/uf75+OLQD/Yea2H6wNdbeu34iMcmi X-Received: by 2002:a62:b15:: with SMTP id t21mr5100726pfi.136.1543570735458; Fri, 30 Nov 2018 01:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543570735; cv=none; d=google.com; s=arc-20160816; b=K91yfiKwkkDYDgc45cLdf4+mGlY7UCO9EqMNiI/uW5oWDw0rg0Xz9Sx96YqTzjkB5B OZ8jRmKH41n+3Gc1bUF+y/Dnw1kPnHCK+9wpgA71UGDlr/eTNLeeREYSCDZx9uXhgUdf u86eoZJUrt9tZVxVZIBUmghb8TeG0EYOoCKjccAkviNS+ReEThU1zoFLAmFLtJTMcM0V Ntvif+12K/F2zm3wErcV2dkQ9drx/KHA4v4CtK9DEKQqcEEXB/Ig3cn6SG3W/PGwo80u 4NjHupX/F+mDDhIRtJgDjac75mouFW6Q8nUbOr02ZwseiFSgNl+MKkHZ3LJpuM4zOtJM dzgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from; bh=HPCxtJUCwRIyWSMyQyVsLzCduEIXooW4vfYgEW8xk8w=; b=D+T6xMU9NjZz353O6t9u4WuX8MfxlOSKK04sn0niouwERmn+nuCGs8668MxFJ50TaK kH75uorCRBvPBSP1wu0+ZCtu8i1L09ldbEwCtHemOo8eZMwUTVOGFcvaVtkyhJrxUkc5 9xVsEjF6XzbFXavOVKIC/Rqveu7dWvP2MHEYn0gTurfaaIFUAxpUSZOmOOYDVHGiVk68 1+siIDVdJqk0uxYHjiHia232vIalQIKU8wfi690Y+ru6wuYzKkPvx+ElLndrHu6OXRHy BojvlQG2t1fjomQHVS8ef3/5+30jNBBGH2brJa7qjKL6HBCeyjwVuKgo0QY5bo2HWBdX sV7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si4376258pgb.219.2018.11.30.01.38.41; Fri, 30 Nov 2018 01:38:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbeK3Uqg (ORCPT + 99 others); Fri, 30 Nov 2018 15:46:36 -0500 Received: from mail.bootlin.com ([62.4.15.54]:47567 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbeK3Uqf (ORCPT ); Fri, 30 Nov 2018 15:46:35 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id CE7BA20CFB; Fri, 30 Nov 2018 10:37:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-63-158.w90-88.abo.wanadoo.fr [90.88.18.158]) by mail.bootlin.com (Postfix) with ESMTPSA id 7953F20787; Fri, 30 Nov 2018 10:37:51 +0100 (CET) From: Boris Brezillon To: Tudor.Ambarus@microchip.com, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, richard@nod.at Cc: alexander.sverdlin@nokia.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [v2] mtd: spi-nor: fix erase_type array to indicate current map conf Date: Fri, 30 Nov 2018 10:37:51 +0100 Message-Id: <20181130093751.5553-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: dc92843159a7d01e37cf68750745333e944a9e55 In-Reply-To: <20181126124531.17548-1-tudor.ambarus@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-11-26 at 12:45:44 UTC, wrote: > From: Tudor Ambarus > > BFPT advertises all the erase types supported by all the possible > map configurations. Mask out the erase types that are not supported > by the current map configuration. > > Backward compatibility test done on sst26vf064b. > > Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table") > Reported-by: Alexander Sverdlin > Signed-off-by: Tudor Ambarus > Tested-by: Alexander Sverdlin Applied to http://git.infradead.org/linux-mtd.git master, thanks. Boris