From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A516CE7B1E for ; Fri, 6 Sep 2024 15:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bShx9qS3RjTU7WY6871ftxYErfkPGjSbqzocHZ+wtwU=; b=zbv9ufbQ3jPLc4h3cw4hF3nRhR 3awOnfJ5/AQq4u/BHdg2YE5vQX85p2B749NsAeF6ke6NoaLdF0dPUEjoxjg6CHycXFITV48Z5WjIk uGU4ZIwBF4ArGEWhZa7bHtlan8IX1IAzj6YyZ4nMhVK0eghc64VQ8Y/1EJA3bvtwu8M48KP6LJzy8 e3MCyzMiz07kG3W2i/AshwdwRHAoY+B4QX5zs2fnMzpfF1RGXZ9aUIE06G3Xs1XNSNK0UilFIb6Zr S4A9Toz6e975hZXsKIAIlUBLy2SodImo4WKHQ3iWkN3mv7wSfWWhavoTZksJTQ9B+mHO3b9zE8j2b mfHMoIDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smaWz-0000000Cfnb-1Yi8; Fri, 06 Sep 2024 15:05:49 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smaTu-0000000Cea0-2dml; Fri, 06 Sep 2024 15:02:40 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4800BFF80B; Fri, 6 Sep 2024 15:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1725634955; 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=bShx9qS3RjTU7WY6871ftxYErfkPGjSbqzocHZ+wtwU=; b=RxTlNtDsykLrUo1s2APsrcIn5dYaIW20JHNiY0KsTNIVkTLQ0l0vEXLPZM2MBO6t6fY3NA oQhJjp8z92/9NMnoH2x21Sy3W+cUnmRmbrzFIt+1s9LofZsGH03WX2cZh5z152cjGCKmdX o39sEl2W8B1enavLVwVWXbN/WAc2vZGjLMnQFFvOLoEHde3NDoiC3Bt6R37oELyc57D57x UWtqp+jIAIRQRwlClayHtNYtuS63AhJoGP4cSBxZub66HyOSCWF76UgfWL/647KQy4Q5Ba qIi+n24S2+AVKNBQR3/qWAgPKDwWrfbarybcc9GzA8w++e55sJ42CdSddbOp7g== From: Miquel Raynal To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-mtd@lists.infradead.org Cc: Matthias Brugger , AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni Subject: Re: [PATCH next 1/2] mtd: rawnand: mtk: Factorize out the logic cleaning mtk chips Date: Fri, 6 Sep 2024 17:02:33 +0200 Message-ID: <20240906150233.734100-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240826153019.67106-1-miquel.raynal@bootlin.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'96127aff3b6659c52176415ba04da4145121440c' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_080238_844586_6FB7502E X-CRM114-Status: UNSURE ( 7.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 2024-08-26 at 15:30:18 UTC, Miquel Raynal wrote: > There are some un-freed resources in one of the error path which would > benefit from a helper going through all the registered mtk chips one by > one and perform all the necessary cleanup. This is precisely what the > remove path does, so let's extract the logic in a helper. > > There is no functional change. > > Signed-off-by: Miquel Raynal > Reviewed-by: Pratyush Yadav Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next. Miquel