Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3608748rwb; Tue, 20 Sep 2022 02:02:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5V8F5g8+3c6tXnvK/4E4xYXZgNMPadRjhy0PscjaKVhLwnR5HTtSV1DJ9ZqaT+2KatVFAV X-Received: by 2002:a05:6402:3892:b0:454:37c8:6247 with SMTP id fd18-20020a056402389200b0045437c86247mr6118225edb.307.1663664547880; Tue, 20 Sep 2022 02:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663664547; cv=none; d=google.com; s=arc-20160816; b=muQUR9fuyfE3ZdPjBJj0njBEfFkox9/VM6eQF0O8S8uSNdXEiicUDjutTxmjDizfgZ 6zI1GnzvDsGXlmMtOneoVFuJ9PwZTBJUMuXH3ruy696YUdHQCPdzqteSIrZs0OTmr3NP cG/NfM/D+1rgcWtB04vvJrkzJI7cSj01R1smRm+Xw0lQ0XEDnNF9aG/AnSU+tk/6U4rP ep7831qZ6eeEJXOIQik3pbeOFyxNBWLUugYAdN3sRl8J5zkKwUxqjs0yGzErQZNGrZvD nMbypOmG7B79grrh0s7thFHNf2NZJ4eZFva87hKbL2q9bT/t0BVuqyFnk7hYTfU4XCfK Lh/g== 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=sNmwjDF5unVTDM5UNxn46u02tM2QIwMVA3Xc9fWBzGI=; b=A5hx0v4C4G7kzDMzdwYruxNVSxA5bI6j8r0cqQkTUHP5nDZFwAKD1Ed4/Wq2cUeGgK 1u0agYQ25M/55X5ikkYREVPXwyOzfc9p65PaBHHkqvZnKiTQgVlrKKrqhYbRT/IDFA6/ g7RM6xxyvZZWq4pUZhqx07fu3xjPPjUgZjGb0ng2XpHoiCrjbP6hcDkJaMLMYrgE/Nj6 VJNC1fyn3C3T+kKUHjd1JMiPrAdGKXTwsrzy4gto0rgiaX3QSzjpfn2YFxP50du5lNVS sCotzfhUOc5IwT0q0GgU2vOMdg6tTw7SxmMXGHmSyaYvbM3xNo9DvlQ+WXvcKAWJzy+Y mgTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JMBAYRZN; 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 r12-20020a05640251cc00b00452ce356136si1346071edd.135.2022.09.20.02.02.02; Tue, 20 Sep 2022 02:02:27 -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=JMBAYRZN; 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 S229908AbiITIfE (ORCPT + 99 others); Tue, 20 Sep 2022 04:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbiITIeH (ORCPT ); Tue, 20 Sep 2022 04:34:07 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2E33CBD2 for ; Tue, 20 Sep 2022 01:34:05 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9E518240007; Tue, 20 Sep 2022 08:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1663662844; 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=sNmwjDF5unVTDM5UNxn46u02tM2QIwMVA3Xc9fWBzGI=; b=JMBAYRZNq/7zM773ZaWmKWjTBgSbSfBfFZdMWXxN73Z0f0rg/qC/IZHCjmCXw2zJJwOZ1h G/uS3qFYS7vNiSAxaJqp/fpwVkG5dwXhsfGcJ6G64N9XmvJZqFZk/BOPBoOr6MCMIq97P3 Mq7jBJ09pw6Uashme6UX0Li9Thx7vUe2Z7/Mau/PxDGwFOnKlKmuFTfn5lNVVE/HPMAuKA KzyzKqMPk8HDM8EQJ3Gm5ptHHh6Ptuq9hTlx3unKJf994bw6+fcxXOpTaWQ4Xu0Yesld1N KdBl09ApWOX7ZX3sNFNlYdWF7NGSFRAwHEXcpKaYq5QaXkPEb16L489xKC7lHg== From: Miquel Raynal To: Jack Wang , linux-kernel@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Christophe Kerello , Cai Huoqing , linux-mtd@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 05/19] mtd: rawnand: marvell: Fix error handle regarding dma_map_sg Date: Tue, 20 Sep 2022 10:34:02 +0200 Message-Id: <20220920083402.601149-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220819060801.10443-6-jinpu.wang@ionos.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'168f05327687e9d9b8345204dd97fdb0480f99a3' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Fri, 2022-08-19 at 06:07:47 UTC, Jack Wang wrote: > dma_map_sg return 0 on error, in case of error return -EIO, > also add the dma_unmap_sg as rollback on the following error. > > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: Vignesh Raghavendra > Cc: Maxime Coquelin > Cc: Alexandre Torgue > Cc: Philipp Zabel > Cc: Christophe Kerello > Cc: Cai Huoqing > Cc: linux-mtd@lists.infradead.org > Cc: linux-stm32@st-md-mailman.stormreply.com > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Jack Wang Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel