Received: by 10.223.164.202 with SMTP id h10csp1181492wrb; Fri, 17 Nov 2017 15:37:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMbCNGtdE6BuN4PBW8j4m7BK9e0GG6N0j/MLSHPXCKgFxvr6DnmmBzko2+3b6ukZSMDc8TcG X-Received: by 10.99.43.71 with SMTP id r68mr6717359pgr.348.1510961868734; Fri, 17 Nov 2017 15:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510961868; cv=none; d=google.com; s=arc-20160816; b=L0bjIfK8lUgf9xq2QzssTSBBn+TpuizLr7staCHCAa5SoEVM8SYofCyNWD+py6KUMU O9wOz9TzS5FP/LtWH1vPh9muoDjcKG2UUTdEgTIhBBDHcbdcm7gfca/R8He73Wj1udzV qsdfgBymzMvAkXK+X1lzet7bmYpzJDsQyhNJzsZIPLK+S1lmihQRoRzxwpDf4rn6ipPx SR4OFGEqT6/8JihnQTyagzs5GrCLfLsFYVq3CnLZmv531qzx5BIOOyZmg8qfGOCtQk9v cQr7YX/nUHjkgJX03lA7vGzqZgBmoKJgxyMbpSD6iT5lAW0Fk5XPYgrsgBjGetQG3L3u 0o2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=jBea/yLX6cWLKcA8zSdlG/zMYsvplsVjuZhGaL3bDMA=; b=KdD0lXdI6NMP+qJP61M1H3Rw+0dW3SfFA1CdkN2Pkzt8wMel9DUpWCQ/gcZieJ8sHS UQZEtco5lQ+C+4wt6W+u+aGOOUEZJtWqVNAlKBtyqnJ5BGzP21gHpDb4nIJDwNvYcm4U Ih4pPTOy13DyOfLVftWLcBg8vWTriD8YCAVp0t9MCi27Pl3+lLTbZywICiuG3S5fKgMy FjXSwo4tLrmCVT4MED5Fq1+ZAj6EQa2wFSubfY9LRElHUTbaapTTqvWehuCRV42FfTt3 0AkTeG2+1U0sI8QD4BtkT9cDSs1z3KxG2EROWU1Gi6uwr78ndCxCZQ57WtEg1tIhE0UZ v0ww== 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 e26si3967180pfj.1.2017.11.17.15.37.35; Fri, 17 Nov 2017 15:37:48 -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 S966214AbdKQRgt (ORCPT + 93 others); Fri, 17 Nov 2017 12:36:49 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:26018 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965839AbdKQRgn (ORCPT ); Fri, 17 Nov 2017 12:36:43 -0500 Received: from mountainer.wedev4u.int (unknown [82.232.94.13]) by smtp3-g21.free.fr (Postfix) with ESMTP id 76B6313F88E; Fri, 17 Nov 2017 18:36:40 +0100 (CET) Subject: Re: [PATCH v2] dt-bindings: mtd: Add sst25vf016b to the list of supported chip names To: Fabrizio Castro , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, Chris Paterson , linux-kernel@vger.kernel.org, Biju Das , linux-mtd@lists.infradead.org References: <1505118928-3987-1-git-send-email-fabrizio.castro@bp.renesas.com> <1508853032-25229-1-git-send-email-fabrizio.castro@bp.renesas.com> From: Cyrille Pitchen Message-ID: <658ceb2b-5d2b-9349-f140-27858459e5a8@wedev4u.fr> Date: Fri, 17 Nov 2017 18:36:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1508853032-25229-1-git-send-email-fabrizio.castro@bp.renesas.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrizio, sorry but I won't apply this patch. New values for the 'compatible' DT properties should only be added for memory parts not supporting the JEDEC READ ID (0x9F) command. SST25 memories do support this command hence should use the "jedec,spi-nor" value alone. For historical reasons, some DT nodes set their 'compatible' string to something like ",", "jedec,spi-nor". It should work as expected in most case however I discourage from doing so in new device trees because it may have some side effects especially when the m25p80.c driver is used between the spi-nor.c driver and the SPI controller driver. It's all about setting the 2nd parameter of spi_nor_scan(), the 'name' parameter, as NULL when possible. This parameter should be set to a non NULL value only for memories not supporting the JEDEC READ ID op code (0x9F). Best regards, Cyrille Le 24/10/2017 à 15:50, Fabrizio Castro a écrit : > There are a few DT files that make use of sst25vf016b in their > compatible strings, and the driver supports this chip already. > This patch improves the documentation and therefore the result > of ./scripts/checkpatch.pl. > > Signed-off-by: Fabrizio Castro > Signed-off-by: Chris Paterson > Acked-by: Rob Herring > Acked-by: Geert Uytterhoeven > --- > Thank you Rob, thank you Geert, and sorry for the delay on this one. > Here is v2. > > Changes in v2: > * fixed subject prefix > * added changelog > > Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt > index 4cab5d8..bf56d77 100644 > --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt > +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt > @@ -31,6 +31,7 @@ Required properties: > s25sl12801 > s25fl008k > s25fl064k > + sst25vf016b > sst25vf040b > sst25wf040b > m25p40 > From 1584347812162866156@xxx Fri Nov 17 20:50:16 +0000 2017 X-GM-THRID: 1582147125269257337 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread