Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10936975ybi; Thu, 25 Jul 2019 07:19:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzp4kSufu0ucoO57VmjBm5n3ixNWbmaNhgvmtOGKTU1ckCtiAvUPCsukZvBHavA0ltBKZWW X-Received: by 2002:a17:902:740a:: with SMTP id g10mr91741797pll.82.1564064362460; Thu, 25 Jul 2019 07:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564064362; cv=none; d=google.com; s=arc-20160816; b=i2zk9eG8XHi5NL3wiBDKLysA7R+07VTWglke6JB5RXxYbCoitH/6CkTtYH8IU5YDQV AR5h09vYnC2hTujfFDDOQkNL78U6i7PKhoXyeKw47609mYZvU4IDvJ+4DozTPLk5oKp0 ZQQQEL5sUQa+jqx8L9k7KZWKU4X8P3NX2cZoqg9YnK0VqMtLSiJRMRImVMpc+mLHCS2S WqLt/WSWbpfIysCVCNKFNu191F/cYYxpmpkuvlYB98RX7EJIWlRTJJTespuN+iNsyXLv QmkFnZa+RHXPye7ppc+oBSCax6tczdaucRS9rofMqMKKc2BOXiwNuDqhfifwyd5MR4Qw L3KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B1z3qSqeis7KRp59LvW3GrIz3rWu/CFv+sXSsB3MIv0=; b=MUPbTAINfSbQg9qTt9AFND0LYxeWd9QNmQRGOWR1vwgfaJwFv7FbXrjqlrl3ZkurKv ZDoq+2p/n1BpqeFydi14feZDlNDpbVnEFakKqx4hWvs82n9GAEN2VrgaHEr1VOjCZZ5k sWu5HwdZk4mjSdYD8JiXAQPR9aRTj4W902upc/ldeo2iFLbzn/dKgahKRm5DlDxPVhmM ysdyXtCKJRv8tfPlXqhMRz2berG2GdP+Nr+U74vjI2GOMqPwoPmpHCaxd2EFj8Vr7nIN D+Y2ohaj+PBC456Si4x8SqVLrCUH8htFqiMsL/hIsvh3pKOpoYoBazKjJfiAzu1qNTSs SfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7zg9NIJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a123si21573593pfd.114.2019.07.25.07.19.06; Thu, 25 Jul 2019 07:19:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7zg9NIJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387774AbfGYNdN (ORCPT + 99 others); Thu, 25 Jul 2019 09:33:13 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:35901 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727137AbfGYNdN (ORCPT ); Thu, 25 Jul 2019 09:33:13 -0400 Received: by mail-oi1-f195.google.com with SMTP id q4so8491272oij.3 for ; Thu, 25 Jul 2019 06:33:12 -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=B1z3qSqeis7KRp59LvW3GrIz3rWu/CFv+sXSsB3MIv0=; b=S7zg9NIJWKApcIDLjPg7XBK9rjPeDYoBWNVm005ZjT5gIbIyVfUK1xk1sLRQw2MM6x 0Mdkbzf6ixFn9ev3RGLQI0Euk3fBpj38V9Um9YNXmB8Nig9Gqm7yu3MXe9SGvtsSF/wm cBMTtWscvwBj58mpSYQZHP82mWWmXezEv903XajiM4H7GkdESKIQ2TWthd1ygp1tVdlf auy3V0rc8NfdYnkaaXDknQrzs7TI038ABRxdFGjrDH+niO5voLKTNLeZJ3SjiHVtixc8 lxDg71dtEjf+ShJe5QILrIeZjUXh+f9GR/ZH/Tfe/MfFQcGDLs78lnMBTM2MtL7glJNB 5yWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B1z3qSqeis7KRp59LvW3GrIz3rWu/CFv+sXSsB3MIv0=; b=B9qsvphBpm6bB3G42Kyl8DM1mX/clX794WIfqNz3zzr28sQi9jWO06kF/rywLH3iSa Jnpqb7yArAAoivoO9gy9qk82x0lzNAz/ruDbY/blAnjZXJscY4oG6OBJkNARdSDjipnX PVgg7WoPpyQnwlV5oEWTganqOcR2Mkt3yyQULQrEaBSus0UH5UwCEW1iYVAMah2EQyUU XJIzr5qIqsgsL+ggEP03GaMU19kp6aQ2igVfbI4z+k039NfRGSRdg/U95Ofxp922cqEp YuHD3WfF1N1ZSa4JfS80PaoK7G7TDlw6W4h40jSTANuMgpRQdK3PQG+9d6ITbICVubRm S5wA== X-Gm-Message-State: APjAAAW74d7RbrrL8ji/3TQvZVhg2NcumO3wOVQrA/oVeYhDKPgwWlm9 2Gt4FUBBDjvCLgu3Uvrbv7MN7WWbPJ7zjPfQ69lEwKgBa7s= X-Received: by 2002:a1f:f282:: with SMTP id q124mr34325145vkh.4.1564059690186; Thu, 25 Jul 2019 06:01:30 -0700 (PDT) MIME-Version: 1.0 References: <1561958991-21935-1-git-send-email-manish.narani@xilinx.com> <1561958991-21935-2-git-send-email-manish.narani@xilinx.com> <20190722215404.GA28292@bogus> In-Reply-To: From: Ulf Hansson Date: Thu, 25 Jul 2019 15:00:53 +0200 Message-ID: Subject: Re: [PATCH v2 01/11] dt-bindings: mmc: arasan: Update documentation for SD Card Clock To: Manish Narani Cc: Rob Herring , "mark.rutland@arm.com" , "heiko@sntech.de" , Michal Simek , "adrian.hunter@intel.com" , "christoph.muellner@theobroma-systems.com" , "philipp.tomsich@theobroma-systems.com" , "viresh.kumar@linaro.org" , "scott.branden@broadcom.com" , "ayaka@soulik.info" , "kernel@esmil.dk" , "tony.xie@rock-chips.com" , Rajan Vaja , Jolly Shah , Nava kishore Manne , "mdf@kernel.org" , "olof@lixom.net" , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rockchip@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jul 2019 at 10:23, Manish Narani wrote: > > Hi Rob, > > Thanks a lot for the review! > > > > -----Original Message----- > > From: Rob Herring > > Sent: Tuesday, July 23, 2019 3:24 AM > > To: Manish Narani > > Cc: ulf.hansson@linaro.org; mark.rutland@arm.com; heiko@sntech.de; Michal > > Simek ; adrian.hunter@intel.com; > > christoph.muellner@theobroma-systems.com; philipp.tomsich@theobroma- > > systems.com; viresh.kumar@linaro.org; scott.branden@broadcom.com; > > ayaka@soulik.info; kernel@esmil.dk; tony.xie@rock-chips.com; Rajan Vaja > > ; Jolly Shah ; Nava kishore Manne > > ; mdf@kernel.org; olof@lixom.net; linux- > > mmc@vger.kernel.org; devicetree@vger.kernel.org; linux- > > kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- > > rockchip@lists.infradead.org > > Subject: Re: [PATCH v2 01/11] dt-bindings: mmc: arasan: Update > > documentation for SD Card Clock > > > > On Mon, Jul 01, 2019 at 10:59:41AM +0530, Manish Narani wrote: > > > The clock handling is to be updated in the Arasan SDHCI. As the > > > 'devm_clk_register' is deprecated in the clock framework, this needs to > > > specify one more clock named 'clk_sdcard' to get the clock in the driver > > > via 'devm_clk_get()'. This clock represents the clock from controller to > > > the card. > > > > Please explain why in terms of the binding, not some driver calls. > Okay. > > > > > > > > Signed-off-by: Manish Narani > > > --- > > > Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 15 ++++++++++- > > ---- > > > 1 file changed, 10 insertions(+), 5 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > > b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > > > index 1edbb04..15c6397 100644 > > > --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > > > +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > > > @@ -23,6 +23,10 @@ Required Properties: > > > - reg: From mmc bindings: Register location and length. > > > - clocks: From clock bindings: Handles to clock inputs. > > > - clock-names: From clock bindings: Tuple including "clk_xin" and "clk_ahb" > > > + Apart from these two there is one more optional clock which > > > + is "clk_sdcard". This clock represents output clock from > > > + controller and card. This must be specified when #clock-cells > > > + is specified. > > > - interrupts: Interrupt specifier > > > > > > Required Properties for "arasan,sdhci-5.1": > > > @@ -36,9 +40,10 @@ Optional Properties: > > > - clock-output-names: If specified, this will be the name of the card clock > > > which will be exposed by this device. Required if #clock-cells is > > > specified. > > > - - #clock-cells: If specified this should be the value <0>. With this property > > > - in place we will export a clock representing the Card Clock. This clock > > > - is expected to be consumed by our PHY. You must also specify > > > + - #clock-cells: If specified this should be the value <0>. With this > > > + property in place we will export one clock representing the Card > > > + Clock. This clock is expected to be consumed by our PHY. You must also > > > + specify > > > > specify what? > I think this line was already there, I missed to correct it, Will update in v3. > > > > > The 3rd clock input I assume? This statement means any existing users > > with 2 clock inputs and #clock-cells are in error now. Is that correct? > Yes, this is correct. So far there was only one vendor using '#clock-cells' which is Rockchip. I have sent DT patch (02/11) for that also. > Here this is needed as earlier implementation isn't correct as suggested by Uffe. (https://lkml.org/lkml/2019/6/20/486) . I am not sure how big of a problem the backwards compatible thingy with DT is, in general we must not break it. What do you say Manish? As a workaround, would it be possible to use of_clk_get_from_provider() somehow to address the compatibility issue? Or maybe there is another clock API that can help. Kind regards Uffe