Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8021584imu; Thu, 15 Nov 2018 05:27:04 -0800 (PST) X-Google-Smtp-Source: AJdET5cV36JdLLmsJXKy59KaHA3mAzvhBSgUJcgFkGlPdFZKSUVYr+kJd3BKABWVBPm8Y/6SiEEE X-Received: by 2002:a17:902:443:: with SMTP id 61-v6mr6182128ple.216.1542288424108; Thu, 15 Nov 2018 05:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542288424; cv=none; d=google.com; s=arc-20160816; b=yKlr0xlyNT6qP4b3KFjd4Q7g3oqJ5AaByacsBPCBEVTQnqDUf/X3281yvKhzhbK2VY UyCU13P/DtbQrKkkqe4g4PdRY2sAqD1+EIIIdsqwXbCxfoxKFNed7LvPpp+YhjebbtVr ZqZjBvG3IszKLB1nSiUBfrHI4mdGxb91gXcSurjOqf2IX6A1yTLxjtZyveUpL/CACV9k Z4w761TlCFC4OtZFplR/EL5e1ZQdUyybjA6WA52iuAz8AeFJEqhR46ESSiw6niRA8xy9 bUIT3inP605tzwuQik+32owjAnNYLuuufuHbEvT94r3u9ffpiT9aJKXaczXvSqAqvnuu eH9A== 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=Ps0saP/ew2vp+mB5n/6s3sQoZPHvk9GkYi95r7CdXFA=; b=bv5B/92fPJ97BDdxC37q4zejhPoMB31OUpuiGAmAb5Th/y7VdD0RU+kGGiaDfcAZmB EQ2pgqzMLcpMozBrsOLoz9w4Z8Zj9XTyTGW1wCxgkBz5iHh14ZjXoaikjIGPsWLTDB07 FBBRdNZ6f+lqv5y1ADiQYxtx83LuVhuT52wlKBy8efXqkDESr8pEq3pOm3bXd6Q20Ddm VN7reGDaFVurKqJEvnu433xppgaXsa8/908bh6GmFh3diBL/ezoSEWoxEzmwyGM3+erg CCQZ497vBRpN4telMbj8nV+TNX4CY15NYvtRcCwWCEQVokCI9eU78qO/yqCF9bkRaPAV 398g== 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 y6si3947706pgb.516.2018.11.15.05.26.49; Thu, 15 Nov 2018 05:27:04 -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 S2388411AbeKOXdX (ORCPT + 99 others); Thu, 15 Nov 2018 18:33:23 -0500 Received: from mail.bootlin.com ([62.4.15.54]:40661 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbeKOXdX (ORCPT ); Thu, 15 Nov 2018 18:33:23 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id B503E20752; Thu, 15 Nov 2018 14:25:31 +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-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 6464120510; Thu, 15 Nov 2018 14:25:31 +0100 (CET) From: Boris Brezillon To: Tudor.Ambarus@microchip.com, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at Cc: Boris Brezillon , yogeshnarayan.gaur@nxp.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, cyrille.pitchen@wedev4u.fr Subject: Re: [v2,1/5] mtd: spi-nor: don't drop sfdp data if optional parsers fail Date: Thu, 15 Nov 2018 14:25:31 +0100 Message-Id: <20181115132531.15649-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: cd5e6d79384eb2dd47de6cb9569150053d4a6803 In-Reply-To: <20181109165644.30534-2-tudor.ambarus@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-11-09 at 16:56:48 UTC, wrote: > JESD216C states that just the Basic Flash Parameter Table is mandatory. > Already defined (or future) additional parameter headers and tables are > optional. > > Don't drop already collected sfdp data in case an optional table > parser fails. In case of failing, each optional parser is responsible > to roll back to the previously known spi_nor data. > > Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table") > Reported-by: Yogesh Gaur > Suggested-by: Boris Brezillon > Signed-off-by: Tudor Ambarus Applied to http://git.infradead.org/linux-mtd.git mtd/fixes, thanks. Boris