Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1968388rwa; Sun, 21 Aug 2022 22:40:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GC4Z2fGQ4MXGQSXtsHPjYDgTGd2SZP3Mv8QGZ/NVi6Hw6FxRibsx1u8Qzkio9qdXBz8Fk X-Received: by 2002:a17:907:2cc9:b0:730:93c8:4177 with SMTP id hg9-20020a1709072cc900b0073093c84177mr11148222ejc.494.1661146808700; Sun, 21 Aug 2022 22:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661146808; cv=none; d=google.com; s=arc-20160816; b=tJUOorsgfnJoOVlQoZDDOfoAUB0n741eLY17oc88dagrbQW7yRya6irA5M9iTDpJo6 gY+V7MDpozoGOl9l84lG68MusdMQEeNYpHFEd2kp3wMGXsr55c9fpje/hAiWPhBchPTd wPAeWW4zozaYtXFZkCN89qUcivUpL9U/1f0UrrNZ7ex3/MmhAKFE0FurUslUXLe/7Be0 CH7HYM/FPznHHuuUSuuYZA1S1uI6qK1iJVDQVbIyqrrc7sCrS8ETIlXVmHFIaH4N2Awk MkjgocCM8fyQX4/6tsIzpkawCsbtk2h66iHjCvsosXtVfIOYXKYMXWCn+K7Fx0xqrUIG HU2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9XRquiKtczGZrdHPEqA6WSyvm81oF4bOEAQ+13HYerQ=; b=RRcTcxCMudvmq0S7SosUCF7JATqBtmTHqxVe0CCd+WCyxNr635SHFi3xVIZJQ0RK5w WbnbfhKWvJg7MK95hRvWLmQH1IJ9UGlz2LTLA+6KgT3LoHDKJTJwJ1VnUprbrwBioSd5 ov2T06IdCnwJYQgtb4EcU4kb8IFVcBilEshtc1h/0FX/UD6Dyne45snnSvvQVJJQdpHo b8L1TgHwaRXozpZhntF2W4L08PUOoRt+WS2wtGHIn6ZbQqndQeTYBeHIRgdx1I4VLGyz R1aXduu6wDkB3qzuz3lZ8Kj23Rn0rZbqMGGyBrQ4F4e1Kf0I1VXme3bCAg3KGkUvRXyf RLEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=SAiIxcHb; 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=ionos.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne40-20020a1709077ba800b007306d4b5435si9389366ejc.522.2022.08.21.22.39.42; Sun, 21 Aug 2022 22:40:08 -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=@ionos.com header.s=google header.b=SAiIxcHb; 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=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230519AbiHVFQI (ORCPT + 99 others); Mon, 22 Aug 2022 01:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiHVFQG (ORCPT ); Mon, 22 Aug 2022 01:16:06 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F33AA24BED for ; Sun, 21 Aug 2022 22:16:05 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id e21so7508859edc.7 for ; Sun, 21 Aug 2022 22:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=9XRquiKtczGZrdHPEqA6WSyvm81oF4bOEAQ+13HYerQ=; b=SAiIxcHb4kUDUc3VEa2ho1tzuxThoNNZY/1Uy6ob5cxWpDMAgeWid7qhh1JGHzMGbM adHSfp3pJPdwumkTe334GAsPu2EKY2zVf0ZgMGTJDuJ3SrI6UEqh91/qCHuGRXQw1snv /1e79EhM6MjTf5SwV0uMLfQFrJ1HoFYfZpqvevvweqdEzjyYFlZtmV/EJfgjhfVj3EUi 0XsC/T4XkSWokdnUY+/CPOVzfVcr8ThORv6pb4680aMO7Op76cXl+fqJrMS3ioeO09hy SzOT7E/D2WeM6kDvgcsmWkGn1PHym4wj8/UETx7DyE0Kmsc+CgU2T07R9NxHLpKuhXhA 8OYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=9XRquiKtczGZrdHPEqA6WSyvm81oF4bOEAQ+13HYerQ=; b=6c7OjJbW7zWgQnD3+POJI1ZBtLl//OYlYPi+bWzZO0uFNxOi9p/+CPb2n7usKu7H/8 2aDFlT9tWyTEuv2V2I7AXvv4RMSm6ZKu21FwasmZLUqDGrJBK7XgOFdlr1vNdixE2n0u enCOnHD8ZWHPnHKtxyXxptZyS9yV0mRibmBZdK2IwH6H6/IWEPwWtYI+IC/4AgnFUIuF s54wxoc2r9oKYBNYXbwBshBaK9uyZrxXnCF3YEOaxNVun30yhlcvEqZX6yRUB3OeCI4m 4aaDdd5n4druDGCY1CrjuWtOR40pgw8HZhkV9H5YGSTWwM1T98lapSMnIMgrUyhY7pqQ AIwA== X-Gm-Message-State: ACgBeo2g9Bt6uu4wezsb3VHA8gYZQINt02QMARWPGoIDrBIq2Se4oQAL kiaq1nm+N9WFML7j5DFpmwKmwsWjGktvFhvMz//zgA== X-Received: by 2002:a05:6402:42d3:b0:435:2c49:313d with SMTP id i19-20020a05640242d300b004352c49313dmr14569874edc.86.1661145364525; Sun, 21 Aug 2022 22:16:04 -0700 (PDT) MIME-Version: 1.0 References: <20220819060801.10443-1-jinpu.wang@ionos.com> <20220819060801.10443-18-jinpu.wang@ionos.com> In-Reply-To: From: Jinpu Wang Date: Mon, 22 Aug 2022 07:15:53 +0200 Message-ID: Subject: Re: [PATCH v1 17/19] mmc: meson-mx-sdhc: Fix error check for dma_map_sg To: Martin Blumenstingl Cc: linux-kernel@vger.kernel.org, Ulf Hansson , Neil Armstrong , Kevin Hilman , Jerome Brunet , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Martin, On Sat, Aug 20, 2022 at 7:26 PM Martin Blumenstingl wrote: > > Hello Jack, > > first of all: thank you for this patch! welcome. > > On Fri, Aug 19, 2022 at 8:08 AM Jack Wang wrote: > [...] > > @@ -388,7 +388,7 @@ static int meson_mx_sdhc_map_dma(struct mmc_host *mmc, struct mmc_request *mrq) > > > > dma_len = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len, > Does it also make sense to change the type of the dma_len variable > from (signed) int to "unsigned int" (a few lines above)? I double checked, it seems a good idea, I will do it in v2. > > > Best regards, > Martin Thx!