Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2451812rdh; Wed, 27 Sep 2023 03:09:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQQrP7CBSa+XV9Dfmr6n1YtAXUT+lr/6MtUkChNAmsuILTzhyAa6p+LCzz213/u2Sbbz24 X-Received: by 2002:a05:6870:610a:b0:1b3:8cfb:78c5 with SMTP id s10-20020a056870610a00b001b38cfb78c5mr1906014oae.34.1695809345573; Wed, 27 Sep 2023 03:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695809345; cv=none; d=google.com; s=arc-20160816; b=dJBOkGK5H+Dgfpc84g5V9AtCWBus7dpaiQd7pX7ZREaGqIYqTe/NQ+upDxyAB10Oo9 ohV+nMa8I1li62lIXpMQ9RZssIxNqFueLeXUvDQ2PMCtq/Q0QXS2nUx4eCpvNc/nHaEb jOoXWUDXA7qGsJusDTcJ+7TULqKgywBiygNaywCNtfrduo/4QUojHVBgzOHdYW8U4MUV +Xfjsm4CKpsq6uTRFsJuugTpxPTWIzqzzjX3dYLFjYUGeTtF9NOPT408ueahLnNUZ9EM yatL8V12bfG9OgBtkpINUBgaRu7S+CoonjMcM75ZuLwUle2BH6V9PeiMALod2qyz3i1B OqeQ== 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=aKQmixWBkQbfwrPWW4Kcl6BhuNloeHKy7RaNCIpQr2w=; fh=rihLfKKZwOn01wd5VgsmdWXLmM6b8/7+PLMBqzly2sY=; b=OSpIeqcEOWjQJrwiz+ArOvAnNihjTLu57hbNrwkZTsod3V9CpDsHwp5+K3IbFCSH88 BJFVJ/OS3V4L6pHZWL0ImPeUfveNiiMOEYbmCWdzDrGHr8CBqjDm3Cxyj/8eIlqoWe82 syLSyniSyzwyC5iuZspdtj2qtBEN8aiX/9FWXGXUlaS5dbHeM3yJC8tDNZpTi+X2VmIr q9oSKr278/qEVJZ0frYH9RPcOrSZzMX02r6YAIjpniszsF8rWEFkdzMkMDFRZQPJ1m9F pVEMp+o3eq3LPnkRyYLO14hDYQDmdDa01WdrEQaPEkrwPBQwGL/sY1S5+qaVcAov5hR9 qSRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RXX7PgNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u186-20020a6385c3000000b00553813c2df0si15161583pgd.513.2023.09.27.03.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 03:09:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RXX7PgNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 0754E80722F5; Wed, 27 Sep 2023 00:47:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbjI0HrH (ORCPT + 99 others); Wed, 27 Sep 2023 03:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbjI0HrE (ORCPT ); Wed, 27 Sep 2023 03:47:04 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C071ABF for ; Wed, 27 Sep 2023 00:47:02 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4053cb57f02so93915985e9.1 for ; Wed, 27 Sep 2023 00:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695800821; x=1696405621; 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=aKQmixWBkQbfwrPWW4Kcl6BhuNloeHKy7RaNCIpQr2w=; b=RXX7PgNJaFediTXV0bNyeIN7D/4LArLxXLTGh/Xh8Oa7VDg2aicJs3p0Q8K+CGKrWy WFH4N1ONX4EMpZDc+BWGvpRCTstkLb/+FF17JMlYXcdRBnCrXYuiA6M2U9l4oA8waukq jYIXR57Gjg0XnHs9otSxQcFhhGWXyRHpIcO8gbUpoiVe7w7nOwqB/sEYPTgTbM8KF1MB LUz8IFeog2iA8z+uBMT0Hyx6LBdihddKPdyo1yzC2tM4MFbPSDiz98Rjx/OOuaGpJKni DaqMCDh7T2XaLd5OxF6IwN/w499ogncdn2XJHdf0XaWzBEmN4gJtwxr8tW/B5i50uAnT KSxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695800821; x=1696405621; 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=aKQmixWBkQbfwrPWW4Kcl6BhuNloeHKy7RaNCIpQr2w=; b=eLan0xcvpWLShrdM1hjPBnO+pi8l8yWW7Bji90HIT9lsBg4do/Ak7V1TxlBt6SjrSS aiKSZg5vMz+cbYvEHpmjGwAgm5hktGDRr6/fiKZY8c8PwN/sLRcy6/YFHkKXCeFhyKQd gZNqtfwX8v8MMyqSQAejXnTyAS4Eyc4inW3elbkolRCVye+MwEKJCQMlm3v1LOj303ve w58jdws5ZI6lLfkFdZjW5bjgqbYM1OMXKi/b/U/sR6vmvyDsJVf/e5Cc79yGyz7YgXwV PB3TL/vmdaoBxkXnUNZI/6nsSJvOW1oEiHkXAaUjZqto34PpUtb0zxqeSu5QHT4LqQSa 74Qw== X-Gm-Message-State: AOJu0YzN0TdvPjmpxZ3AKPbAuOKpuDurOqzs/WcJwnbli1RZNnKpC0uj QBEB7HmYzWGKgYh4uaAFcCZIMQ== X-Received: by 2002:adf:f285:0:b0:323:1d06:38e5 with SMTP id k5-20020adff285000000b003231d0638e5mr936747wro.55.1695800820675; Wed, 27 Sep 2023 00:47:00 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:99be:56aa:a730:ad2d]) by smtp.gmail.com with ESMTPSA id f4-20020a5d50c4000000b0031fa870d4b3sm16429083wrt.60.2023.09.27.00.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 00:47:00 -0700 (PDT) References: <20230927072544.764285-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] mmc: meson-gx: Remove setting of CMD_CFG_ERROR Date: Wed, 27 Sep 2023 09:43:57 +0200 In-reply-to: <20230927072544.764285-1-Rong.Chen@amlogic.com> Message-ID: <1jr0mkkqh8.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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 27 Sep 2023 00:47:14 -0700 (PDT) s On Wed 27 Sep 2023 at 15:25, "Rong.Chen" wrote: > From: Rong Chen > > Setting bit CMD_CFG_ERROR has non effects on previous controllers. Which previous controllers ? v2, v3 ? Can you list the SoCs please ? > However, it will cause an IRQ and stop working on latest controllers, Isn't it desirable to stop on error ? seems like a sane thing to do. > This bit is used for selecting SG LINK of data address. > Don't set the bit CMD_CFG_ERROR anymore to resolve this issuse. I'm not sure I understand the actual issue being resolved. Could you provide more details please ? > > Therefore, remove this setting. > > 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);