From patchwork Wed Jan 16 17:51:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1026069 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Gc5Y1EPE"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="06DrRn1j"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43fvtL3cRZz9sCh for ; Thu, 17 Jan 2019 04:52:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=oXuKgjaLA6Sh8HXlevKiS/ps63uuNO+GmDKdw1Cx21Y=; b=Gc5Y1EPEoY5qgCaVQOkypV4EbL fee1XcOthsSv4uq5ogX9wzJ0oVge2dJZ8P/u1fR+Bd1rgsWWBrLik7sz0ykYqiXFBnBy89x1sAvDs aOVwQyWhwE1x34frNIxqimvLWER2kXM1tqiNHythak7Sr+9n1XXCIN10Y5PqBcaC4zB4jPcumdYGf 4z8bJaiBTgNZgOmW5FItghD3UVi/wSkJa3vVIeld8QtXrwzekY0ldb5DRpUh2TahzNR82q9SWO14D u5aiPHgByXo28/DWf+OUM5NXA/cKzg4W6T1N5/kJDUX8M+76SxHdTtSCLD87sU1U5hIVcNtIY6I1N fm1IzhFA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjpMU-00010h-12; Wed, 16 Jan 2019 17:52:22 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjpMR-00010E-9m for linux-mtd@lists.infradead.org; Wed, 16 Jan 2019 17:52:20 +0000 Received: by mail-lf1-x144.google.com with SMTP id u18so5572630lff.10 for ; Wed, 16 Jan 2019 09:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gh/FhCE0RSvU0c22zBWuQVPjkuBQ71FiyZE7kIb+zVc=; b=06DrRn1js7mIsNRXvyRThRYJcdt4YjeIz0R3sh2OoBQ0HNrT1UPdov6XAR+MakvdNb 8qWg0cw12AK5Q70k6iobgUbsNIxLeX18JZlQqdD2sILG7B1T5jjKTFHcyazdAREcXzyG QQggnL2SwI+21WJvV+s0N+IIBA9QsbnmImkzxvkYoSUMG8QIg2sG0R2Hq1IphlSyw9fb zk8Ca8XRU7iFQbVi0qSdk6tzlSlxh6gpjckkwMeDuDse/Cc5zaQJzyJ8j/Cqxzpuwtvf Gl6bOboqXpAtxYYtF7gaRvyD5tuEcxPeLNQt0Q5hRico6GdnYaGlxfqyq5Lzed2vNHUa kJ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=gh/FhCE0RSvU0c22zBWuQVPjkuBQ71FiyZE7kIb+zVc=; b=PZwvMELzSsGRVxDgvLHL6JytF+Q90hy3DDXRW/0UtKvkLKY0gvW9N9E9brcqv6eT1Y R8sgrMpuXDNnc1i5AOztpfbMREhRrimNYJYnVIWeCJXvQdQTqFLiKFj+z2IQGreec63V Wde5Qq0YeXsRpF/X6fU44Q3z3213AnuH8AeZ/iAkWXB56+23fvVDu1WDuSbmPfaWluQh QVbBW9V9VJWieWn+csz3BZLa+ufLIjo8FeY9EFMNzV5UJwN+iZ22PsS1zH8f8/S8VN0P QU//n7y+WaefVgIFDd619+9zT7vXMwguAtT/tr6hI6DUdgZkDMtYY4aJI5rGtMZPQLay rblw== X-Gm-Message-State: AJcUuke8WNmy26VN9VlEXdyZYcBOLpHqDg5Ha7AU/wlW5gPq+lB58ExC wek5G1V6zTjgBhaKUlQXzPcxvHO7XtU= X-Google-Smtp-Source: ALg8bN4niVnplxiiRo5wBOiDtp21A/j6V77t8zb+u22HFlmCESUchp6/BzqhraMOPrbnk7bZXSHz3A== X-Received: by 2002:a19:2584:: with SMTP id l126mr7527089lfl.69.1547661137320; Wed, 16 Jan 2019 09:52:17 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.80.123]) by smtp.gmail.com with ESMTPSA id j76-v6sm1164723ljb.12.2019.01.16.09.52.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 09:52:05 -0800 (PST) Subject: [PATCH 1/2] mtd: spi-nor: add Spansion S25FS512S ID From: Sergei Shtylyov To: Marek Vasut , Tudor Ambarus , David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger , linux-mtd@lists.infradead.org References: <610761cf-5a19-c182-07d8-8d118ca20035@cogentembedded.com> Organization: Cogent Embedded Message-ID: <650c47f3-8657-0fc9-81bd-63974bbe06a5@cogentembedded.com> Date: Wed, 16 Jan 2019 20:51:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <610761cf-5a19-c182-07d8-8d118ca20035@cogentembedded.com> Content-Language: en-MW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190116_095219_392478_D23F4505 X-CRM114-Status: GOOD ( 14.27 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:144 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Spansion S25FS512S flash is currently misdetected as S25FL512S since the latter uses 5-byte JEDEC ID, while the 6th ID byte (family ID) is different on those chips. Add the 6-byte S25FS512S ID before S25FL512S ID in order not to break the existing S25FS512S users. Signed-off-by: Sergei Shtylyov Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) Index: linux-mtd/drivers/mtd/spi-nor/spi-nor.c =================================================================== --- linux-mtd.orig/drivers/mtd/spi-nor/spi-nor.c +++ linux-mtd/drivers/mtd/spi-nor/spi-nor.c @@ -1887,6 +1887,7 @@ static const struct flash_info spi_nor_i { "s25sl064p", INFO(0x010216, 0x4d00, 64 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) }, { "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, + { "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, { "s25fl512s", INFO(0x010220, 0x4d00, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, { "s70fl01gs", INFO(0x010221, 0x4d00, 256 * 1024, 256, 0) }, { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) }, From patchwork Wed Jan 16 17:53:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1026072 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lJ7za96V"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="CoOp0aCD"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43fvvt4sTKz9sCh for ; Thu, 17 Jan 2019 04:53:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pTobZAUJqXILic3gWbsXjWpA1oMiz9Naa9+/VrVuiek=; b=lJ7za96VD2zvN6siyeasHubZIY 8bSs+MYB0AW2vz2/4mQA50HIlI/McdI2QbebcJ9AUJJCwpNN7358paRD1bkaL7f63HcPb+PdbhqEA udJutL1ZQbSdlSK3noR+qcyi/UZQkC7RoVztY8aWK/e6cQ8WYc6fjgtwAMBM+gTW+w/q7TZCZRWah LeYGJHlIDFmfcwSLe4qWjp9Pw6rws15t9/GqXlFeCd9YH8wO1BXt9SGgbwm4naXDDMdOIqywDXDiM bezFUIb9OmJUoU6jVvH5KetGU49eNYGq5z3EOPil5vTk3UQbrAqRZDJCclHYMajrXSd5ZnhEC/5Fm iIdqMrvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjpNl-0001IA-3k; Wed, 16 Jan 2019 17:53:41 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjpNi-0001Hh-R5 for linux-mtd@lists.infradead.org; Wed, 16 Jan 2019 17:53:40 +0000 Received: by mail-lj1-x241.google.com with SMTP id v1-v6so6238848ljd.0 for ; Wed, 16 Jan 2019 09:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gTdjYRIggVIiZt3Y510FYCc4dllPeaXIQBHK1/C5kdU=; b=CoOp0aCDX7BU3xu4JX/8gitaYGnThAsN+yFfMn2joC4UviUS2Ji9u8hVQsdMc+IOkh TDvB0EsKHnZlGNslKzy9jbHnGfRWUFfARvf65EHtS93bhz7JWaKvLoAzpt+j38FIaYi9 kVjVhY36DjMbTHSz6/v7/bnll0XN5uxvT3m5XVRjrNz7D/lmXS8r4xG5IkAWD4l5eFv6 sF9KVxmWU78TdhGc7rT33OHYOGqcKGNnpHbaqZWshn21/7NS5x/LZnP9WlQEO295+KJb VbSNOnlZObTbyi/MXe9DDGyiKztfskLU5vxxHrV5iYn+QmSue5XAQB2TnFcU/Ws6Qlt5 Jmiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=gTdjYRIggVIiZt3Y510FYCc4dllPeaXIQBHK1/C5kdU=; b=eRoZ+zulbWgL1kWpMpmFVDAfSSjUuyhSELeQsQx0LXYF+AZGJhdrUrRDMfbaUxfECG 7Z/TnDBtvVChG6W4b/965Pa7adBJzNz0+1/g4GXlX9+jfxAGNxtltxegBW5GGYZGRvgD x+pCCcC2EcpQ94AxMEbF2lgIb6VZx4JclvafS/53ddwQwqSLGiZpX8cS6zP/RjGPjEgi QrgM3XVV5p8p8du5ulttAs99tHVPBgVQeWaJ9Jr27kGGtQJHWm5p9wxQEOUoiWlqMAX7 csdH4KFSV4jEt3GivV7UVWsQ3ZxJDI31Mq2ben+JroQne6uaMMd8AuSAyC+Pk2kzNLcw gLLQ== X-Gm-Message-State: AJcUukc/njvp547ZjoHXaGWQSWzitXll1wM907ZqV//rcKnzEwaXH8c/ /eYhUZb3DGX1tNOGyDyfj/sMEJFEiyg= X-Google-Smtp-Source: ALg8bN5yqGYS6yy4Sz/cBq8TqKqdVfSfdsl2ok/Z2C8/4nOcz2D0rrHx/UvNhg4r+En2CpAlk0y8uw== X-Received: by 2002:a2e:9059:: with SMTP id n25-v6mr7545016ljg.155.1547661216321; Wed, 16 Jan 2019 09:53:36 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.80.123]) by smtp.gmail.com with ESMTPSA id c203sm1297198lfe.95.2019.01.16.09.53.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 09:53:28 -0800 (PST) Subject: [PATCH 2/2] mtd: spi-nor: refine Spansion S25FL512S ID From: Sergei Shtylyov To: Marek Vasut , Tudor Ambarus , David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger , linux-mtd@lists.infradead.org References: <610761cf-5a19-c182-07d8-8d118ca20035@cogentembedded.com> Organization: Cogent Embedded Message-ID: <09a2508e-f63e-4804-bf11-76832faae1f5@cogentembedded.com> Date: Wed, 16 Jan 2019 20:53:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <610761cf-5a19-c182-07d8-8d118ca20035@cogentembedded.com> Content-Language: en-MW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190116_095338_880370_C59CD0EE X-CRM114-Status: GOOD ( 15.46 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Spansion S25FL512S ID is erroneously using 5-byte JEDEC ID, while the chip family ID is stored in the 6th byte. Due to using only 5-byte ID, it's also covering S25FS512S and now that we have added 6-byte ID for that chip, we can convert S25FL512S to using a proper 6-byte ID as well... Signed-off-by: Sergei Shtylyov Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/spi-nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-mtd/drivers/mtd/spi-nor/spi-nor.c =================================================================== --- linux-mtd.orig/drivers/mtd/spi-nor/spi-nor.c +++ linux-mtd/drivers/mtd/spi-nor/spi-nor.c @@ -1887,8 +1887,8 @@ static const struct flash_info spi_nor_i { "s25sl064p", INFO(0x010216, 0x4d00, 64 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) }, { "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, + { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, { "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, - { "s25fl512s", INFO(0x010220, 0x4d00, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, { "s70fl01gs", INFO(0x010221, 0x4d00, 256 * 1024, 256, 0) }, { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) }, { "s25sl12801", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) },