[v3,0/3] bus: sunxi-rsb: Fix poweroff issues

Message ID 20221114015749.28490-1-samuel@sholland.org
Headers
Series bus: sunxi-rsb: Fix poweroff issues |

Message

Samuel Holland Nov. 14, 2022, 1:57 a.m. UTC
  This series fixes a couple of issues that occur when powering off a
board using a PMIC attached to the RSB bus.

These issues only affected 32-bit platforms, because 64-bit platforms
use PSCI for pm_power_off(), and the PSCI firmware reinitializes the
RSB controller.

Changes in v3:
 - Adjust patch 1 commit message
 - Clear the interrupt status register after polling
 - Add a patch refactoring how the status bits are cleared

Changes in v2:
 - Add Fixes tag to patch 2
 - Only check for specific status bits when polling

Samuel Holland (3):
  bus: sunxi-rsb: Remove the shutdown callback
  bus: sunxi-rsb: Support atomic transfers
  bus: sunxi-rsb: Clear interrupt status before each transfer

 drivers/bus/sunxi-rsb.c | 56 ++++++++++++++++++-----------------------
 1 file changed, 25 insertions(+), 31 deletions(-)
  

Comments

Jernej Škrabec Nov. 16, 2022, 6:29 p.m. UTC | #1
Dne ponedeljek, 14. november 2022 ob 02:57:46 CET je Samuel Holland 
napisal(a):
> This series fixes a couple of issues that occur when powering off a
> board using a PMIC attached to the RSB bus.
> 
> These issues only affected 32-bit platforms, because 64-bit platforms
> use PSCI for pm_power_off(), and the PSCI firmware reinitializes the
> RSB controller.
> 
> Changes in v3:
>  - Adjust patch 1 commit message
>  - Clear the interrupt status register after polling
>  - Add a patch refactoring how the status bits are cleared
> 
> Changes in v2:
>  - Add Fixes tag to patch 2
>  - Only check for specific status bits when polling
> 
> Samuel Holland (3):
>   bus: sunxi-rsb: Remove the shutdown callback
>   bus: sunxi-rsb: Support atomic transfers
>   bus: sunxi-rsb: Clear interrupt status before each transfer

Applied patches 1 and 2.

Best regards,
Jernej

> 
>  drivers/bus/sunxi-rsb.c | 56 ++++++++++++++++++-----------------------
>  1 file changed, 25 insertions(+), 31 deletions(-)
> 
> --
> 2.37.3