{"id":808565,"url":"http://patchwork.ozlabs.org/api/1.0/covers/808565/?format=json","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/1.0/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},"msgid":"<1504252841-2445-1-git-send-email-bmeng.cn@gmail.com>","date":"2017-09-01T08:00:31","name":"[00/10] spi-nor: intel-spi: Various fixes and enhancements","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/1.0/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"series":[{"id":969,"url":"http://patchwork.ozlabs.org/api/1.0/series/969/?format=json","date":"2017-09-01T08:00:33","name":"spi-nor: intel-spi: Various fixes and enhancements","version":1,"mbox":"http://patchwork.ozlabs.org/series/969/mbox/"}],"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=\"gc8kAZO3\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"tO2HQxaF\"; 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 3xkBRv0bgmz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 17:57:47 +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 1dngpd-0001tq-Rs; Fri, 01 Sep 2017 07:57:37 +0000","from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dngoj-0001Wi-46\n\tfor linux-mtd@lists.infradead.org; Fri, 01 Sep 2017 07:56:42 +0000","by mail-io0-x244.google.com with SMTP id 2so2153941ion.3\n\tfor <linux-mtd@lists.infradead.org>;\n\tFri, 01 Sep 2017 00:56:20 -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\td187sm853502iod.7.2017.09.01.00.56.17\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 01 Sep 2017 00:56:18 -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:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=12pXJRw429RZRwhp5wZl/gBs2TQx56kgttYJNPx96wU=;\n\tb=gc8\n\tkAZO3LxsyVi2mNYU8dWPoWlyDbNdETWkZt359MYPPTnPmQn0u1L+yiL1irbXNfcQxYjMwArbwR/lx\n\thJ0ewugLvUOxfDnROMR/sRfwB4VgSpklb2SOzo/RI5TyLUeXZWFzpzkXrAB+UUVxBAFxMefwOvRC/\n\tF7u2IONbyJbPIINJGE3Dmozd8M1M3y5e2hEWnBM0Kg+gPgqW4wcVsYDjkmG5JGJW7L68TjiD82EBT\n\tYvZ1QA8Mhy8RypK1tEGk8A4sUj8Z9TiEXikwke+yB+HTFoTRGTJCY3ZzV1ocoS/QPoyg3bfcHX1ul\n\tMCnZC3XX9ewUoYVJSkaTMcWXvcxoIOA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=vZAb16kOgFdQxuDcmfmvO0n6fDktoN4DJqI60pFCr6M=;\n\tb=tO2HQxaF4g+6m5y/tGk6dw0YMsTJWafxKTfsQP2v8hZ0JdpzybBjjV0Zuj7N76CARa\n\t7Rik5BUgvxrCtQisebHvc6oQrZkCb+ODbLT+bVfHW/wrF4dGWixFJJ7Ah3t7bRuDIWaw\n\tOEEbdisGd47wu/kCqaNBWuHqWiXNl8TmxqA8YjCap9j3yN89s7kQVmvrsRa8KQnkb78n\n\tXzbVwlXv28oJbdd32nvUEUnKviRxrka9osM+0wDCGfdv/v6mGVN3ncYicyIiKf0FAlxG\n\tAZ3gBzuqNowK09ihT+wo/KxspCx7tyrppr+GQfkvJEHzcboq9u9GGfQ2Ob072NqT7Py0\n\tObIQ=="],"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;\n\tbh=vZAb16kOgFdQxuDcmfmvO0n6fDktoN4DJqI60pFCr6M=;\n\tb=a7iKUT19PUuCFv54YNCfJ+YNIwPAAjX3MY9A/YxqNvzPI7ON5XdoEHGKfGyqOt5NWo\n\t1P5YdtB1wKTRG5LrjkPKu7YrBaZXTZNrgo+8blqvDrfaTLXnn6BHiK6giAvrA7kDT9LM\n\tHcKl+wCEnpJ/ejCHDCfutCfDEi3fZ6NIQ+7ftzijn78/hWQk8iV4+I+7scaGXh1/Ahym\n\tX/DE0+YT1kIvCKg8KFPWC6/YYnOZBUk8Ft7iaLytlvdgMKwgRfe51lJQa3swNL6egUDS\n\tVtAKkXCmEFZ+HJXgIcRtED+QlbavPO13A+6EX6xksXTbjG4AggilxHdAHGY632otjuXG\n\tYuBQ==","X-Gm-Message-State":"AHPjjUgP92ybTMV9w46APgdYDp1KFlVA8/yiuycm6CRQ7X7nm4dMng54\n\tOo5aLfM+F9DCXw==","X-Google-Smtp-Source":"ADKCNb5BEl7YafFR6CuM88/MQ9KuffSKFM4jwk1cze+m/kKZMZQ0ii0uqm90JIX2iDHQU8wx2uHRpg==","X-Received":"by 10.107.205.194 with SMTP id d185mr807153iog.8.1504252579742; \n\tFri, 01 Sep 2017 00:56:19 -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 00/10] spi-nor: intel-spi: Various fixes and enhancements","Date":"Fri,  1 Sep 2017 01:00:31 -0700","Message-Id":"<1504252841-2445-1-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170901_005641_209930_0C2C858E ","X-CRM114-Status":"UNSURE (   9.52  )","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:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\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":"This series does several bug fixes and clean ups against the intel-spi\nspi-nor driver, as well as enhancements to make the driver independent\non the underlying BIOS/bootloader.\n\nAt present the driver uses the HW sequencer for the read/write/erase on\nall supported platforms, read_reg/write_reg for BXT, and the SW sequencer\nfor read_reg/write_reg for BYT/LPT. The way the driver uses the HW and SW\nsequencer relies on some programmed register settings and hence creates\nunneeded dependencies with the underlying BIOS/bootloader. For example,\nthe driver unfortunately does not work as expected when booting from\nIntel Baytrail FSP based bootloaders like U-Boot, as the Baytrail FSP\ndoes not set up some SPI controller settings to make the driver happy.\nNow such limitation has been removed with this series.\n\n\nBin Meng (10):\n  spi-nor: intel-spi: Fix number of protected range registers for\n    BYT/LPT\n  spi-nor: intel-spi: Remove useless 'buf' parameter in the HW/SW cycle\n  spi-nor: intel-spi: Fix broken software sequencing codes\n  spi-nor: intel-spi: Check transfer length in the HW/SW cycle\n  spi-nor: intel-spi: Use SW sequencer for BYT/LPT\n  spi-nor: intel-spi: Remove 'Atomic Cycle Sequence' in\n    intel_spi_write()\n  spi-nor: intel-spi: Don't assume OPMENU0/1 to be programmed by BIOS\n  spi-nor: intel-spi: Remove the unnecessary HSFSTS register RW\n  spi-nor: intel-spi: Rename swseq to swseq_reg in 'struct intel_spi'\n  spi-nor: intel-spi: Fall back to use SW sequencer to erase\n\n drivers/mtd/spi-nor/intel-spi.c | 209 +++++++++++++++++++++++++++++-----------\n 1 file changed, 151 insertions(+), 58 deletions(-)"}