Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6324273rwl; Wed, 22 Mar 2023 09:09:18 -0700 (PDT) X-Google-Smtp-Source: AK7set9r9d8Vf44b1lTDHWdwqpcRI5e3rJC+BqzU4PGJN2/1UyIh8i+M1CuRAimWB5cQyr2aVsrw X-Received: by 2002:a17:906:1853:b0:92f:fc08:bb0a with SMTP id w19-20020a170906185300b0092ffc08bb0amr7218469eje.37.1679501358724; Wed, 22 Mar 2023 09:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679501358; cv=none; d=google.com; s=arc-20160816; b=CKlG+NdrFsRIle7rBolzItvfeKPqkDi3nSHOq//sR/d4laiLgi1dLw7U0Sdre4Gwc4 FCetnsgVFSljhmV7kSJ8OzjDaF7ld+fMdtEW668Ev5hcknwrs6xK27NRI8wZWU4QMy/d tLn5z4uYF/0BbMMD1RA61yYEvP5VEjvK4RqdqeAGtLV/ktnKrQt2aflexpV24sMk+N6n UCp8PZhAZqlTykV663FLODKXO6sC1rB/sW3nndfyUYAVp2Jq0SiUvudkImI5459t6JeD JGeGCVtNIKhBFtS+fY+mGtk3n2FG6QJr8Zc3rdg3k+LyDSfA08sV6iC9LzMmt2t5INnL IyZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iMNRn5L+CaeB59tcwag0gxW6LL0loCqp1DLAG5DxHE0=; b=0FEDsDilkdksl/r9osBoD78BUOwRp5qPNVGKZ7QRplJfHMp1pODv7P8Z6mGaFqSBvo 2fWuc1exG033vlb3CNLMTugmIxBNUv7DxET2tSbTkOBfbgCkQYwO2Sk2M3HPLzC81s23 IKTvjY4Gv1sIvmiA+ZeEAkUjsJey7tNO+MKLvRBXwEAS0PEVuH4DGcVTZLRKCOvJz8rz K0OzUgQxb+HjEFeJanUVLNU47z/dCBL/B03mrcTAP596QskMQZ+uozTz9BNimQOzWKwP j1hZ3XAk1dIfdKhfycI7w9DaIlhuv4A8qBIKvG222rovL8bzExbd99QEo769tefYoO06 RXNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nOP2Odox; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz44-20020a1709077dac00b0093336340ddasi13364385ejc.708.2023.03.22.09.08.52; Wed, 22 Mar 2023 09:09:18 -0700 (PDT) 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=@bootlin.com header.s=gm1 header.b=nOP2Odox; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjCVQIC (ORCPT + 99 others); Wed, 22 Mar 2023 12:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbjCVQIA (ORCPT ); Wed, 22 Mar 2023 12:08:00 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF9E2D55 for ; Wed, 22 Mar 2023 09:07:58 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 32DC5100003; Wed, 22 Mar 2023 16:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1679501276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iMNRn5L+CaeB59tcwag0gxW6LL0loCqp1DLAG5DxHE0=; b=nOP2Odox8fG1yzMRTLe71QAaBJiw3BMhKjlGTyUZgFKn7I27vSjMlNQnzuiIZ9pyt6tHF8 CleOUFiD8hWifzswVuB66uveeMSsHCxTlN+indvbCh5QjRAPyAfOJjajU1GWUtL209E6VL ZrLDlyE6auMsL08EeABhoeLEVaXgFIVns7HCPJNGN81RbqtJl8IO3oiISXqpP+lA1Tz1W/ F6GweoMQ6RVffRlizsqEvjg584YqLFiMTHSNqkyq8iicwJLSjRj1Js13kKQQ5ZAcmuelqi mLsJens0IkEYRjVuqNy+NXw0paHG78albya8Pv92cAM58HC+3cFvSJiQ2V6AqQ== From: Miquel Raynal To: Arseniy Krasnov , Liang Yang , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Yixun Lan Cc: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [RFC PATCH v1] mtd: rawnand: meson: invalidate cache on polling ECC bit Date: Wed, 22 Mar 2023 17:07:48 +0100 Message-Id: <20230322160748.2232587-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'e732e39ed9929c05fd219035bc9653ba4100d4fa' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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 On Mon, 2023-03-13 at 07:32:44 UTC, Arseniy Krasnov wrote: > 'info_buf' memory is cached and driver polls ECC bit in it. This bit > is set by the NAND controller. If 'usleep_range()' returns before device > sets this bit, 'info_buf' will be cached and driver won't see update of > this bit and will loop forever. > > Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") > Signed-off-by: Arseniy Krasnov > Reviewed-by: Neil Armstrong Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks. Miquel