Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2640078rdb; Tue, 12 Sep 2023 07:57:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYzr3wEnbYokF8RQ+GfbeUluIAIMM7aswwHsUf4bv9PQexx0UseurzLu/oXpDqfoiDF3NX X-Received: by 2002:a17:90b:784:b0:26d:416a:b027 with SMTP id l4-20020a17090b078400b0026d416ab027mr11576690pjz.31.1694530666594; Tue, 12 Sep 2023 07:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694530666; cv=none; d=google.com; s=arc-20160816; b=C0RkOoTlfjsjJAWYfIPXMA23LqIOGJWl3qN7rn+gejLlEzX3ruKbUCRJHNXBUTCabL mElWltnnoGTJWwqQFTsywdkA4ScNMT17E135ogqVTIt2gPjIitvx6eAlFXN9gXML1/ES GP966Sf0mqtcvzK/W3GMnDSEKD5SXzeaKRT/NkGeQhkezs1J9KFWETWARPdZ9wqmMta3 QgrhC8XFDXV8pblouguVNCjuqerIc6k7ysNRvvUmmYNbF7IaJ+/b3AVIa8k5IWqRGioj 9WTqM1kEJIW1PCTBkbx/zyYO8z+TEWJPmCbZEFI762FsWd0dOfD0Rrv7dudcE70wfUO0 34mg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=6w4eE727ahcXyxO0B8znMsuiPT1RLt1MBCIFRc4fPgg=; fh=s0phb9UowzLhVIuqTgH7wUZpwV9jjWJzZJKQQLoK85w=; b=Q0xiJ6lRX7DTZd69z5Ik8XBA6fM1rZxI2VQQsrjvp1QeLkgLZyaeV+znIdgRRE+knF V/1013mMjaLF9SVAOG3rXuc1ZLH+d8X0SOVIpcjTaKcZZGm3IpdZ+C8w3nshDoJn1MGx v5qaZLJQBAS73+xg05LG6nTk5adPKxfPcLvnGyac13X6k9SxKaOt0tO7IjCtY3w2Vol3 Ki4WkG0kVZiPPbJQsS9hkTSpKMp4PBQvtMXckz1wL3f72jJfD2VEDrTVvwIObKV+bk7w +vto5F4OznzW7C6MCLRS7mhUKXagMs+qkgAtrgQLwXa+phrRH9vp9OoJKApVvNJGLiQn RQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="jC/r0aqR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u14-20020a17090a410e00b00263fa42fdcbsi9625202pjf.107.2023.09.12.07.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:57:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="jC/r0aqR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C1B3480E4FD9; Tue, 12 Sep 2023 05:29:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235108AbjILM3Z (ORCPT + 99 others); Tue, 12 Sep 2023 08:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235295AbjILM3E (ORCPT ); Tue, 12 Sep 2023 08:29:04 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D55710F3; Tue, 12 Sep 2023 05:28:51 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8726E2000A; Tue, 12 Sep 2023 12:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1694521729; 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=6w4eE727ahcXyxO0B8znMsuiPT1RLt1MBCIFRc4fPgg=; b=jC/r0aqRQO/YPCJ8STlSaOY/dw4Vx09EJUWrU8X0QarVh46T7R2kyaqz+mdIXe2ucdLx8Q +7lSNpDrkMAYoQHely2wZKOF09lu6WINOQFz2TsjyJ/wf72PQepBKoyoY2Kwf9Dnic23UZ K81+HS27EPt/QMfNxuTQ+Ex2OBVjuNGP2O47bgrY8G1AufFPpRS/dVTjzU/n3Xvd9/jyTP y2hj2+keElhyWHi+iERfeNCxbHNdVxSob5YxwUqmHMv0htPqUgjLYbtO6kUfhCIz0XBI8x qXDxP5iDkGCcAlPQy18rUefZUWlR/i2k85i564hN8QA7Cg7GPb4PS1tX+FQGog== Date: Tue, 12 Sep 2023 14:28:47 +0200 From: Miquel Raynal To: Bibek Kumar Patro Cc: , , , , , , , , , Subject: Re: [PATCH v4] mtd: rawnand: qcom: Unmap the right resource upon probe failure Message-ID: <20230912142847.4610c0a0@xps-13> In-Reply-To: <20230912115903.1007-1-quic_bibekkum@quicinc.com> References: <20230912115903.1007-1-quic_bibekkum@quicinc.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 05:29:34 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Hi Bibek, quic_bibekkum@quicinc.com wrote on Tue, 12 Sep 2023 17:29:03 +0530: > We currently provide the physical address of the DMA region > rather than the output of dma_map_resource() which is obviously wrong. >=20 > Fixes: 7330fc505af4 ("mtd: rawnand: qcom: stop using phys_to_dma()") Cc: stable? > Signed-off-by: Bibek Kumar Patro > --- > v4: Incorporated suggestion from Miquel > - Modified title and commit description. >=20 > v3: Incorporated comments from Miquel > - Modified the commit message and title as per suggestions. > https://lore.kernel.org/all/20230912101814.7748-1-quic_bibekkum@quici= nc.com/ >=20 > v2: Incorporated comments from Pavan/Mani. > https://lore.kernel.org/all/20230911133026.29868-1-quic_bibekkum@quic= inc.com/ >=20 > v1: https://lore.kernel.org/all/20230907092854.11408-1-quic_bibekkum@quic= inc.com/ >=20 > drivers/mtd/nand/raw/qcom_nandc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qco= m_nandc.c > index 64499c1b3603..b079605c84d3 100644 > --- a/drivers/mtd/nand/raw/qcom_nandc.c > +++ b/drivers/mtd/nand/raw/qcom_nandc.c > @@ -3444,7 +3444,7 @@ static int qcom_nandc_probe(struct platform_device = *pdev) > err_aon_clk: > clk_disable_unprepare(nandc->core_clk); > err_core_clk: > - dma_unmap_resource(dev, res->start, resource_size(res), > + dma_unmap_resource(dev, nandc->base_dma, resource_size(res), > DMA_BIDIRECTIONAL, 0); > return ret; > } > -- > 2.17.1 >=20 Thanks, Miqu=C3=A8l