Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5898700pxb; Mon, 14 Feb 2022 10:07:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJylyBkW1H5eY++GaGFxOQ4EF5+CKYKmmQQr7GDA9PghFURkivEZRK76rxmxgAnxQtoVq0JR X-Received: by 2002:a4a:5547:: with SMTP id e68mr6770oob.16.1644862057036; Mon, 14 Feb 2022 10:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644862057; cv=none; d=google.com; s=arc-20160816; b=zrqbyyryXXOjLI0QRVJpzD1NEP5ZAOctLjYUo+Xvk6NB2ghzDr9FgaQc+/ly8J2SV4 EY+Al9YP3gA5ulP0LcuZbG/3Vc9uE++Ix0Sb85QlABK4/MbgeOxCOT8kyIsKmwh0W6Ud PXu+LHZrzJfYrflEYNY1Yuj/FpE1Wb2OP6MDraDhV9MqILeka2LzzbwslTrgTm/ZSKZs J2gBY+ksb/XG12fur4UFchBn4pCSDlfEgnm69qQHnygNyZ045PXS8BhQKk3EVcvNb6NE DSKFpDLovE8I3ZPopazyFLTAZDC3Ycl5dGnP6A6ENYJg8EFisn4yf8vcFaCFqKvCjlIL zovw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=zFkrBEOkTziVLvpC5Dh0i0NtzrPT7aW4c4/APo1N0gk=; b=XUXy2eT4LZRzndNmieQ1Qt6JSuWeirEkYT5RzbnffTAvjwrUm537adAE4ejoKJjz0O QLxBeGPQqWKJKDcGeNZ2+FKnCs9h4UF7FqNTKK6mOfQPv/K4J2bgdkT99c2v53CKz0J8 0K9/poRQ+AgqyrcZOh2VsU2n0oMCTx0YTQMAbu5R4vsDS4NSIXSYDL7nbDU6mE6/zvO2 egiO2zpaNjyPMP7McFWCCpJOsKvSqLMCXp5TbXkiTdntauZMoZBVZIinKl78GMEvYnv3 E81ZJoUZ5wvgB72LHp/Z7mX+i6VbPfr5j33Xn4hpcUUINHo7oeq81t8s9b1HSuYo/yZa A+Yg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21si14044760ooa.23.2022.02.14.10.07.21; Mon, 14 Feb 2022 10:07:36 -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; 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 S1356320AbiBNQXV (ORCPT + 99 others); Mon, 14 Feb 2022 11:23:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237864AbiBNQXR (ORCPT ); Mon, 14 Feb 2022 11:23:17 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5CE850B23 for ; Mon, 14 Feb 2022 08:23:08 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nJe7f-0008Lp-1r; Mon, 14 Feb 2022 17:22:43 +0100 Message-ID: <579eab10-594c-d6b2-0ddb-ea6ab8e02856@pengutronix.de> Date: Mon, 14 Feb 2022 17:22:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1 Content-Language: en-US To: Tokunori Ikegami , Thorsten Leemhuis , linux-mtd@lists.infradead.org, Joakim.Tjernlund@infinera.com, miquel.raynal@bootlin.com, vigneshr@ti.com, richard@nod.at, "regressions@lists.linux.dev" Cc: Chris Packham , Brian Norris , David Woodhouse , marek.vasut@gmail.com, cyrille.pitchen@wedev4u.fr, "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , linuxppc-dev@lists.ozlabs.org References: <3dbbcee5-81fc-cdf5-9f8b-b6ccb95beddc@pengutronix.de> <0f2cfcac-83ca-51a9-f92c-ff6495dca1d7@gmail.com> <66ee55d9-4f20-6722-6097-e53c2108ea07@gmail.com> From: Ahmad Fatoum In-Reply-To: <66ee55d9-4f20-6722-6097-e53c2108ea07@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello Tokunori-san, On 13.02.22 17:47, Tokunori Ikegami wrote: > Hi Ahmad-san, > > Thanks for your confirmations. Sorry for late to reply. No worries. I appreciate you taking the time. > Could you please try the patch attached to disable the chip_good() change as before? > I think this should work for S29GL964N since the chip_ready() is used and works as mentioned. yes, this resolves my issue: Tested-by: Ahmad Fatoum >>>> Doesn't seem to be a buffered write issue here though as the writes >>>> did work fine before dfeae1073583. Any other ideas? >>> At first I thought the issue is possible to be resolved by using the word write instead of the buffered writes. >>> Now I am thinking to disable the changes dfeae1073583 partially with any condition if possible. >> What seems to work for me is checking if chip_good or chip_ready >> and map_word is equal to 0xFF. I can't justify why this is ok though. >> (Worst case bus is floating at this point of time and Hi-Z is read >> as 0xff on CPU data lines...) > > Sorry I am not sure about this. > I thought the chip_ready() itself is correct as implemented as the data sheet in the past. > But it did not work correctly so changed to use chip_good() instead as it is also correct. What exactly in the datasheet makes you believe chip_good is not appropriate? Cheers, Ahmad -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |