public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
@ 2023-04-17  2:42 Chunfeng Yun
  2023-04-17  2:42 ` [PATCH v3 2/2] usb: xhci-mtk: add " Chunfeng Yun
  2023-04-20  8:07 ` [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an " Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Chunfeng Yun @ 2023-04-17  2:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring
  Cc: Chunfeng Yun, Krzysztof Kozlowski, Matthias Brugger,
	AngeloGioacchino Del Regno, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang, Krzysztof Kozlowski

Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v3: add acked-by and Reviewed-by tags

v2: based the patch:
    https://patchwork.kernel.org/project/linux-mediatek/patch/20230403191850.374839-1-krzysztof.kozlowski@linaro.org/
---
 Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
index 1b0dfaa6b3dd..f2f926cf4039 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
@@ -77,6 +77,7 @@ properties:
       - description: Mcu bus clock for register access
       - description: DMA bus clock for data transfer
       - description: controller clock
+      - description: frame count clock
 
   clock-names:
     minItems: 1
@@ -86,6 +87,7 @@ properties:
       - const: mcu_ck
       - const: dma_ck
       - const: xhci_ck
+      - const: frmcnt_ck
 
   phys:
     description:
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] usb: xhci-mtk: add optional frame count clock
  2023-04-17  2:42 [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
@ 2023-04-17  2:42 ` Chunfeng Yun
  2023-04-20  8:07 ` [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an " Greg Kroah-Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Chunfeng Yun @ 2023-04-17  2:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring
  Cc: Chunfeng Yun, Krzysztof Kozlowski, Matthias Brugger,
	AngeloGioacchino Del Regno, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang

Add optional clock frmcnt_ck used on 4nm or advanced process SoC

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v3: add reviewed-by AngeloGioacchino

v2: no changes
---
 drivers/usb/host/xhci-mtk.c | 1 +
 drivers/usb/host/xhci-mtk.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index f7cbb08fc506..90cf40d6d0c3 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -398,6 +398,7 @@ static int xhci_mtk_clks_get(struct xhci_hcd_mtk *mtk)
 	clks[2].id = "ref_ck";
 	clks[3].id = "mcu_ck";
 	clks[4].id = "dma_ck";
+	clks[5].id = "frmcnt_ck";
 
 	return devm_clk_bulk_get_optional(mtk->dev, BULK_CLKS_NUM, clks);
 }
diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h
index 1174a510dd38..faaaf05e36ce 100644
--- a/drivers/usb/host/xhci-mtk.h
+++ b/drivers/usb/host/xhci-mtk.h
@@ -15,7 +15,7 @@
 
 #include "xhci.h"
 
-#define BULK_CLKS_NUM	5
+#define BULK_CLKS_NUM	6
 #define BULK_VREGS_NUM	2
 
 /* support at most 64 ep, use 32 size hash table */
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
  2023-04-17  2:42 [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
  2023-04-17  2:42 ` [PATCH v3 2/2] usb: xhci-mtk: add " Chunfeng Yun
@ 2023-04-20  8:07 ` Greg Kroah-Hartman
  2023-04-21  1:33   ` Chunfeng Yun (云春峰)
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2023-04-20  8:07 UTC (permalink / raw)
  To: Chunfeng Yun
  Cc: Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
	AngeloGioacchino Del Regno, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang, Krzysztof Kozlowski

On Mon, Apr 17, 2023 at 10:42:12AM +0800, Chunfeng Yun wrote:
> Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC
> 
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> ---
> v3: add acked-by and Reviewed-by tags

There's never a need to do this as our tools pick them up automatically.
This resend did nothing but move it later in the queue to review :(

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
  2023-04-20  8:07 ` [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an " Greg Kroah-Hartman
@ 2023-04-21  1:33   ` Chunfeng Yun (云春峰)
  0 siblings, 0 replies; 4+ messages in thread
From: Chunfeng Yun (云春峰) @ 2023-04-21  1:33 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org
  Cc: linux-mediatek@lists.infradead.org, robh+dt@kernel.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, mathias.nyman@intel.com,
	krzysztof.kozlowski@linaro.org,
	Tianping Fang (方天平),
	linux-arm-kernel@lists.infradead.org,
	krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com

On Thu, 2023-04-20 at 10:07 +0200, Greg Kroah-Hartman wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On Mon, Apr 17, 2023 at 10:42:12AM +0800, Chunfeng Yun wrote:
> > Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC
> > 
> > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > Reviewed-by: AngeloGioacchino Del Regno <
> > angelogioacchino.delregno@collabora.com>
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> > v3: add acked-by and Reviewed-by tags
> 
> There's never a need to do this as our tools pick them up
> automatically.
> This resend did nothing but move it later in the queue to review :(

Got it, thanks a lot

> 
> thanks,
> 
> greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-21  1:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-17  2:42 [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
2023-04-17  2:42 ` [PATCH v3 2/2] usb: xhci-mtk: add " Chunfeng Yun
2023-04-20  8:07 ` [PATCH v3 1/2] dt-bindings: usb: mtk-xhci: add an " Greg Kroah-Hartman
2023-04-21  1:33   ` Chunfeng Yun (云春峰)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox