From patchwork Tue Feb 14 15:35:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mark.marshall@omicronenergy.com X-Patchwork-Id: 727867 X-Patchwork-Delegate: cyrille.pitchen@atmel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3vN64h24rJz9s0Z for ; Wed, 15 Feb 2017 02:37:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZNyUy+B1"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=omicronenergy.com header.i=@omicronenergy.com header.b="gmVRdavr"; dkim-atps=neutral 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xuDkHOy4MQ6J5hjpiRwZx6Cv0XBbDTz2hO62PTuvhRw=; b=ZNyUy+B13m+FVD 2jTOdSHo8SuIvdjyDsprKoEI9ZuVbpjftrR1eoiGfWCbFkDivp87sZROzL3koxcpWIR4ZKC/1GefM 86s//Zmf9FBVgH8w1NUTuuzdhuHCCquAZqeb1nlsypwQslOOFaVCr4wGiVdNINL5nj6Hl605HepV3 kZa4h7KDbo+wzgvliLALWidmcMTB1wUoZKW1M5v4lmkcoy3seHAMW6p3Z1eVXhRCj/5co5QN4JNx9 YL98yKDPRtWKo9Vj+KFhhA11QZT6cKlfS/sMEBz50QFSLP90mEdXgvwCpIXxn/kvrflsScj25OSk1 ND5IfsdaXJ3j11KJUzyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cdfAw-0004l1-0e; Tue, 14 Feb 2017 15:37:54 +0000 Received: from ns.omicron.at ([212.183.10.25]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdfAU-00045h-G9 for linux-mtd@lists.infradead.org; Tue, 14 Feb 2017 15:37:33 +0000 Received: from MGW01-ATKLA.omicron.at ([172.25.62.34]) by ns.omicron.at (8.15.2/8.15.2) with ESMTPS id v1EFaIhh005524 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=FAIL); Tue, 14 Feb 2017 16:36:19 +0100 DKIM-Filter: OpenDKIM Filter v2.10.3 ns.omicron.at v1EFaIhh005524 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omicronenergy.com; s=default; t=1487086579; bh=/DsToAAKfMMk236ypWxFw5XjAVTjc7naCD2h58H7i+4=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=gmVRdavrU0vtBuehMDvbjbR3JaxFT6afVajvzlAfg5pKHvb2IJE4CwVwB5Ceu0tUk yi+9WBlh2eK+MeHswPYod3+te81Brytg5mHAqQvix3XrNKcLMnlYddOVw17ywArV/0 J+kYZQ/0lnGI2mGTs7qtvEIzarL+Rj4vTMJ27Wkc= Received: from EXC01-ATKLA.omicron.at ([172.22.100.185]) by MGW01-ATKLA.omicron.at with ESMTP id v1EFaITC002569-v1EFaITE002569 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=CAFAIL); Tue, 14 Feb 2017 16:36:18 +0100 Received: from marmar13.omicron.at (172.22.32.163) by EXC01-ATKLA.omicron.at (172.22.100.185) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 14 Feb 2017 16:36:17 +0100 From: To: , , , Subject: [PATCH v2 3/3] mtd: spi-nor: s25fl512s: Set a page size of 512 Date: Tue, 14 Feb 2017 16:35:53 +0100 Message-ID: <22ee35326eb763a0f7477c845838ef7aa1c8d1fd.1487085166.git.mark.marshall@omicronenergy.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [172.22.32.163] X-ClientProxiedBy: EXC01-ATKLA.omicron.at (172.22.100.185) To EXC01-ATKLA.omicron.at (172.22.100.185) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_073727_526715_BEC81804 X-CRM114-Status: UNSURE ( 7.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.183.10.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: , Cc: richard@nod.at, Mark Marshall , dwmw2@infradead.org, markmarshall14@gmail.com, boris.brezillon@free-electrons.com Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Mark Marshall This device has a write page size of 512. Changing this from 256 to 512 almost doubles the write performance of the flash. Signed-off-by: Mark Marshall --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 467dc93..ba4d7b7 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1056,6 +1056,8 @@ static const struct flash_info spi_nor_ids[] = { { "s25fl256s0", INFO(JEDEC_ID(0x010219, 0x4d00, 2), 256 * 1024, 128, 0) }, { "s25fl256s1", INFO(JEDEC_ID(0x010219, 0x4d01, 2), 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl512s", INFO(JEDEC_ID(0x010220, 0x4d00, 2), 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, + { "s25fl512s", INFO_FULL(JEDEC_ID(0x010220, 0x4d00, 2), + 256 * 1024, 256, 512, 0, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s70fl01gs", INFO(JEDEC_ID(0x010221, 0x4d00, 2), 256 * 1024, 256, 0) }, { "s25sl12800", INFO(JEDEC_ID(0x012018, 0x0300, 2), 256 * 1024, 64, 0) }, { "s25sl12801", INFO(JEDEC_ID(0x012018, 0x0301, 2), 64 * 1024, 256, 0) },