Commit Graph
2 Commits
Author SHA1 Message Date
Felix Gu 3c85234b97 cache: starfive: fix device node leak in starlink_cache_init()
of_find_matching_node() returns a device_node with refcount incremented.

Use __free(device_node) attribute to automatically call of_node_put()
when the variable goes out of scope, preventing the refcount leak.

Fixes: cabff60ca7 ("cache: Add StarFive StarLink cache management")
Signed-off-by: Felix Gu <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
2026-02-06 19:54:27 +00:00
Joshua Yeong cabff60ca7 cache: Add StarFive StarLink cache management
Add StarFive Starlink cache management driver.
The driver enables RISC-V non-standard cache
operation on SoC that does not support Zicbom
extension instructions.

Signed-off-by: Joshua Yeong <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
2024-05-28 12:34:11 +01:00