{"id":812291,"url":"http://patchwork.ozlabs.org/api/patches/812291/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/patch/1505122921-5534-10-git-send-email-bmeng.cn@gmail.com/","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/projects/3/?format=json","name":"Linux MTD development","link_name":"linux-mtd","list_id":"linux-mtd.lists.infradead.org","list_email":"linux-mtd@lists.infradead.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505122921-5534-10-git-send-email-bmeng.cn@gmail.com>","list_archive_url":null,"date":"2017-09-11T09:41:59","name":"[v2,09/10] spi-nor: intel-spi: Rename swseq to swseq_reg in 'struct intel_spi'","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"6d14cc18e10eea1406f2df6553b0378870d99fc1","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"delegate":{"id":63396,"url":"http://patchwork.ozlabs.org/api/users/63396/?format=json","username":"cpitchen","first_name":"Cyrille","last_name":"Pitchen","email":"cyrille.pitchen@atmel.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/patch/1505122921-5534-10-git-send-email-bmeng.cn@gmail.com/mbox/","series":[{"id":2464,"url":"http://patchwork.ozlabs.org/api/series/2464/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/list/?series=2464","date":"2017-09-11T09:41:50","name":"spi-nor: intel-spi: Various fixes and enhancements","version":2,"mbox":"http://patchwork.ozlabs.org/series/2464/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812291/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812291/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"Z/VWuRj4\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Po4AcRN7\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrNXB2q7gz9s7G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 19:52:58 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drLOb-0007p1-NG; Mon, 11 Sep 2017 09:52:49 +0000","from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drLAT-0006Cm-7h\n\tfor linux-mtd@lists.infradead.org; Mon, 11 Sep 2017 09:38:16 +0000","by mail-it0-x242.google.com with SMTP id o200so3845332itg.1\n\tfor <linux-mtd@lists.infradead.org>;\n\tMon, 11 Sep 2017 02:37:57 -0700 (PDT)","from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\ts2sm4121069ioa.2.2017.09.11.02.37.54\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 11 Sep 2017 02:37:55 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=+UdE8Ab4e5yTgIWSQKSNECIX+ngYuBzbL0fptQvoHRQ=;\n\tb=Z/VWuRj4P9EgsmQuZA2nIVjdG7\n\tV3UvxsHd1lE+lkeumSP8gHcJzWTyIfAlq9dc1vBgW6yT2D4XqQBJYLf09QMqJTW1Jq6bIilgy9jZ4\n\tUojklI3MrNwFWd+iXuRtNclUL9EZa6N5hqRNJ8U8a0jsAMShQZ6PRMhw07pFcZH34Yh5KtTRg50HS\n\tpe7+gQ+fuzdOqK7x/MWHLBzCrS4/qlfyvv2T5yzqjMhNxLBjQj0LUGB8Ugjz2hjwkIqZDwxwdGiXo\n\tedji1yeXy0Gqizr7tScEBdVWrROxRdWpJIDhO9jK5Cmv3X3593gpzDivvRdUYFhNZx0Phy30PJhvV\n\t83VUgNpg==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=opiqhPRazGUgAdVPbCe+4FTDYAW0jgLqZU0GT2IfPGs=;\n\tb=Po4AcRN7sSJna/TpUWa8sXLLWF+rIeAUqGI8CtIfiWei/oHdOWaqiOY3IPIi2GBi+z\n\tia6Cy7jXakxkc8iV4DeHCJuOe4toJ/4H2oHLzVbA/Dt4Nj4V7JZZ6E04eOXC8Dokv8kw\n\tydF7KuF8ut9EJm6c9lvZEvXcYu+/TGxvdtgYSjz0eZSvevPpYP2svfdOVdYpXtq5F7xs\n\tkSGSC4gZYt3o3kW8DxgOEhSVLA58P9SzytXm8TFdHBk7yFstfe2TJAL12pRvJsIHqxLG\n\tHWE1pYS/UOqP+VKTZcMJufp2bt8C1nTalMr5dNSEKYkrX/rENiO7z+Y5mD5R292hXrKT\n\tY3Bg=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=opiqhPRazGUgAdVPbCe+4FTDYAW0jgLqZU0GT2IfPGs=;\n\tb=AYuzAAY/h8z/wL67sEEZhtSQ0OzdF/tYxLM7MK+gKqeR9dEcCLNQ6mpbS0nMmNR6gz\n\tlJhzF5FOPJsV7SAKn5MLfnqwDiksRo+SgmdsRVunA4pKNDyo3uxSS3zatFcJ1LdnFN1X\n\tTRBSfY4UPlae6zn4FvFG0aXpUS8bcmaw6tR5aMitA1GwcUnbn3rfbqlj19Fu4dNT83oS\n\tmFzgM0STsi8tlfTW88FMnymXkQwmuHX9PZE08zgs6/9/p+w1ELhNTIBERrwCgTGa/NVH\n\tbtrkz2FmDb8wgUmRpLluh5vkNc8Jebp2VpDiDQ5kTv3cMZd41ADfU0DO+MLpJGHYuq72\n\tb2zQ==","X-Gm-Message-State":"AHPjjUjATbNEvtYNHFuQErKsHGdRR2dCXFGmmbt0dstw347ShIbXgWO8\n\t27KkltPtvHKl5QQ44piD93E=","X-Google-Smtp-Source":"ADKCNb7kCplWnJ7kQfrVDR3DXPbQJsiU+Vhemq99EILBFrmyjbg+HbADk3/Y51Mpg6XsXSRwainFAQ==","X-Received":"by 10.36.7.19 with SMTP id f19mr13290637itf.111.1505122676732;\n\tMon, 11 Sep 2017 02:37:56 -0700 (PDT)","From":"Bin Meng <bmeng.cn@gmail.com>","To":"Mika Westerberg <mika.westerberg@linux.intel.com>,\n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>,\n\tMarek Vasut <marek.vasut@gmail.com>,\n\tBoris Brezillon <boris.brezillon@free-electrons.com>,\n\tBrian Norris <computersforpeace@gmail.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tDavid Woodhouse <dwmw2@infradead.org>, \n\tlinux-mtd <linux-mtd@lists.infradead.org>,\n\tlinux-kernel <linux-kernel@vger.kernel.org>","Subject":"[PATCH v2 09/10] spi-nor: intel-spi: Rename swseq to swseq_reg in\n\t'struct intel_spi'","Date":"Mon, 11 Sep 2017 02:41:59 -0700","Message-Id":"<1505122921-5534-10-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","In-Reply-To":"<1505122921-5534-1-git-send-email-bmeng.cn@gmail.com>","References":"<1505122921-5534-1-git-send-email-bmeng.cn@gmail.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170911_023813_519309_2F63AB7A ","X-CRM114-Status":"GOOD (  14.19  )","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:4001:c0b:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (bmeng.cn[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Cc":"Stefan Roese <sr@denx.de>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"The ispi->swseq is used for register access. Let's rename it to\nswseq_reg to better describe its usage.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nAcked-by: Mika Westerberg <mika.westerberg@linux.intel.com>\n---\n\nChanges in v2: None\n\n drivers/mtd/spi-nor/intel-spi.c | 16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)","diff":"diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c\nindex 91ceef7..5e7a389 100644\n--- a/drivers/mtd/spi-nor/intel-spi.c\n+++ b/drivers/mtd/spi-nor/intel-spi.c\n@@ -126,7 +126,7 @@\n  * @pr_num: Maximum number of protected range registers\n  * @writeable: Is the chip writeable\n  * @locked: Is SPI setting locked\n- * @swseq: Use SW sequencer in register reads/writes\n+ * @swseq_reg: Use SW sequencer in register reads/writes\n  * @erase_64k: 64k erase supported\n  * @opcodes: Opcodes which are supported. This are programmed by BIOS\n  *           before it locks down the controller.\n@@ -143,7 +143,7 @@ struct intel_spi {\n \tsize_t pr_num;\n \tbool writeable;\n \tbool locked;\n-\tbool swseq;\n+\tbool swseq_reg;\n \tbool erase_64k;\n \tu8 opcodes[8];\n \tu8 preopcodes[2];\n@@ -224,7 +224,7 @@ static void intel_spi_dump_regs(struct intel_spi *ispi)\n \t}\n \n \tdev_dbg(ispi->dev, \"Using %cW sequencer for register access\\n\",\n-\t\tispi->swseq ? 'S' : 'H');\n+\t\tispi->swseq_reg ? 'S' : 'H');\n }\n \n /* Reads max INTEL_SPI_FIFO_SZ bytes from the device fifo */\n@@ -297,7 +297,7 @@ static int intel_spi_init(struct intel_spi *ispi)\n \t\tispi->pregs = ispi->base + BYT_PR;\n \t\tispi->nregions = BYT_FREG_NUM;\n \t\tispi->pr_num = BYT_PR_NUM;\n-\t\tispi->swseq = true;\n+\t\tispi->swseq_reg = true;\n \n \t\tif (writeable) {\n \t\t\t/* Disable write protection */\n@@ -318,7 +318,7 @@ static int intel_spi_init(struct intel_spi *ispi)\n \t\tispi->pregs = ispi->base + LPT_PR;\n \t\tispi->nregions = LPT_FREG_NUM;\n \t\tispi->pr_num = LPT_PR_NUM;\n-\t\tispi->swseq = true;\n+\t\tispi->swseq_reg = true;\n \t\tbreak;\n \n \tcase INTEL_SPI_BXT:\n@@ -343,7 +343,7 @@ static int intel_spi_init(struct intel_spi *ispi)\n \t * sequencer. All other operations are supposed to be carried out\n \t * using software sequencer.\n \t */\n-\tif (ispi->swseq) {\n+\tif (ispi->swseq_reg) {\n \t\t/* Disable #SMI generation from SW sequencer */\n \t\tval = readl(ispi->sregs + SSFSTS_CTL);\n \t\tval &= ~SSFSTS_CTL_FSMIE;\n@@ -493,7 +493,7 @@ static int intel_spi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len)\n \t/* Address of the first chip */\n \twritel(0, ispi->base + FADDR);\n \n-\tif (ispi->swseq)\n+\tif (ispi->swseq_reg)\n \t\tret = intel_spi_sw_cycle(ispi, opcode, len,\n \t\t\t\t\t OPTYPE_READ_NO_ADDR);\n \telse\n@@ -529,7 +529,7 @@ static int intel_spi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len)\n \tif (ret)\n \t\treturn ret;\n \n-\tif (ispi->swseq)\n+\tif (ispi->swseq_reg)\n \t\treturn intel_spi_sw_cycle(ispi, opcode, len,\n \t\t\t\t\t  OPTYPE_WRITE_NO_ADDR);\n \treturn intel_spi_hw_cycle(ispi, opcode, len);\n","prefixes":["v2","09/10"]}