Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3721801ybz; Mon, 20 Apr 2020 08:16:22 -0700 (PDT) X-Google-Smtp-Source: APiQypLPv7ajGTTE77bKrO1SsZ94RKqZgqVKvtd4i4FjZeadS4YRaNcV1XJKXKgtk3Aa5FHURmll X-Received: by 2002:a50:e3cb:: with SMTP id c11mr6683819edm.105.1587395782048; Mon, 20 Apr 2020 08:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587395782; cv=none; d=google.com; s=arc-20160816; b=HxBQpVNcgzcOF98djfIr7SwUevqbZUeo8TktBWuWPawTOwljQ/eIy4H6lHsp2bXOvv oyE/3VG/IghFEGYu5H5jPgIHGaO6sHTG3gs+xbmdYqUenVLe1MYh0JME+ANEIHLeO6ib AAtjPbmhtC7yVodlw5lYU88EUTlcSmyBAyK8Z45UQz63hd0yiALbFEIeVfqSXbUE7dGt k6UrvXCU2VrwXo4pd86fpBXWLX9bVd2lbA6bnLUfdObhln5oCh6U4l8Cjy5bQ2SXe6Ex t+rMgVKeSQgH2qOG77IsGB0bztke4n5X7i2rshu7k4bYWzJc8m9EJmgdgoyuJ/Ec7QMH EXtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=Dfr/H0/KKckynQqQ3LHUdupKOQeS/R7BICABCIhuXb8=; b=HPdgfwilE1JpN2JUewKhbll4wcT7mOe83ye40wYAUi7JJTQmjvehYcP4AlOY6MOsIe Q0dljOvhV6DSLsOudcyNve8WWhCSHVdfcm8upwio0AFey2M0wW6PxQbPIQ+EvugGPMUz 1A19Nk8c2irK6RJ9bAOxBSkGdwPsY3GYl3pGmERMwovNe+AeEA306yTjqSAkK2l36DXf f5lQr/8jA/kF2j4ouzbpqQfZr6Ai6X1jQSK8hAxOuH3oGKnhTAcFw1hdm6kYPwub3isx RoHPl3EgBr3XS2svDWzsPlKYtRzO+UZsFAUNs13A/fDJgqBJjHvaaTgy11zdCdJSJD6x XQQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc19si785728edb.111.2020.04.20.08.15.59; Mon, 20 Apr 2020 08:16:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgDTOuE convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 Apr 2020 10:50:04 -0400 Received: from zimbra2.kalray.eu ([92.103.151.219]:50426 "EHLO zimbra2.kalray.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgDTOuE (ORCPT ); Mon, 20 Apr 2020 10:50:04 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id D316027E0867; Mon, 20 Apr 2020 16:50:02 +0200 (CEST) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HWyQpPAO5Tvb; Mon, 20 Apr 2020 16:50:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 6B91027E0879; Mon, 20 Apr 2020 16:50:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra2.kalray.eu Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id m5gn7ZtFqnkJ; Mon, 20 Apr 2020 16:50:02 +0200 (CEST) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 4EB7227E0868; Mon, 20 Apr 2020 16:50:02 +0200 (CEST) Date: Mon, 20 Apr 2020 16:50:02 +0200 (CEST) From: =?utf-8?Q?Cl=C3=A9ment?= Leger To: Tudor Ambarus Cc: Miquel Raynal , richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel Message-ID: <1734428336.16421904.1587394202163.JavaMail.zimbra@kalray.eu> In-Reply-To: <1950407.5XCTmqoEVg@192.168.0.120> References: <20200417160839.25880-1-cleger@kalray.eu> <1950407.5XCTmqoEVg@192.168.0.120> Subject: Re: [PATCH] mtd: spi-nor: Add support for is25lp01g MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [192.168.40.202] X-Mailer: Zimbra 8.8.15_GA_3895 (ZimbraWebClient - GC81 (Linux)/8.8.15_GA_3895) Thread-Topic: spi-nor: Add support for is25lp01g Thread-Index: AQHWFw0/tWJ4ISRUwk6rGADNBybaDI6HnvBZ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tudor, ----- On 20 Apr, 2020, at 14:14, Tudor Ambarus Tudor.Ambarus@microchip.com wrote: > Hi, Clement, > > On Friday, April 17, 2020 7:08:39 PM EEST Clement Leger wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the >> content is safe >> >> Update the issi_parts table for is25lp01g (128MB) device from ISSI. >> Tested on Kalray K200 board. >> >> Signed-off-by: Clement Leger >> --- >> drivers/mtd/spi-nor/issi.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c >> index ffcb60e54a80..c3c3438e3d08 100644 >> --- a/drivers/mtd/spi-nor/issi.c >> +++ b/drivers/mtd/spi-nor/issi.c >> @@ -49,6 +49,8 @@ static const struct flash_info issi_parts[] = { >> SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ >> | SPI_NOR_4B_OPCODES) >> .fixups = &is25lp256_fixups }, >> + { "is25lp01g", INFO(0x9d601b, 0, 64 * 1024, 2048, > > There is a "K" flavor of this flash which has 512 Byte Page size with 256 KB > Block size. While the page size can be determined by parsing SFDP, I think we > will have some problems with sector_size because as of now, the sector_size is > always set to 64KB. An incorrect sector_size will affect erases and locking. Thanks, I did not noticed that ! If I understand, this will require to modify the core to handle sector size the same way as page_size and probably add a fixup to detect the "K" options from SFDP ? This is probably more changes than I can handle, and you can probably drop this patch since not really functional for "K" type flash. But thanks for noticing it ! Clément > > Cheers, > ta