Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp287665rdh; Thu, 26 Oct 2023 02:06:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLmmFR9iZthVszy/JcOvZ9wh8NhPr0jn3i/a5FF71ra5TIKk5WMPhVNU9eQST8gUKFW4PW X-Received: by 2002:a81:ad1d:0:b0:5a8:1a54:ba4b with SMTP id l29-20020a81ad1d000000b005a81a54ba4bmr3898942ywh.13.1698311167493; Thu, 26 Oct 2023 02:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698311167; cv=none; d=google.com; s=arc-20160816; b=t38vmPHsEZD/wm2ixkNSHBanIqaa/5JpnjU3xmJciO3wxhhMJ90cPaxKxGYAyHfiC2 bAEvgRGO/S9+jqYTm5xBIls+/5VPVpxt/4WUAVEkGMx00i7Rm2cmQs/HVQUezAJ5/7oZ TrCOhNrYj5CQhVdgyOiJWwZK5byt9+NEwLjT6CL+kk8KfR8Ld1nEc6VsWZGdxcTFw3jc 5G1P5/5g2wOgtNJwcOpfl/8l5F2FYRVpbSYCmB8CoUMa2ig/rW4RbStIfdqNK5zPJI1W e+1DTuu7MVjnymsVZcYv9Ki00uQf00bhcfc0zki2soHL4Ohxk/gudGxKKJ70mbhSMLrP XoIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=2oJ1jlhG9oorUzXX4oCyrJv+zqn7eGeLFSxbQPDqXZA=; fh=GtrXUgkoebLhXURi+u2rHz3DqOexnej22fZd+bNo6yE=; b=ApHkSGReYVXb5Z7+ZQZQI/pMRMS/mwa6sv3+X5lXTGcBXZ1foam72dqZlUpaz/u/We 5/Q03GcYOWQ5CvLeZpQvqPBWGBCao9BLqW4/LZBRr/XkVE6lopU+r42Re3s9vsoRwaB7 UF71xxn+uKZq2NR8IPPkjwHWpgsEz9hX++b83JNXfhdCJQls6KlHvd6NOAuYT9mm84Sk N2+HAmBREKkmQVpV3eOr/mvsN/l4XsPEBU4Yeey1EDluFlrUbC2r4fBITzmj+KDHTSYX mznnEKJ3AJEo4FU7eIV4ZyP0PIHrvmFXT3ZKRr4il6DSFhlO9+gZSVh1s3bnssZZa/Ol 5z4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ESKih3a5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n189-20020a0de4c6000000b0059b4ef8d55csi13988024ywe.342.2023.10.26.02.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 02:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ESKih3a5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 646D180DFA7C; Thu, 26 Oct 2023 02:05:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbjJZJFV (ORCPT + 99 others); Thu, 26 Oct 2023 05:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZJFS (ORCPT ); Thu, 26 Oct 2023 05:05:18 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF50128 for ; Thu, 26 Oct 2023 02:05:15 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507c5249d55so920228e87.3 for ; Thu, 26 Oct 2023 02:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698311114; x=1698915914; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=2oJ1jlhG9oorUzXX4oCyrJv+zqn7eGeLFSxbQPDqXZA=; b=ESKih3a57luFdaSENN83jzufTDZnZFreqhyMIaY3HwW3yOCS8bGmDeM8yW1IDWrwMe HQCT+V2CKMdIy1K3qsAURH0m8iTAFzbqQ/vWInQ9DtRb0faDxRkus9eu/bVnbHaGzHip bDuYbkLLX+k+398lKiK3Zr3z/E9ULiL8+CwkbLAPzQvtmrhoZuVOQsVES1K7k1iKsCOv 6R5rAAfe4uVcD6sVoZP67vFAD6Ocl0lJnINVdfCdCTLoBja5iLFiq9z88iHfXnZtjugw +iEUKQrui/+ozLxAejZnxPX4wfV33gYS0Dc9khZmiVScuHVFlHI9iC4I5z7MEnZN/ykF cL9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698311114; x=1698915914; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2oJ1jlhG9oorUzXX4oCyrJv+zqn7eGeLFSxbQPDqXZA=; b=I9baDslWCa0zRbx+pzj4cMwUeBbB5Wj9xpMNBJ9S3zhXHnHFGlXElNdn7c9TldBg/Q 2yOMjKMXoofQYC8EhOWVpPWCfEMz5i8Hnd6LS21poHsjc3+xRwBGoXU/Bu+eOIHVp1ME xldfSi4Fkrs6iIEJswLcNXtb7qyWDe9AW4G6fBwrWlOefHNbSoUGs5Cn1lI1thhq8Aqd by7IfohmaxGE7TqfWZQoN0Z+Tsf7DhI7lYDho1qjmjuyOY2gHgXoPQDtnbAeh6ZMUXZo yPjwDdMCwpZKi5J7btW9PlZoDfYYwTQ5e/JyojWNeLuEwYNpQt0XS+hqqNkTp/bY4gsk 4EvA== X-Gm-Message-State: AOJu0YxYwIuuG4A6SToMYQPABVzH4x/PlHsBHVStw5yni8JmEQwTN2gb qZ4UFWs3CaQ5lIymFXAU18znfw== X-Received: by 2002:ac2:538b:0:b0:507:ae8b:a573 with SMTP id g11-20020ac2538b000000b00507ae8ba573mr12792622lfh.51.1698311113795; Thu, 26 Oct 2023 02:05:13 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:d5c0:32f3:899b:123c]) by smtp.gmail.com with ESMTPSA id az32-20020a05600c602000b004053e9276easm2005317wmb.32.2023.10.26.02.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 02:05:13 -0700 (PDT) References: <20231026073156.2868310-1-rong.chen@amlogic.com> User-agent: mu4e 1.8.13; emacs 29.1 From: Jerome Brunet To: "Rong.Chen" , Ulf Hansson , Neil Armstrong , Kevin Hilman , Martin Blumenstingl Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mmc: meson-gx: Remove setting of CMD_CFG_ERROR Date: Thu, 26 Oct 2023 11:01:53 +0200 In-reply-to: <20231026073156.2868310-1-rong.chen@amlogic.com> Message-ID: <1j34xx4uuv.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 groat.vger.email 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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 02:05:29 -0700 (PDT) On Thu 26 Oct 2023 at 15:31, "Rong.Chen" wrote: > From: Rong Chen > > For the t7 and older SoC families, the CMD_CFG_ERROR has no effect. > Starting from SoC family C3, setting this bit without SG LINK data > address will cause the controller to generate an IRQ and stop working. > > To fix it, don't set the bit CMD_CFG_ERROR anymore. > > Fixes: 18f92bc02f17 ("mmc: meson-gx: make sure the descriptor is stopped on errors") > Signed-off-by: Rong Chen > --- > drivers/mmc/host/meson-gx-mmc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c > index 9837dab096e6..c7c067b9415a 100644 > --- a/drivers/mmc/host/meson-gx-mmc.c > +++ b/drivers/mmc/host/meson-gx-mmc.c > @@ -801,7 +801,6 @@ static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd) > > cmd_cfg |= FIELD_PREP(CMD_CFG_CMD_INDEX_MASK, cmd->opcode); > cmd_cfg |= CMD_CFG_OWNER; /* owned by CPU */ > - cmd_cfg |= CMD_CFG_ERROR; /* stop in case of error */ > > meson_mmc_set_response_bits(cmd, &cmd_cfg); Reviewed-by: Jerome Brunet