Skip to content

spmi: msm: Allow writes to SDAM02 reboot mode peripheral#32

Open
aswinm94 wants to merge 1 commit intoqualcomm-linux:u-boot-mainline-1.0from
aswinm94:lemans-sdam
Open

spmi: msm: Allow writes to SDAM02 reboot mode peripheral#32
aswinm94 wants to merge 1 commit intoqualcomm-linux:u-boot-mainline-1.0from
aswinm94:lemans-sdam

Conversation

@aswinm94
Copy link
Copy Markdown

Add an exception to bypass the read-only check for the SDAM02 reboot mode peripheral (slave_id=0, pid=0x71) in the SPMI write function.

This peripheral needs to be writable to store reboot reason information, even when the channel is marked as read-only due to ownership by a different execution environment.

The change adds:

  • SDAM02_REBOOT_MODE_PID definition (0x71)
  • Runtime check in msm_spmi_write() to skip read-only enforcement for this specific peripheral

This allows the reboot mode to be written successfully while maintaining read-only protection for all other peripherals.

Add an exception to bypass the read-only check for the SDAM02 reboot
mode peripheral (slave_id=0, pid=0x71) in the SPMI write function.

This peripheral needs to be writable to store reboot reason information,
even when the channel is marked as read-only due to ownership by a
different execution environment.

The change adds:
- SDAM02_REBOOT_MODE_PID definition (0x71)
- Runtime check in msm_spmi_write() to skip read-only enforcement
  for this specific peripheral

This allows the reboot mode to be written successfully while maintaining
read-only protection for all other peripherals.

Signed-off-by: Aswin Murugan <aswinm@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants