Thread (29 messages) 29 messages, 7 authors, 2010-08-03
STALE5830d

[PATCH v4] GPIO PL061: Adding Clk framework support

From: Linus Walleij <hidden>
Date: 2010-07-30 15:19:03

2010/7/30 Kevin Wells [off-list ref]:
quoted
- ? ? id = amba_lookup(pcdrv->id_table, pcdev);
+ ? ? do {
+ ? ? ? ? ? ? ret = amba_get_enable_pclk(pcdev);
+ ? ? ? ? ? ? if (ret)
+ ? ? ? ? ? ? ? ? ? ? break;
+
+ ? ? ? ? ? ? ret = pcdrv->probe(pcdev, id);
+ ? ? ? ? ? ? if (ret == 0)
+ ? ? ? ? ? ? ? ? ? ? break;

- ? ? return pcdrv->probe(pcdev, id);
+ ? ? ? ? ? ? amba_put_disable_pclk(pcdev);
Should the AMBA clock be disabled if the probe() fails?
Yes. This is the pclk for this one PrimeCell. It is first turned on,
then the driver attempts to probe and in case that fails there
obviously is no driver for this piece of silicon so why should it
be clocked?

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help