diff options
author | Aymen Zayet <aymenx.zayet@intel.com> | 2012-03-16 15:01:30 +0100 |
---|---|---|
committer | buildbot <buildbot@intel.com> | 2012-06-14 22:41:02 -0700 |
commit | b7f14bbd838ce461a614cf0af4b54b4d71c85aa1 (patch) | |
tree | a35680a11dbb2676f6710f05977de96dd2733c59 /include/linux | |
parent | dce17327ba73351960c3225226eaa4d225af193c (diff) | |
download | kernel-mfld-blackbay-b7f14bbd838ce461a614cf0af4b54b4d71c85aa1.tar.gz kernel-mfld-blackbay-b7f14bbd838ce461a614cf0af4b54b4d71c85aa1.tar.bz2 kernel-mfld-blackbay-b7f14bbd838ce461a614cf0af4b54b4d71c85aa1.zip |
ST: Adding Runtime PM and S3 support for the shared transport release
BZ: 24772
This patch provides the implementation of PM runtime corresponding to
the new release of the shared transport layer :
- All the newly added callbacks for the KIM driver have been defined.
- The previous implementation of PM runtime get/put have been moved
to the new callbacks .chip_asleep() and .chip_awake() for more
consistency.
- Add more check to avoid S3 while the device is in ST_LL_AWAKE state.
Change-Id: I0aa6aceb5b6c692584e224dee03f9fadbb8dcfdb
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/51770
Reviewed-by: Champciaux, Nicolas <nicolas.champciaux@intel.com>
Tested-by: Champciaux, Nicolas <nicolas.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ti_wilink_st.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h index 77111d59f4a..97a062039b8 100644 --- a/include/linux/ti_wilink_st.h +++ b/include/linux/ti_wilink_st.h @@ -167,6 +167,7 @@ struct st_data_s { void *kim_data; struct tty_struct *tty; struct device *tty_dev; + int is_awake; }; /* @@ -450,10 +451,10 @@ struct ti_st_plat_data { unsigned long baud_rate; int (*suspend)(struct platform_device *, pm_message_t); int (*resume)(struct platform_device *); - int (*chip_enable) (void); - int (*chip_disable) (void); - int (*chip_asleep) (void); - int (*chip_awake) (void); + int (*chip_enable) (struct st_data_s *); + int (*chip_disable) (struct st_data_s *); + int (*chip_asleep) (struct st_data_s *); + int (*chip_awake) (struct st_data_s *); }; #endif /* TI_WILINK_ST_H */ |