Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2676967lqp; Mon, 25 Mar 2024 06:26:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU26tjKB86bkSEsPDixEA9Uo2zAcnXLrd7ToGfProf5YVO42H/5PoApsEndx9cdhP2geX+c/PXR8cFum4nrNksjLqoCc+l3tmxnHUMpFA== X-Google-Smtp-Source: AGHT+IGDIlqlrYB+VSol7G8AztIThk7YOC8FenvFHIZ4k27JcWMIgW81lFDHDRF3cRAz1M5cjqZ1 X-Received: by 2002:a17:907:7841:b0:a47:30b2:3af6 with SMTP id lb1-20020a170907784100b00a4730b23af6mr4620938ejc.51.1711373169181; Mon, 25 Mar 2024 06:26:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711373169; cv=pass; d=google.com; s=arc-20160816; b=zOaWbR6Dn1bhTCdRqy25saTXxkrY9zvFTz9P/9iK9wOwUIgPT8k27gdzv1SAqt0SgJ kxLjiTBcqegFzTC1qhA5kYy3J4JPnYDlZi5y2akgzTAKAly7A0IhwTI7VBbuDckEluqs pUhuUsuZZc1nVdAhZ77NwufWO7S9qZPiBwwfH83Wf2fOMrE6fLu/BZHCmRTQ2u/nTy/L wyPs/RSkxhVUwoCtaMAcmsGc6MQgniaIkHjt4W3XjSE9SRR7x4ArmnkWJisJ8h9H+aXL q4JVhnS641P592SB8CTZRyzfvwDqZCjxon8aXHNUDRDOp/ZvK9b5X4gkpp6iPaY1nnm8 qz6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=qU3idiONxQ8MOsIGn2G3Z38vry1Zi7EOzhSXkBaZx3c=; fh=2uJj9AsW3yIJqyUDyRV+XSPuh545U+5T0vZwzZmOO2c=; b=ou2q7kaC8+a0EyJRKXPhbK0tVtSnVxjhsruigaq6Zyi8aHpnw/J3Dt1MWUlsQU4QBi pG3tDBGekE2nnn+GUnWo7pAmOCm56W10kH12xF7Y2eMOltoBkpurDH5rEBJBgV69JX+d YmmoG/siW6nGZr/YJx9ejVoDwGYHnFgc859IVqxEAHfKQP09YRJpSmo7OYWjTEw9haQP 3TxkybN2dG2kyFWDN6d9phXvqu/J6qcEOQeBukCgoPfYwYDuO68VW/SRENf6ZoybnbIq lsMW4aLRgk6yOkHHlMzome1vbh8zN0GcRqHk0v7KUQqtAhB1q2j7U8f8Po916AeYNjb0 o++Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oQULipp7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j25-20020a1709062a1900b00a4a33a2d861si1010971eje.752.2024.03.25.06.26.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 06:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oQULipp7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116643-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D772C1F3B756 for ; Mon, 25 Mar 2024 13:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9656189259; Mon, 25 Mar 2024 09:49:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="oQULipp7" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5851D158DB5; Mon, 25 Mar 2024 09:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358383; cv=none; b=oyjUZisAAlDGuZupBIFGKEJYV3eOTkKrhUvTYTk/+sWZVawDY4tRTThGU1WycQ4bslSXTMgiIkeX7BbulC9ptBMUQkILSD/zsy/FJWvGNmHZE4XX7qIfgnXmEGZzqEF1u251pQQyfmH7LToqYoV62IRFz7lN2mCZVitf9OgvNUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358383; c=relaxed/simple; bh=H3V7nr7fyekfvV8hDUpZrAFWcpoaN+qI3h65nywyXl4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rMdKo0dwOAa964Q/JPfaOuEPP5Go4pKnVYEE3nynCkMZASx4QlowBBkGfB2X+ueKl31J6GQVzcaYArSP/3navCZ0/Tbvebi6n36aGrBGQEdjK6GHpnPHI38CLeW3lyWkgfrDh9CmZ05AJ/Zb6TgUqkR9vEPh+JScc31B6TL+CGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=oQULipp7; arc=none smtp.client-ip=217.70.183.198 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id E2A8FC000E; Mon, 25 Mar 2024 09:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711358372; 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=qU3idiONxQ8MOsIGn2G3Z38vry1Zi7EOzhSXkBaZx3c=; b=oQULipp7fpuoLENxFEYSzusTa1N+3RT+c29MLC61RSlUAX89wB4XuGe2h/91Is/HVsnDLe 1JB5u38X7Yt6TEYS3+2WbV7uIBIBTYaaRoNGULhdRvDjj/qUh3KqiS1WjXWYJAJlnPuQba DvXrnZ1Ms9dX/jhDnqfFcCv8xtTg0ElkoUZEVRcittP8umfxjanofuuFPxuV3TyRlL8ANJ ASwAvZRvzp53EHJkUTgng/7li2TTo46X+0nj41A3KvDP3ppm9qda7+0QExcXYoy8AJLKhy 2jj747yfAYmAv1ivg/v5IWzu2EsyLXRCXaQzGzOz9Q4BeZrEhKBQH6UIlHLPNA== Date: Mon, 25 Mar 2024 10:19:30 +0100 From: Miquel Raynal To: Manivannan Sadhasivam Cc: Christian Marangi , Richard Weinberger , Vignesh Raghavendra , Sricharan Ramabadhran , Md Sadre Alam , linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: qcom: Fix broken misc_cmd_type in exec_op Message-ID: <20240325101930.13ed914d@xps-13> In-Reply-To: <20240322150510.GC3774@thinkpad> References: <20240320001141.16560-1-ansuelsmth@gmail.com> <20240322150510.GC3774@thinkpad> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi, manivannan.sadhasivam@linaro.org wrote on Fri, 22 Mar 2024 20:35:10 +0530: > On Wed, Mar 20, 2024 at 01:11:39AM +0100, Christian Marangi wrote: > > misc_cmd_type in exec_op have multiple problems. With commit a82990c8a4= 09 > > ("mtd: rawnand: qcom: Add read/read_start ops in exec_op path") it was > > reworked and generalized but actually dropped the handling of the > > RESET_DEVICE command. > >=20 > > The rework itself was correct with supporting case where a single misc > > command is handled, but became problematic by the addition of exiting > > early if we didn't had an ERASE or an OP_PROGRAM_PAGE operation. > >=20 > > Also additional logic was added without clear explaination causing the > > erase command to be broken on testing it on a ipq806x nandc. > > =20 >=20 > Interesting. I believe Alam tested the rework on IPQ platforms and not su= re how > it got missed. >=20 > > Add some additional logic to restore RESET_DEVICE command handling and > > fix erase command. > > =20 >=20 > This sounds like two independent fixes, no? Please split them into separa= te > patches. Might be split indeed. @Christian, do you plan on sending a v2? Thanks, Miqu=C3=A8l