Commit 6863e2bb authored by Harini Katakam's avatar Harini Katakam Committed by Michal Simek
Browse files

SPI: zynq: Updated suspend and resume logic



Use a driver state variable to indicate suspend or ready state.
Initialize this to ready in probe function.
Changes in suspend function - disable interrupts,
de-assert chip select, signal completion, disable controller and
change driver state to suspend.
Changes in resume function - do not perform hardware initialization
again. Just change driver state to ready.
Changes in prepare_hardware function - Check for driver state -
If ready enable the controller, else return error.

Signed-off-by: default avatarHarini Katakam <harinik@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 6bfa6a29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment