-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Open
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresplatform: Renesas R-CarRenesas R-CarRenesas R-Car
Description
To prevent the R-Car PFC driver from functioning incorrectly, it is necessary to add locks. For instance, if a thread happens to call the pfc_rcar_write
function and then goes to sleep between two writes, the value in PMMR can be overwritten by another thread:
sys_write32(~val, PFC_REG_BASE + PFC_RCAR_PMMR);
sys_write32(val, PFC_REG_BASE + offs);
To address this issue and similar situations within the driver, proper protection should be implemented.
Furthermore, there can be an issue when attempting to modify the PFC state on multi-core systems.
Metadata
Metadata
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresplatform: Renesas R-CarRenesas R-CarRenesas R-Car