{"id":811118,"url":"http://patchwork.ozlabs.org/api/1.2/patches/811118/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/patch/20170907185456.4631-1-cyrille.pitchen@wedev4u.fr/","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/1.2/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":"<20170907185456.4631-1-cyrille.pitchen@wedev4u.fr>","list_archive_url":null,"date":"2017-09-07T18:54:56","name":"[DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"7d20916a6d160373de05779b7809ed6b5204589a","submitter":{"id":70551,"url":"http://patchwork.ozlabs.org/api/1.2/people/70551/?format=json","name":"Cyrille Pitchen","email":"cyrille.pitchen@wedev4u.fr"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/patch/20170907185456.4631-1-cyrille.pitchen@wedev4u.fr/mbox/","series":[{"id":2043,"url":"http://patchwork.ozlabs.org/api/1.2/series/2043/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/list/?series=2043","date":"2017-09-07T18:54:56","name":"[DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table","version":1,"mbox":"http://patchwork.ozlabs.org/series/2043/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/811118/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/811118/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=\"EaSjzCs/\"; \n\tdkim-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 3xp8mh3j8Bz9sBW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 04:56:04 +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 1dq1y1-0006SV-3a; Thu, 07 Sep 2017 18:55:57 +0000","from 11.mo5.mail-out.ovh.net ([46.105.47.167])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dq1xb-000682-Ne\n\tfor linux-mtd@lists.infradead.org; Thu, 07 Sep 2017 18:55:34 +0000","from player786.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo5.mail-out.ovh.net (Postfix) with ESMTP id D7BDA1258DB\n\tfor <linux-mtd@lists.infradead.org>;\n\tThu,  7 Sep 2017 20:55:07 +0200 (CEST)","from mountainer.wedev4u.int (cor13-1-82-232-94-13.fbx.proxad.net\n\t[82.232.94.13]) (Authenticated sender: cyrille.pitchen@wedev4u.fr)\n\tby player786.ha.ovh.net (Postfix) with ESMTPSA id 703FA80080;\n\tThu,  7 Sep 2017 20:54:57 +0200 (CEST)"],"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=1axOVeFZcfg27JapGlOU16FTXgGp8EshaMR7k/wQnOU=;\n\tb=EaSjzCs/Cv8Z97S00txEGuI5G5\n\tc1qlsm/K6wdWaVGxi1t6gxxo84PN+qDemlyTx7luVTWRm3sSKgHge7A9O0XG39lLZcQgMt2fykjw/\n\tuSZs3CC4pBXviDb7PdUd2IYuBMwnymlMRIOgg+xoMyF2uGM6QyZpo4QWM7EYGaFypGw6UT+2dyi1S\n\tGY47XSLPaT8WuYA13rC4fOViNz8K9Z15XgnYyzbd6V+2O/4YaIJWnnCUPoIbIww+tOmJs60fQiFYE\n\tN8PKwtj5bFLWtnJcKbqaDj5bkJnu0m7YybMj94n612Zr/7smi2dB0bNX83JE7BCqNS0f6BDNuExHT\n\tJLt7OFwQ==;","From":"Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>","To":"marek.vasut@gmail.com, linux-mtd@lists.infradead.org,\n\tgeert@linux-m68k.org","Subject":"[DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table","Date":"Thu,  7 Sep 2017 20:54:56 +0200","Message-Id":"<20170907185456.4631-1-cyrille.pitchen@wedev4u.fr>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<CAMuHMdXKpheF5whZi2Ot2Pm8t3Lu+ramNV==sXBo87u_HerZxQ@mail.gmail.com>","References":"<CAMuHMdXKpheF5whZi2Ot2Pm8t3Lu+ramNV==sXBo87u_HerZxQ@mail.gmail.com>","X-Ovh-Tracer-Id":"10811453856571938696","X-VR-SPAMSTATE":"OK","X-VR-SPAMSCORE":"0","X-VR-SPAMCAUSE":"gggruggvucftvghtrhhoucdtuddrfeelledrfedvgdduvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenuc","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170907_115531_928219_A7252FF8 ","X-CRM114-Status":"GOOD (  11.07  )","X-Spam-Score":"-0.9 (/)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-0.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [46.105.47.167 listed in list.dnswl.org]\n\t1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist\n\t[URIs: wedev4u.fr]\n\t-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)\n\t[46.105.47.167 listed in wl.mailspike.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders","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":"boris.brezillon@free-electrons.com, richard@nod.at,\n\tlinux-kernel@vger.kernel.org,\n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>, \n\tcomputersforpeace@gmail.com, dwmw2@infradead.org","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":"debug purpose only, should not be merged!\n\nSigned-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>\n---\n\nHi Geert,\n\nCan you apply this patch on your tree then report me what was printed, please?\nI have an idea of the root cause of your issue then a potential work-around\nbut I first need to validate my assumption to confirm that the work-around\nwould actually work.\n\nFor instance, here is what I get with a Macronix MX25L25673G (same JEDEC ID as\nMX25L25635E):\n\n[    0.700000] atmel_qspi f0020000.spi: DWORD1 = 0xfffb20e5\n[    0.710000] atmel_qspi f0020000.spi: DWORD2 = 0x0fffffff\n[    0.710000] atmel_qspi f0020000.spi: DWORD3 = 0x6b08eb44\n[    0.720000] atmel_qspi f0020000.spi: DWORD4 = 0xbb043b08\n[    0.720000] atmel_qspi f0020000.spi: DWORD5 = 0xfffffffe\n[    0.720000] atmel_qspi f0020000.spi: DWORD6 = 0xff00ffff\n[    0.730000] atmel_qspi f0020000.spi: DWORD7 = 0xeb44ffff\n[    0.730000] atmel_qspi f0020000.spi: DWORD8 = 0x520f200c\n[    0.740000] atmel_qspi f0020000.spi: DWORD9 = 0xff00d810\n[    0.740000] atmel_qspi f0020000.spi: DWORD10 = 0x00dd59d6\n[    0.740000] atmel_qspi f0020000.spi: DWORD11 = 0xdb039f82\n[    0.750000] atmel_qspi f0020000.spi: DWORD12 = 0x38670344\n[    0.750000] atmel_qspi f0020000.spi: DWORD13 = 0xb030b030\n[    0.760000] atmel_qspi f0020000.spi: DWORD14 = 0x5cd5bdf7\n[    0.760000] atmel_qspi f0020000.spi: DWORD15 = 0xff299e4a\n[    0.760000] atmel_qspi f0020000.spi: DWORD16 = 0x85f950f0\n[    0.770000] atmel_qspi f0020000.spi: BFPT version 1.6 (length = 16)\n[    0.770000] atmel_qspi f0020000.spi: mx25l25635e (32768 Kbytes)\n\nBest regards,\n\nCyrille\n\n drivers/mtd/spi-nor/spi-nor.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c\nindex 05254dd6a4a0..5066d99b9f50 100644\n--- a/drivers/mtd/spi-nor/spi-nor.c\n+++ b/drivers/mtd/spi-nor/spi-nor.c\n@@ -2136,8 +2136,14 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor,\n \t\treturn err;\n \n \t/* Fix endianness of the BFPT DWORDs. */\n-\tfor (i = 0; i < BFPT_DWORD_MAX; i++)\n+\tfor (i = 0; i < BFPT_DWORD_MAX; i++) {\n \t\tbfpt.dwords[i] = le32_to_cpu(bfpt.dwords[i]);\n+\t\tdev_info(nor->dev, \"DWORD%d = 0x%08x\\n\", i + 1, bfpt.dwords[i]);\n+\t}\n+\tdev_info(nor->dev, \"BFPT version %d.%d (length = %u)\\n\",\n+\t\t bfpt_header->major,\n+\t\t bfpt_header->minor,\n+\t\t bfpt_header->length);\n \n \t/* Number of address bytes. */\n \tswitch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) {\n","prefixes":["DEBUG"]}