Message ID | 20221123211335.126417-1-nathan.morrison@timesys.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3032821wrr; Wed, 23 Nov 2022 13:18:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Iw7o73CszXpwhO97XRi/ub5WdsDXMSiMAHpy/jtMUAvqW4P+IktzIj9YG8OtICc/Qxoj8 X-Received: by 2002:a17:907:9841:b0:7ae:c9d4:7073 with SMTP id jj1-20020a170907984100b007aec9d47073mr24943381ejc.711.1669238313984; Wed, 23 Nov 2022 13:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669238313; cv=none; d=google.com; s=arc-20160816; b=etqC5G9xnCo7ppjBhzpEiPyw5miHHHUJti6BOKLBHYv6/DeN/nShLXxipLSc9hMeVS Phk+b/tHv+fryMwUeiVQcn6ifkkpBrTW+HxgNwpalL60j+yQB4rYrvVYQJfvbk807G1o 0Z+X/H6tvyFWuCVdLwdW4hh2tLGOQt+jrb/QAXcvDltRi18nNOkEGfsXj/GZnhX7FHBX LcokP0R4R2BrisC1af51dfSc/MCOQFFKKUclEsLEzrylIputuT7bxuP+3A5f7cFxVlHv q2MFvfoHgxthjkT4YzuWAItY5GzWOTV+tjQKc1hpUjsIckaFklWzZSltKv9j9Kj7ux7T KvkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=jCAdz79Q9Nl+OKyzqzGeecpOB8hVla9Ab63J2ksR6Vs=; b=pLDWj5X24e/XZX23cTENGxnicW4i+s7r/+nKsEzYHq8lAq/HJrEBemA805xf/7dsdS AGOStWdL44fyTDgc39MWgbSk5d3YaO41sgoC41xht5MIXLzWPqYbV79KlqwI0g9sn+bm PW2EIMylUSPJx2COyswY7WMXVtsesrFdOPf7dkqBMJSCgGj1FygBK1z9r35nOwTGVbY9 oeAGP/a45G4hZTFNnXK+5MlMei3/R5asH4HtRUgD88Z82MhpNYEfhnvnSUp5R7OkR7jN b9Cg6v0ZJdpW66lqO6kDKE1XSajryuEZduSZmjDcpHeTgxXCyGF/YcTPjAPmTSqf+GRI vHhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b="hn8hQ/eo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb44-20020a170907162c00b0078d9b2facaesi5099432ejc.339.2022.11.23.13.18.09; Wed, 23 Nov 2022 13:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b="hn8hQ/eo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234264AbiKWVN4 (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Wed, 23 Nov 2022 16:13:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235336AbiKWVNq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 23 Nov 2022 16:13:46 -0500 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1D22C128 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 13:13:45 -0800 (PST) Received: by mail-qt1-x829.google.com with SMTP id l15so24093qtv.4 for <linux-kernel@vger.kernel.org>; Wed, 23 Nov 2022 13:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jCAdz79Q9Nl+OKyzqzGeecpOB8hVla9Ab63J2ksR6Vs=; b=hn8hQ/eozXMiB5C6TMwm0AOG6mw/bHwooPBiXgxeZ90DttPFa3/u7OAtBOMpBX+nSj hsJx7G1859fRsXUMsxRPKoTHTPdAW/YiS2AGfKDandRFwGbAh1ILJn3G6uG1UFD2CUWv Iy3hSGc+19ek5rUa6ltWn7D79B3Rj8yNCZ6nW3jASD3QrYMB7nGIgCv7R2EMHq8g5a3n +4GtO5FUBv1wM2mUpgOPf/zxXtslzi9qZcfew69CKjEC+FEbRud+/JWxmYr1VNvBAJ59 DbI7ivMeVBd8QyWhVgyD5LTb2ZC4CF1SO5ljh2SfGMJbCAQHNhOSoQZv57k4suUi/qcq h42Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jCAdz79Q9Nl+OKyzqzGeecpOB8hVla9Ab63J2ksR6Vs=; b=R3K5AAk2SFi0q+UUUwq6/2a7ZE2sSjtPX0cQWPtm+w+0rwScoH9ViqSXdYjeMV2b9I mdZgBZWoUhv8LpKM4p2Bz/057NMTBothIUIZni8Pf6Epm2tHIsLX9PjJG/zfwQDb4eyJ YQmXBjDgSmObv/2Tr1+IIFwZrY1IkRBt8t2UJCN2Mgb9DBc2ptG/V0eo/RERQFD0xWr2 E+gh8gX/72QZDbJyrY70qzE27a9gsnEQbv0ZrLFmThCqzgwTZ3qoTuyCYI6Q0K4PyB3O WnigTr4NMs5QcEQ7FiboK7WWgZgqkNjxi7Z+0A9RH6BOzGQ9/nKqKzzY6Fp5TKc5cNVh HWdQ== X-Gm-Message-State: ANoB5plPBQO56W6IA2Gt7J1QSH0tNSO9anoab2qs182KMMbH8hJGrkFp w5KU9WUhsJAo7dPZOhnS8Vd8vw== X-Received: by 2002:a05:622a:2484:b0:3a5:2fdc:9dc8 with SMTP id cn4-20020a05622a248400b003a52fdc9dc8mr28904444qtb.69.1669238024169; Wed, 23 Nov 2022 13:13:44 -0800 (PST) Received: from nathan-ideapad.. (d-75-76-18-234.oh.cpe.breezeline.net. [75.76.18.234]) by smtp.gmail.com with ESMTPSA id cf11-20020a05622a400b00b0039ee562799csm10222928qtb.59.2022.11.23.13.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 13:13:43 -0800 (PST) From: Nathan Barrett-Morrison <nathan.morrison@timesys.com> Cc: nathan.morrison@timesys.com, greg.malysa@timesys.com, Tudor Ambarus <tudor.ambarus@microchip.com>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <michael@walle.cc>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, linux-mtd@lists.infradead.org (open list:SPI NOR SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 0/2] These are the required patches I found while adding Date: Wed, 23 Nov 2022 16:13:33 -0500 Message-Id: <20221123211335.126417-1-nathan.morrison@timesys.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750323233836013156?= X-GMAIL-MSGID: =?utf-8?q?1750323233836013156?= |
Series |
These are the required patches I found while adding
|
|
Message
Nathan Barrett-Morrison
Nov. 23, 2022, 9:13 p.m. UTC
1) The core framework needs some additional logic for 8S-8S-8S to pass through succesfully. 2) The IS25LX256 chip needs added to the SPI part table along with various fixups Nathan Barrett-Morrison (2): mtd: spi-nore: core: Add in framework for 8S-8S-8S Octal STR mode mtd: spi-nor: issi: Add in support for IS25LX256 chip, operating in Octal STR mode drivers/mtd/spi-nor/core.c | 57 ++++++++++++++++++++- drivers/mtd/spi-nor/core.h | 5 +- drivers/mtd/spi-nor/issi.c | 101 +++++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+), 3 deletions(-)
Comments
Hi Nathan, Am 2022-11-23 22:13, schrieb Nathan Barrett-Morrison: > 1) The core framework needs some additional logic for 8S-8S-8S to pass > through > succesfully. > > 2) The IS25LX256 chip needs added to the SPI part table along with > various fixups Unfortunately, I can't make any sense of this series. First of all, the IS25LX256 [1] doesn't support 8S-8S-8S, only 8D-8D-8D and 1S-8S-8S, see ch. 4. Confused, I've looked at your octal str enable function and it writes 0xc7 to the volatile configuration register 0x00. According to the datasheet, that is the enable for the octal DTR mode. Please explain your problem and your motivation in the cover letter/commit message and how you fix it. [1] https://www.issi.com/WW/pdf/25LX-WX256-128.pdf -michael
Hi Michael, Ah yes, I just realized we're effectively using the device in 1S-1S-8S extended SPI mode, so the 0xC7 setting is probably not required. We were never able to get DTR mode working on the IS25LX256. I can fix this patch up so it's more explicit about what's going on here. The 8S-8S-8S support in core.c is still going to be used for another OSPI device I'm porting over from an older kernel. Would you like me to separate these patches, fix up the ISSI once, and resubmit? Sincerely, Nathan
Hi, Am 2022-11-24 12:47, schrieb Nathan Barrett-Morrison: > Ah yes, I just realized we're effectively using the device in 1S-1S-8S > extended SPI mode, so the 0xC7 setting is probably not required. We > were never able to get DTR mode working on the IS25LX256. I can fix > this patch up so it's more explicit about what's going on here. > > The 8S-8S-8S support in core.c is still going to be used for another > OSPI device I'm porting over from an older kernel. Can you link a datasheet? The problem with 8s8s8s is that it needs mode switching which can be footgun. And IMHO it doesn't provide significant performance improvements over 1s8s8s. > Would you like me to separate these patches, fix up the ISSI once, and > resubmit? Yes please. Also, I've seen that you use flags in the flash_info table. Please have a look if that information can be deduced from the SFDP. E.g. does a flash describe if it supports 1s1s8s. -michael