Unverified Commit b04d336f authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

Merge tag 'apple-soc-drivers-6.20' of...

Merge tag 'apple-soc-drivers-6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/sven/linux into soc/drivers

Apple SoC driver updates for 6.20

- Add a poweroff function to the RTKit library which will be required
  for the first USB4/Thunderbolt series I hope to submit next cycle.

* tag 'apple-soc-drivers-6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/sven/linux

:
  soc: apple: rtkit: Add function to poweroff

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 733f0303 ba99035b
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -851,6 +851,22 @@ int apple_rtkit_shutdown(struct apple_rtkit *rtk)
}
EXPORT_SYMBOL_GPL(apple_rtkit_shutdown);

int apple_rtkit_poweroff(struct apple_rtkit *rtk)
{
	int ret;

	ret = apple_rtkit_set_ap_power_state(rtk, APPLE_RTKIT_PWR_STATE_OFF);
	if (ret)
		return ret;

	ret = apple_rtkit_set_iop_power_state(rtk, APPLE_RTKIT_PWR_STATE_OFF);
	if (ret)
		return ret;

	return apple_rtkit_reinit(rtk);
}
EXPORT_SYMBOL_GPL(apple_rtkit_poweroff);

int apple_rtkit_idle(struct apple_rtkit *rtk)
{
	int ret;
+7 −0
Original line number Diff line number Diff line
@@ -125,6 +125,13 @@ int apple_rtkit_wake(struct apple_rtkit *rtk);
 */
int apple_rtkit_shutdown(struct apple_rtkit *rtk);

/*
 * Put the co-processor into the lowest power state. Note that it usually
 * is not possible to recover from this state without a full SoC reset.
 */

int apple_rtkit_poweroff(struct apple_rtkit *rtk);

/*
 * Put the co-processor into idle mode
 */