Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp831403rwp; Thu, 13 Jul 2023 01:32:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAXbu57vsWR9i0dG1InsNaknt6J/7BnWZwhy00r2xQTcVRtmvKZxBxvQlZa7C2f7GUF+hl X-Received: by 2002:a17:906:105d:b0:993:e883:491f with SMTP id j29-20020a170906105d00b00993e883491fmr917925ejj.8.1689237123935; Thu, 13 Jul 2023 01:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689237123; cv=none; d=google.com; s=arc-20160816; b=BmN2nPsqad6+jE0YGU+IkUM7U+6VtFm9Ff+5/A2IpG6EUZFpa3JH0EEvr30qle4NOP Q4omuSCCzkfjdPzDlPX7OaQLu8hO4kJgYVWieFn6o60sn5hlyxGFaL/Ei0wvVwPMBFQR zJKGDNq7fRKX/9Dd/RcPqErElYWGanhsi1YT9oJdlaVd6blZlFHUjk4OlZxY67/6Xx2/ Pw+i9EGdYzhAKuCWJzexEWfWkcfvaIXYW9xbCnTQC3KDkFdjngV166oe0xWlfWth8pJt 0DWL2ierzfAbL7ZcZdpOy2MtVijrro2aL7XCT/khWOpNhj9mV8PyHDwmHe2otEuOhc5v TrCw== 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=oMw82xarIgJk+pRCxPkRsMQk1JAXiBa8tbjef/Uncoo=; fh=/81Eo7k11y2M45NCp8V0Zm3iadMq0WWOGBtD4i4RxEk=; b=HVPJtjr8+Qg30GVbX58N+1ogkcgnwjnA9dhknLFaZHySGRLkqkYo2Q4iIMj+afN2fx /POv1BItSNsGna2A05CIqWUmAsH05tLUGIGahyZMO2Xtdg/NWb40y4lGUK0WTezDPRiw w4TFzszUw9mCcCV9yAXDk6WCv4uhNa8khhyPe42SP5yymrCXsfxwe4Yhtmk4fzaQVI// cBDGAZbmEA5AV3VGIjTKDZGfzC16eQ2C6qlKedWEv0qjfkK7zym8Siw6n+aDg558pnbY IypTGYi5w4bY7I6NTpNYdMqVKCy8AkDyaQ+aQzxE1XXto+5IxsUaD8v9P37NlPCWkp2Q DMyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=p6iJ9BzS; 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 l13-20020a1709067d4d00b0098896420108si6799886ejp.170.2023.07.13.01.31.38; Thu, 13 Jul 2023 01:32:03 -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=p6iJ9BzS; 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 S232902AbjGMH7e (ORCPT + 99 others); Thu, 13 Jul 2023 03:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjGMH6s (ORCPT ); Thu, 13 Jul 2023 03:58:48 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A92271B; Thu, 13 Jul 2023 00:58:42 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6BD64FF805; Thu, 13 Jul 2023 07:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689235121; 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=oMw82xarIgJk+pRCxPkRsMQk1JAXiBa8tbjef/Uncoo=; b=p6iJ9BzShzr1+CKoyehGxqpNs4S2XE/jgLVBUzcATe+Xww002z7MACEo5vwGjF7tHp1nX0 TWwHB6jQrwMg9Pmu5Q8h3Gk4H62dlGe0TrFe7fHEkKtGVQWOgw/ArQS/gDxGC2kjqyxLh7 7uIZIITXbmmU56AW5WB1H1UVmCf38o+kfoa/Uap4t2xst27L2IjzUxsH9OFlZfrDxhqXvY aH2QWst2F4beq84ppBtgfERhwaK1EJtpoeJX6jAF+2Dvw6hmIgZzBQQklHDgI/+cet3iTq doZ6wsqozU3RLzQN1OkuAVJ2bTqqs6ObFztGaDjP+G72x5Koznqk8md07G10LA== From: Miquel Raynal To: William Zhang , Broadcom Kernel List , Linux MTD List Cc: Miquel Raynal , f.fainelli@gmail.com, rafal@milecki.pl, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, computersforpeace@gmail.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, Florian Fainelli , stable@vger.kernel.org, linux-kernel@vger.kernel.org, Vignesh Raghavendra , Richard Weinberger , Kamal Dasu Subject: Re: [PATCH v4 3/5] mtd: rawnand: brcmnand: Fix crash during the panic_write Date: Thu, 13 Jul 2023 09:58:38 +0200 Message-Id: <20230713075839.486507-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230706182909.79151-4-william.zhang@broadcom.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'e66dd317194daae0475fe9e5577c80aa97f16cb9' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 On Thu, 2023-07-06 at 18:29:07 UTC, William Zhang wrote: > When executing a NAND command within the panic write path, wait for any > pending command instead of calling BUG_ON to avoid crashing while > already crashing. > > Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller") > Signed-off-by: William Zhang > Reviewed-by: Florian Fainelli > Reviewed-by: Kursad Oney > Reviewed-by: Kamal Dasu > Cc: stable@vger.kernel.org Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel