Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1342604rwb; Sat, 5 Aug 2023 12:38:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnNznNM1HVdm8hZEzhV9ggVv6taXCmVdGvhJEQpKLxdGqsM/UFsfWkFSnFqG3sSYckpg81 X-Received: by 2002:a05:6a20:97:b0:13a:ccb9:d5b7 with SMTP id 23-20020a056a20009700b0013accb9d5b7mr4305616pzg.41.1691264339306; Sat, 05 Aug 2023 12:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691264339; cv=none; d=google.com; s=arc-20160816; b=BQIKxV4nGxE/GS1dsh/etCHTQLcvmwhOCQlLpnH/uCe+1qTE0zQssubUDgVm6C6Km6 /KMcxfSDGE8M7biPgdBaV49Im8bvXAm0YUZd3O8OVKQYYQDZmEN5qI4jJEgO4poFztUR D5VFHQCAyxr98OeV22EWL5LB/rlOErrJw6lX93GBwzW+RIfLSEznkD9UF6UDaLC2n+/G hHv2Qv4bOjKZkoXbjFKL4oLs8m5xzzbAz0T/YYR5e7c8P3JRP4WEG9XvhXDjbglnheQc 7RYLRGZuXp4afCFGYh1lUGTThUWRd1rn+oRV8lnZmoKQqiscXmtM1t0wfmTFHJg1+fHh sr6A== 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=QJ7ZrjoLTJ5efHJXOrPgGJNKRMjipI8+wvO528txH4s=; fh=C3rMIGKHWoyxqoAraqqJMAgcBCOzfE2wKLTb5YQG2FY=; b=CnXLFBRchBZVf2fuV96+o5InTRxzUa7Ly0Nu0Y0NcBx4PEvhbDnKBI5HQBXBZOJrXV uT0+y1N0IbSCqTVhd6qgbD2taQ0wZ5X8GcwKGRTEee5F3vvmP76lDvxzh02nU6z4U7Gn NiwVvIxKrW5hedNzhSPpKR74m78Zj343O9M9gMeuwyIo+DTKzwMfUgNbGZgfAYeknJVS Glhsa+Lte7UjI86YrD9YPl5ZOEbNAIxDriFKukRK4hsoOncPmKlbFMc+dRt05LD7pN3A fvZWBmziSkS2qDK2+JNI5uZULqVFkJntDjXhEFEjjCbO+YtKoZoP6gxDZjb5NOjRhm2Z 8H7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B7+DzBY2; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v188-20020a632fc5000000b0055c86d1e5e6si3426745pgv.602.2023.08.05.12.38.42; Sat, 05 Aug 2023 12:38:59 -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=@linaro.org header.s=google header.b=B7+DzBY2; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbjHERnU (ORCPT + 99 others); Sat, 5 Aug 2023 13:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbjHERnN (ORCPT ); Sat, 5 Aug 2023 13:43:13 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B30A3C3A for ; Sat, 5 Aug 2023 10:42:48 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-686bc261111so2241861b3a.3 for ; Sat, 05 Aug 2023 10:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691257352; x=1691862152; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QJ7ZrjoLTJ5efHJXOrPgGJNKRMjipI8+wvO528txH4s=; b=B7+DzBY2BMwN0TLLydmymYkwIsWR3JxW+iSLL/V0XXHiIcE3NOr18Mx0HwbSsKBhWO iSMn8u1sw5GfUeTPmKYFpey/hPwsfNH6CjWl5ihSCT5no007WqjK5pReXK+gZlb0WAY0 KWbAiyuDbbu8HgDPCO7iP2Xtsrb4JM+LVllxFOk18UAS3QLkqjL99MFkl5burHWLq8Ir dd9XoQiNvoT4dchGITvTV03HB+KUPoGQOEGX1HBN8XR6LVkZ2PfQZpG5jXn0Bh5ciSIk BBuCkn1sWiwt9otxwf0K5C3sJ9ddgPDJt6mLgXI8STYQ1qbePkvSExEqvAz2MaeMIxs1 Mrkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691257352; x=1691862152; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QJ7ZrjoLTJ5efHJXOrPgGJNKRMjipI8+wvO528txH4s=; b=im2bgO0+/krq1+aEDmfoREY9lfx/sprBY7wW7ty9HAVtpxSpae9jXv1CL+OHn5j95o Y/ijo2khvongqqqjnQsteU9rDFWSuBR9yAGlrigq4jOQZk6j64LYX5GB7v9Yf3p73Awt XqxPD83z254dHFkR/X8dAclFzzJ2Gprj/kSX07RJvcCcXa6onSaJxH/j/MC1oHJnReMF ORzzZ80zljNFgn66c2HGs3kUEZZVHqnhj0oxppvi2e90EkXXWeZAhjpNyuvkNnXzE1r1 ITiVsi3RBcvy4lCCmYuKaDv4Cmnnx+xFiNmRTOOfzOAjhcxKXh+paFqIGcCCNlJ7GpfN s9qw== X-Gm-Message-State: AOJu0YyzQW8lgmAbKsBB9jwTXc8jTg/vI884pL8njKBXDnLGdARmP5b5 1yEAEkWaQ9vvVW/++VEeWK2R X-Received: by 2002:a05:6a00:814:b0:687:78fc:e961 with SMTP id m20-20020a056a00081400b0068778fce961mr5558898pfk.22.1691257352461; Sat, 05 Aug 2023 10:42:32 -0700 (PDT) Received: from localhost.localdomain ([103.28.246.21]) by smtp.gmail.com with ESMTPSA id i14-20020aa78b4e000000b006874a6850e9sm3363160pfd.215.2023.08.05.10.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Aug 2023 10:42:32 -0700 (PDT) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, vigneshr@ti.com Cc: richard@nod.at, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mdalam@quicinc.com, quic_srichara@quicinc.com, dan.carpenter@linaro.org, Manivannan Sadhasivam Subject: [PATCH 09/10] mtd: rawnand: qcom: Do not override the error no of submit_descs() Date: Sat, 5 Aug 2023 23:11:45 +0530 Message-Id: <20230805174146.57006-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230805174146.57006-1-manivannan.sadhasivam@linaro.org> References: <20230805174146.57006-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 Just use the error no returned by submit_descs() instead of overriding it with -EIO. Signed-off-by: Manivannan Sadhasivam --- drivers/mtd/nand/raw/qcom_nandc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 6b81781aa3ad..0fbc6d1a558c 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -2140,7 +2140,7 @@ static int qcom_nandc_write_oob(struct nand_chip *chip, int page) ret = submit_descs(nandc); if (ret) { dev_err(nandc->dev, "failure to write oob\n"); - return -EIO; + return ret; } return nand_prog_page_end_op(chip); @@ -2216,7 +2216,7 @@ static int qcom_nandc_block_markbad(struct nand_chip *chip, loff_t ofs) ret = submit_descs(nandc); if (ret) { dev_err(nandc->dev, "failure to update BBM\n"); - return -EIO; + return ret; } return nand_prog_page_end_op(chip); -- 2.25.1