Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp912748pxb; Fri, 22 Apr 2022 14:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2QsdAnaH9cnvT8tHexwiuhkHqRbFz7duZMy6NEKMxSU5KIoT8PcWpg8663isRKiC6tEOY X-Received: by 2002:a05:6a00:1310:b0:4ca:cc46:20c7 with SMTP id j16-20020a056a00131000b004cacc4620c7mr6894196pfu.44.1650661711044; Fri, 22 Apr 2022 14:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650661711; cv=none; d=google.com; s=arc-20160816; b=rAg94ixK2/O1l9Nju+vqaztV5UT9hdKwlnOL3GiUrcncsKVOldN/1BN8ngoUgm5QuK hZMh7XZipT+88p7Ez5/y/xTMohiKygSDk8FvEl2XdhPzD3jMkWvbBtBlp8BLQvHSubcb keaybIbR5J3TK2p3GKcgfrFKNZtOez+QqdAil5G01v20qAut216KZ3A+68v28WszfdPl oDb8GuDfAiUaEe3V5L2giW05eNIzCIqJe84L4k4L32E6utgD2VtYOBk073cZIwyRHtTG uQ2V/V+0awYGwMjuanSAvwgy2YtXJegBgJ6jjSseqv6y0Moby3NZPVFMaxeU00J6PZyh ZL9A== 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=2qh1sP8uzQryeVgDtsc75uouxg8rbCQSDajPwRRmCQo=; b=ZSLKmucOXkezOZvi4APV85qiDwckPcy5zQnFJ/AJgC4gFwp9Y8NXwx/vMG6EAmNTJM GnspqOOjVJAu9Ql/K1Gi4sqh5uo0XiJexfRLEZYccYYVF9Vq2+RZTLsbqTmyulZmjBbm clbjhjU2ZM2DjwyFRPqE3i8V3CIw3A8bHCDSN5wxS0voeOPDFO/h9OS0O/GwORvZ9IB5 V2f/oXURgFXPc7h0DeYTQF0LJV641MZYJfvZ9zwMOsg7aPC2Mrm0SozpiI/JhICE214d 8SLKKrZ8qhuzX/crpjsLKdJh3Skq1v4+luZpWV6SfcC4NuzQs0zEZ2LyuyPTZLUV8rbf GJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z0INWc9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lp10-20020a17090b4a8a00b001cb774b33b6si9317378pjb.142.2022.04.22.14.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z0INWc9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF986247330; Fri, 22 Apr 2022 13:06:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbiDUMOA (ORCPT + 99 others); Thu, 21 Apr 2022 08:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231898AbiDUMN5 (ORCPT ); Thu, 21 Apr 2022 08:13:57 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 485852ED69 for ; Thu, 21 Apr 2022 05:11:05 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id g19so8357527lfv.2 for ; Thu, 21 Apr 2022 05:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2qh1sP8uzQryeVgDtsc75uouxg8rbCQSDajPwRRmCQo=; b=Z0INWc9lxyV6HU2uh2mPeBqK0yli23uZv/u24ByX5vg6Pu4bhQ7AzrEPCeUdwAodwC pC+3TIzpU57+5m5qC3ebKzY93Rycc2+gHYqhtruCTqoWutODQzVzIEOhd2YfqeK6yqIF Xu6b4XHkcJ32Hm1srnlpzDf1g2t+aZDF2WSNHDuPjSJZbdfU1LuzRzn0LYl8gaxoraZ/ gVFgo5J3mpWveMo2GKV02uNZfN3GI7ia3OBZjgXqrR8oRDkqaHkPNZ/XW+zCLqPWsFg9 Wz/2JXeM+6hz5hvpyqD6hZJqcc7QVRa76tne8gXABci2GCSjRBFoRffN6oTU6BDV/wBP dmIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2qh1sP8uzQryeVgDtsc75uouxg8rbCQSDajPwRRmCQo=; b=PS9iV0RtpEp34tRwRF1lULX13Qk/e1bGSnSEnve4kXwo0aSqsQtQb2WJOd2hBYw/Za /7tjSR8X+poke5xjD0mSV0r4C9fxBJDzoDC4xdNbH+nLQLO3poH0f0ihJ8FRodzB11Az Tz8jChj3uYoNBI4e0pmukyL0c7gJQYE+043qzcLmZbIsGE46BpKJZBfQNyU4I9B64mTa E8ieKMnx+cPT1h7OWNBNwUVIMxPfV49c/0TPr8BVVGrfPSX3mPeiaXpvVzM/RG/N3ePR W7SbsCcpwUSu975+fla32QuTIoCjZ2iDsM/dInup4C6SuBNBM5RTuBr+4sL6s9K7BAwt cM4w== X-Gm-Message-State: AOAM533+ji+DiiIpBUV3haIeeGCXozX9SvuA4CcJe7M3yH1f6sBgVWJP IXylxlbumYNJwv1rreKX5hHOWE9BaJezsD1Q2cd3vA== X-Received: by 2002:ac2:4e98:0:b0:448:3039:d170 with SMTP id o24-20020ac24e98000000b004483039d170mr19385452lfr.233.1650543063540; Thu, 21 Apr 2022 05:11:03 -0700 (PDT) MIME-Version: 1.0 References: <20220418102040.4993-1-a-govindraju@ti.com> <20220418102040.4993-2-a-govindraju@ti.com> In-Reply-To: <20220418102040.4993-2-a-govindraju@ti.com> From: Ulf Hansson Date: Thu, 21 Apr 2022 14:10:27 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: mmc: sdhci-am654: Add flag to force setting to TESTCD bit To: Aswath Govindraju Cc: Vignesh Raghavendra , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 On Mon, 18 Apr 2022 at 12:21, Aswath Govindraju wrote: > > The ARASAN MMC controller on Keystone 3 class of devices needs the SDCD > line to be connected for proper functioning. Similar to the issue pointed > out in sdhci-of-arasan.c driver, commit 3794c542641f ("mmc: > sdhci-of-arasan: Set controller to test mode when no CD bit"). > > In cases where SDCD line is not connected, driver support has been added to > force the controller into test mode and set the TESTCD bit. In order to > implement this quirk the driver uses "ti,fails-without-test-cd" flag from > the device tree node. Therefore, update the bindings to document the above. Would you mind rephrasing this a bit. DT bindings is about describing the HW, not about what the software should do. Otherwise, this looks good to me. Kind regards Uffe > > Signed-off-by: Aswath Govindraju > --- > Documentation/devicetree/bindings/mmc/sdhci-am654.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml b/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml > index 0566493c4def..0ab07759b472 100644 > --- a/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml > +++ b/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml > @@ -186,6 +186,13 @@ properties: > description: Clock Delay Buffer Select > $ref: "/schemas/types.yaml#/definitions/uint32" > > + ti,fails-without-test-cd: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + When present, indicates that the CD line is not connected > + and the controller is required to be forced into Test mode > + to set the TESTCD bit. > + > required: > - compatible > - reg > -- > 2.17.1 >