Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp633277rwa; Sat, 20 Aug 2022 10:30:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4kz5wJmwxcWrcTOIgLrJipMhubgu9/I1MgafcVh/KrY3DP/2nwOqJIG0vrfy7Nt8rP7Hwz X-Received: by 2002:a05:6a00:1995:b0:52d:5c39:3f61 with SMTP id d21-20020a056a00199500b0052d5c393f61mr13383361pfl.83.1661016641889; Sat, 20 Aug 2022 10:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661016641; cv=none; d=google.com; s=arc-20160816; b=F11IHOHjOUtzXINesnrd6pjjoL0qEzwho/7yaL8LpuVxC/FzCkgsSEuU6LZj8qmyiw Nq/EOfHMdcbGgsWAj4VLfNagTAG+mQ/ajtHvSajxeAqrvA6aeB9uAFzOaJdwTEKYW0dR PneFyOLo9WHtK+gORpyT++21T3s6AYw3RDmcrhYNQvnhlAISpOFqgv75aG8NHKIYsOTN 1FgGoUfi3siGwOyQHxKPE2K/CjzYaEkYQEWgS4mCJoUbVbjabhfBShhX54+UpjVHJz9W +12B68XBa0dZiAKU2pXje9z6v/kZphu8nSkbgqs0NWWaAll2sCGEHIc+Jy4gv2vvu+3/ jP2w== 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=Vcm63p9Ndo8w0eqrJk86Vp4em1l9XiIXzzzPibiG9xc=; b=tf6npBse3PhgG2D/9FPBD7xt4QAHcvM3tPCLyDyECHRZtFxcNU5aYAkUK2pY0Hwv80 I656cVqdnp81PgzqhkhYhVyB6c4AoEoIkq+56rg0lJhkSIq9vneNUn8tVhARTO1O1r+q VDZngHVmmEIxGtlJxhp56cwDF7knd3eeEbX3aMM+Xl9Fn+5biJOTxTWPTGYaZFnZhlZI dmssUJ7Qt8LGkG9djOUmbG6XapcAXkCYoUk7HNuKypKevW00hpDXnQMaZ1CEHYWSDvnO 70leV1MgZt8WQkpgT0Ay1xIgLCz15/EXoBFsEZnVl7fRbVUVEtDXSJ9+PnPS6wrizIP3 XalA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=mpO5iswO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj13-20020a17090b3e8d00b001faa50c0b94si6470690pjb.31.2022.08.20.10.30.23; Sat, 20 Aug 2022 10:30:41 -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=@googlemail.com header.s=20210112 header.b=mpO5iswO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346272AbiHTR0G (ORCPT + 99 others); Sat, 20 Aug 2022 13:26:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346290AbiHTR0E (ORCPT ); Sat, 20 Aug 2022 13:26:04 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A914DB55; Sat, 20 Aug 2022 10:26:03 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-333b049f231so195651867b3.1; Sat, 20 Aug 2022 10:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=Vcm63p9Ndo8w0eqrJk86Vp4em1l9XiIXzzzPibiG9xc=; b=mpO5iswODoCzpwRmKE8RAg0r6YuSpgtO6RrGKttfrcnl2yfGAn+WnO5htJDrAie0fy giQNwDD2rJTPB8wsYBQ8+zSgJ+UIb0wTAGa5GKeUb2wVeH9ugeCbDvfstVUpTDEgq09l rjz03HGgjSIXYx1mXweYRTE5m4pD3YOdAohWIjU/9aMBXAUf5CdtoMgvgNnQHIogxVKp l+FcpM8nsYHV7xKpf8m8mLhtf5nY7ly5ACKqMNkMEugeCaSFfAv1duxFAIBwgj9Q2/21 ormwuwjg84FSCn4CJ2jvKht94BfxOBUKvbSNIRv8XKLh7DGo5yeS6sjf/bBHjFbEJDI6 mCcw== 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=Vcm63p9Ndo8w0eqrJk86Vp4em1l9XiIXzzzPibiG9xc=; b=umc36A7/0VKGqmDFij0G0g2/0iQ7VszXBIU39rfSg9N22iK4XvK46LvKyzSsFmdGoK ZK70SI3L8ShhibZqlvYTCGPWmhoC5NHc9Y+Z0YeaMMiik/qR2No4CyyknnLBx0OiNbx2 ITWvHEqVRyuiUl58LhnNMV6cgVNQqu3n1ONvn4piAPDXyxmXsYGYxn5QD8+fMhRDEkRF UluxAxZrlhmqzXJzr5j1arkWKggY4VKiayOFbKsIzhH+wGR/yERiDmN3rBzJFl+c3OL6 PawjS/rU8E9ZjSqoSwXYa0h9O4u53HAe+B4+Pj0IoyMl/x8xKHPq+fZObQYp6mLaM7Qj cRrA== X-Gm-Message-State: ACgBeo3jpskrHc/hiX5gj8YrrGbdEMlszuaeS+k4SLDNcVHBsx3fmpR/ 1Jevx3NpB8cnDIPl3DBPvoV0NKPIOHFw9+AOGmOBMaa6XE8= X-Received: by 2002:a81:83c5:0:b0:334:a89b:1e5d with SMTP id t188-20020a8183c5000000b00334a89b1e5dmr12036745ywf.178.1661016362743; Sat, 20 Aug 2022 10:26:02 -0700 (PDT) MIME-Version: 1.0 References: <20220819060801.10443-1-jinpu.wang@ionos.com> <20220819060801.10443-18-jinpu.wang@ionos.com> In-Reply-To: <20220819060801.10443-18-jinpu.wang@ionos.com> From: Martin Blumenstingl Date: Sat, 20 Aug 2022 19:25:52 +0200 Message-ID: Subject: Re: [PATCH v1 17/19] mmc: meson-mx-sdhc: Fix error check for dma_map_sg To: Jack Wang 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Hello Jack, first of all: thank you for this patch! 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)? Best regards, Martin