Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3059831rwb; Wed, 30 Nov 2022 14:56:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf56ab1TIcHwsYGkx0Yh2QQD+kgzmaGwfMiXgo/OnfqXErLFSmJcF4O+7APYKpV+NXSEog6B X-Received: by 2002:a17:90a:9313:b0:213:2168:1c78 with SMTP id p19-20020a17090a931300b0021321681c78mr68141122pjo.72.1669848985653; Wed, 30 Nov 2022 14:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669848985; cv=none; d=google.com; s=arc-20160816; b=PB/RvrUHWtKHT7z4qaImIPNysea6PJnVdlUWjfWzYR0GNgRmH5DhD3prMsf1VRRTed k//q2SIJoNMMOVRbVV6IWkqMId7Ua/QO/r8P+GOfxrPHMCNJVNRLSZDt/D69qKJcig0l MLpRVVLzxexINzrGisSWhfoYZEinNRBz+f8U8PVHTlhPut9JQ9I767OW+vZdpaZXscz5 qsgV2FDyrWCoZCCkNydoTjdX0bG7hAv6DGk5PNjNFSL1JACfduvhE4P/8l9XxtJMaJeV 8tWzLg5/XQPEcoUQlKIiVS/ieaRtw8fpJzoOTyCya524IMZmu/WABeCiqWsRuo9gVURo Xbmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=TCPLE07GprHeCRJB1dOgcZEjpdPq49lqGAMoL1+eQr0=; b=Wwqq5ECPgiDLettPOypJJmg/7JtrtrI5SECyTzpiVPPxz7Fk4lCkE4TNakXfp6j71O sXK5efMS2Qc9uv5ipRfv4A1deJk+HTgZ9RDiYpGtRhaQbCMItoQ7y4Ix8vQNEjttZgMA lEHmrjSUWxQJycwkmvvcUHdqz+TgSh94Y9Aw/RsDeRsMY1/BGuUNn1mfzujt4ZIZ7Zzq HPcE/Ndbh288Ztias4vOWRFs5ebltS5JyQBeQO6kHsLRCEzTj+qYEBEbb3JuhQQSlxMM KXEUpiTdUGsNR8sSM5sRQizXNJsX0c65wXyL1LqnP8KnMgegbZri6n5CZgE86D26zPJe bA/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=mfMl55jk; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a63a505000000b00458a4779f56si2583455pgf.558.2022.11.30.14.56.15; Wed, 30 Nov 2022 14:56:25 -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=pass header.i=@walle.cc header.s=mail2022082101 header.b=mfMl55jk; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229565AbiK3WcZ (ORCPT + 84 others); Wed, 30 Nov 2022 17:32:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiK3WcX (ORCPT ); Wed, 30 Nov 2022 17:32:23 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F871880C4 for ; Wed, 30 Nov 2022 14:32:22 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 838AF124D; Wed, 30 Nov 2022 23:32:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1669847540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TCPLE07GprHeCRJB1dOgcZEjpdPq49lqGAMoL1+eQr0=; b=mfMl55jkYAJIhjINB/HjyFEsUrIiGUHzbyK1aIIeJVWi6OMlUFZ2doGG9hxm6FB5RLE9Fv N0TOv9sHIlEknxKTMM+wrXz8LLH2UJgh5PGREUAgIEE3nBJjCIi+W39fZETW7io4YqotqF 9iOFKR5UmuDYXBfGQ5QuMWSjpNIibL+VPVh5wBmr/PsyVXXN0Dv8yk+iMdm0aDJ7k0VNyR 8J+F5fe2dzCa9X4LWDRyDOapSmrUC8L9ElSwbExccBkm3jCq4YDzYBZ21cgN554ulgsA9u Hy/p3cVRrftASdon1Aqjml5WBAinQUXyytoX1bw1PaDPeeYH5cCVeDWV+S9lqg== MIME-Version: 1.0 Date: Wed, 30 Nov 2022 23:32:20 +0100 From: Michael Walle To: Nathan Barrett-Morrison Cc: greg.malysa@timesys.com, Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: issi: Add in support for IS25LX256 chip, operating in 1S-1S-8S mode. In-Reply-To: References: <20221128172455.159787-1-nathan.morrison@timesys.com> <2acae3be377a5d8c3df66f860d944dbb@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 2022-11-30 16:34, schrieb Nathan Barrett-Morrison: >> Does this flash have SFDP data? If possible, this should be >> derived from that. Could you dump the SFDP table and >> post it here [1]. > > # hexdump sfdp > 0000000 4653 5044 0106 ff01 0600 1001 0030 ff00 > 0000010 0084 0201 0080 ff00 ffff ffff ffff ffff > 0000020 ffff ffff ffff ffff ffff ffff ffff ffff > 0000030 20e5 ff8a ffff 0fff 0000 0000 0000 0000 > 0000040 fffe ffff ffff ff00 ffff 0000 200c d811 > 0000050 520f ff00 2224 00a9 8e8b d103 01ac 3827 > 0000060 757a 757a bdfb 5cd5 0000 ff70 b081 2238 > 0000070 ffff ffff ffff ffff ffff ffff ffff ffff > 0000080 0e43 ffff dc21 ff5c > > Looking at the latest SFDP document from > https://www.jedec.org/standards-documents/docs/jesd216b, I see > 1s-1s-8s would be in BFPT DWORD 17, which appears to be 0xffffffff if > I'm reading this hexdump correctly. There is no dword 17, the table is shorter than that. But there is a 4BAIT table at the end, starting at offset 80h. And from what I can parse with my sleepy eyes, it says "support for 1s-1s-8s via 7Ch" and "support for 1s-8s-8s via CCh", which is consistent with the datasheet. So all you'd need to do is to extend the sfdp parser to parse that modes in the 4bait table. Btw there is a newer JESD216F (you can get it from JEDEC for free, you just have to sign up there). >> why? > > This was because ISSI's default_init was setting a quad_enable > function pointer which is not relevant to this part. This probably > doesn't need to be done though, as SPI_NOR_QUAD_* isn't being set in > the flash_info table and therefore quad_enable will never be used? Yes. The SFDP specifies 111b as the enable method which is reserved according to JESD216F. I still vote for setting the quad_enable to NULL if there is SFDP which should know better. This should be "fixed" (IOW unset) by the following patch (but it never made it): https://lore.kernel.org/linux-mtd/20220304185137.3376011-1-michael@walle.cc/ -michael