From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795443271; b=zicqUHvq6Uptamu47FDUKc9AQG39TFBzXcyBpG1pgkv7COeDf/OMgrDKt1AAZFNgyZTf u5/INxxy0jZLfbOhGCzKhWDNNHMyvplIZhZcOWDeoTwH0mxwrZsmZtGEJ/Z8mUYQdRXG1 ShzWb5MzklT63SHS1GrZ7JcRMuYqzU6uWwbv+XDwIA6atpLxLmwIZIlezmwJE212lXs0O xU0QdmjpGqyCbTQ01E5s+fm3YCS/r8yw0qT/jiqJR1HRjtBoLUDjGXQ4dSSLeRc6GLLYP y3uTsQyJiusGC72nKMKSYTtvd0il6JvrRd/IDhQqmkwPBqqjg8vOm7cX4iXx3Yq90cw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795443271; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=YFuuXMnMJsjCk7IZEU6QZfVyQzHNOrTyxoyMyX8RSv4=; b=psHCAL/2gv5iSY59yICBVmSfw94M+BqLGpEkm7C8UaO1yk/BHXDzDuxi1M4+M7/aXyLF ikoE06UD9lhQGnPhuJw+3GHKoLl+IaZTXCO7On5mv9srtm+CP7KTqaHVRp0mxXOynu3CS Qfkf88cvDLwCgA8i5U+8dv8VeWdirm1PTDA/T416qkV9WARxurv+Bwvwd3MrC0W/ihxuK lxAieznr9frI6jCIVx7hjJJieaZ4IbUinkCzIeSazbItu+8gjUpuzYKuro47Ucf9R5ljY 6rbue1Gl4bt6zFfaacYPlR21MSY6bGPCxBYustYbVUpB+cXczNzS617x3nCG4K8Zxug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=PEVEkdtw; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D7EA606A31E for ; Mon, 23 Nov 2026 14:14:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D7EA606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=PEVEkdtw Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id DFDCA1A1799; Mon, 23 Nov 2026 14:14:29 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B5FC3601E1; Mon, 23 Nov 2026 14:14:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BCC3E11E6A4E0; Mon, 23 Nov 2026 15:14:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795443268; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=YFuuXMnMJsjCk7IZEU6QZfVyQzHNOrTyxoyMyX8RSv4=; b=PEVEkdtwJ3ypvl2uVYdoLWPkC7VS8oVuBbq+e5nfvuYY3hNkl6Nv+x0wezwbYtwIOyw+mb Oteg8KFs5zKYzRMc77Go5nbInAbCL4r2VE8HvpudxzQjLnUzF4GLsjnZX2no2HmCOEkNRV G6k+xXLkkBlQTLN8SEGQsR1JGlqreIEl5jewc+92j8mBUcfmoW2Jxalfu0TDEny8SS1aUr mTWVCdP14qBSW69oddfAuV2LAlTdD1E7s1aZ8u2y+nVprzrEiW2uUs2pQ4RJX6zOqDqzx1 YbJGL52HoVJvjCecE6NEwLZiScqUxWdsKMvXRJ5g1TfimfHUuYnjyy3KlWsZLA== From: Miquel Raynal To: Paul Cercueil Cc: Pratyush Yadav , Michael Walle , Takahiro Kuwano , Richard Weinberger , Vignesh Raghavendra , Mark Brown , Kees Cook , Tony Luck , "Guilherme G . Piccoli" , Thomas Petazzoni , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Bharat Bhushan , Sunil Kovvuri Goutham , Tanmay Jagdale Subject: Re: [PATCH v4 3/7] mtd: spi-nor: Add support for panic writes In-Reply-To: <20261016102917.171095-4-paul.cercueil@bootlin.com> (Paul Cercueil's message of "Fri, 16 Oct 2026 12:29:13 +0200") References: <20261016102917.171095-1-paul.cercueil@bootlin.com> <20261016102917.171095-4-paul.cercueil@bootlin.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Mon, 23 Nov 2026 15:14:25 +0100 Message-ID: <87y0ajtz26.fsf@bootlin.com> X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 16/10/2026 at 12:29:13 +02, Paul Cercueil wr= ote: > From: Tanmay Jagdale > > If the SPI controller supports it, provide the functionality of doing a > panic write. > > Update the spi-nor core code and controllers to make sure they won't try > to grab locked mutexes or sleep when doing a panic write, as preemption > and IRQs are disabled. > > The information is carried down to the SPI controller driver through the > spi_mem_op structure. If the corresponding flag is set there, and the > SPI driver does support panic writes, it then has to respect the same > rules. > > Signed-off-by: Tanmay Jagdale > Co-developed-by: Paul Cercueil > Signed-off-by: Paul Cercueil That's reasonably close to the NAND version. Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l