public inbox for linux-aspeed@lists.ozlabs.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix clock name in Aspeed GPIO bindings and driver
@ 2017-08-08  6:07 Andrew Jeffery
  2017-08-08  6:07 ` [PATCH 1/2] dt-bindings: gpio: aspeed: Remove reference to clock name Andrew Jeffery
  2017-08-08  6:07 ` [PATCH 2/2] gpio: aspeed: Remove reference to clock name in debounce warning message Andrew Jeffery
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Jeffery @ 2017-08-08  6:07 UTC (permalink / raw)
  To: linux-aspeed

Hello,

Joel discovered I brain-farted the referenced clock name in the patches
introducing the debounce capability for the Aspeed driver. The datasheet says
PCLK but I wrote HPLL for whatever reason, so clean up that mistake by simply
removing references to HPLL and put the onus on the devicetree author to
get it right.

Cheers,

Andrew

Andrew Jeffery (2):
  dt-bindings: gpio: aspeed: Remove reference to clock name
  gpio: aspeed: Remove reference to clock name in debounce warning
    message

 Documentation/devicetree/bindings/gpio/gpio-aspeed.txt | 2 +-
 drivers/gpio/gpio-aspeed.c                             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.11.0


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

* [PATCH 1/2] dt-bindings: gpio: aspeed: Remove reference to clock name
  2017-08-08  6:07 [PATCH 0/2] Fix clock name in Aspeed GPIO bindings and driver Andrew Jeffery
@ 2017-08-08  6:07 ` Andrew Jeffery
  2017-08-08  6:07 ` [PATCH 2/2] gpio: aspeed: Remove reference to clock name in debounce warning message Andrew Jeffery
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jeffery @ 2017-08-08  6:07 UTC (permalink / raw)
  To: linux-aspeed

HPLL is in fact not the clock we need. Remove prescription of which clock to
avoid further error. Please refer to your datasheet and double check like I
should have.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 Documentation/devicetree/bindings/gpio/gpio-aspeed.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt b/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt
index c756afa88cc6..fc6378c778c5 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt
@@ -18,7 +18,7 @@ Required properties:
 Optional properties:
 
 - interrupt-parent      : The parent interrupt controller, optional if inherited
-- clocks                : A phandle to the HPLL clock node for debounce timings
+- clocks                : A phandle to the clock to use for debounce timings
 
 The gpio and interrupt properties are further described in their respective
 bindings documentation:
-- 
2.11.0


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

* [PATCH 2/2] gpio: aspeed: Remove reference to clock name in debounce warning message
  2017-08-08  6:07 [PATCH 0/2] Fix clock name in Aspeed GPIO bindings and driver Andrew Jeffery
  2017-08-08  6:07 ` [PATCH 1/2] dt-bindings: gpio: aspeed: Remove reference to clock name Andrew Jeffery
@ 2017-08-08  6:07 ` Andrew Jeffery
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jeffery @ 2017-08-08  6:07 UTC (permalink / raw)
  To: linux-aspeed

HPLL is in fact not the clock we need. Remove the description of which clock we
failed to find a phandle to in order to avoid any further error.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 drivers/gpio/gpio-aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c
index 4ca436e66bdb..bfc53995064a 100644
--- a/drivers/gpio/gpio-aspeed.c
+++ b/drivers/gpio/gpio-aspeed.c
@@ -834,7 +834,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
 	gpio->clk = of_clk_get(pdev->dev.of_node, 0);
 	if (IS_ERR(gpio->clk)) {
 		dev_warn(&pdev->dev,
-				"No HPLL clock phandle provided, debouncing disabled\n");
+				"Failed to get clock from devicetree, debouncing disabled\n");
 		gpio->clk = NULL;
 	}
 
-- 
2.11.0


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

end of thread, other threads:[~2017-08-08  6:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08  6:07 [PATCH 0/2] Fix clock name in Aspeed GPIO bindings and driver Andrew Jeffery
2017-08-08  6:07 ` [PATCH 1/2] dt-bindings: gpio: aspeed: Remove reference to clock name Andrew Jeffery
2017-08-08  6:07 ` [PATCH 2/2] gpio: aspeed: Remove reference to clock name in debounce warning message Andrew Jeffery

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