make clk_get_rate implementations behavior more consistent
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | ARM: ep93xx: allow NULL clock for clk_get_ratearch/ | +3 | 1 reply | |
| 2/9 | ARM: mmp: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies | |
| 3/9 | blackfin: bf609: allow NULL clock for clk_get_ratearch/ | +1 | 1 reply | |
| 4/9 | m68k: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies | |
| 4/9 | m68k: allow NULL clock for clk_get_ratearch/ | +3 | 5 replies | |
| 5/9 | MIPS: AR7: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies | |
| 6/9 | MIPS: BCM63XX: allow NULL clock for clk_get_ratearch/ | +3 | 1 reply | |
| 7/9 | MIPS: Loongson 2F: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies | |
| 8/9 | MIPS: ralink: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies | |
| 9/9 | unicore32: allow NULL clock for clk_get_ratearch/ | +3 | 0 replies |
Reviews trailers per patch
5 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Geert Uytterhoeven | Greg Ungerer | Masahiro Yamada | Florian Fainelli | Alexander Sverdlin |
|---|---|---|---|---|---|
| Series | R-b | ||||
| 1/9 | A-b | ||||
| 2/9 | |||||
| 3/9 | R-b | ||||
| 4/9 | A-b | ||||
| 4/9 | A-b | ||||
| 5/9 | |||||
| 6/9 | R-b | ||||
| 7/9 | |||||
| 8/9 | |||||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH 0/9] make clk_get_rate implementations behavior more consistent
The common clock and several other clock API implementations allow calling clk_get_rate with a NULL pointer. While not specified as expected behavior of the API, device drivers have come to rely on that, causing them to OOPS when run on a platform with a different clock API implementation.
Fix this by making sure all clk_get_rate implementations handle NULL clocks instead of OOPSing.
While some custom implementations even allow ERR_PTR()s, I decided against that as IIRC the usual idea is that errors should be handled and not silently carried over.
Jonas Gorski (9):
ARM: ep93xx: allow NULL clock for clk_get_rate
ARM: mmp: allow NULL clock for clk_get_rate
blackfin: bf609: allow NULL clock for clk_get_rate
m68k: allow NULL clock for clk_get_rate
MIPS: AR7: allow NULL clock for clk_get_rate
MIPS: BCM63XX: allow NULL clock for clk_get_rate
MIPS: Loongson 2F: allow NULL clock for clk_get_rate
MIPS: ralink: allow NULL clock for clk_get_rate
unicore32: allow NULL clock for clk_get_rate
arch/arm/mach-ep93xx/clock.c | 3 +++ arch/arm/mach-mmp/clock.c | 4 +++- arch/blackfin/mach-bf609/clock.c | 2 +- arch/m68k/coldfire/clk.c | 3 +++ arch/mips/ar7/clock.c | 3 +++ arch/mips/bcm63xx/clk.c | 3 +++ arch/mips/loongson64/lemote-2f/clock.c | 3 +++ arch/mips/ralink/clk.c | 3 +++ arch/unicore32/kernel/clock.c | 3 +++ 9 files changed, 25 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0