diff options
Diffstat (limited to 'include/linux/mhi.h')
| -rw-r--r-- | include/linux/mhi.h | 18 | 
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/mhi.h b/include/linux/mhi.h index 77b8c0a26674..cde01e133a1b 100644 --- a/include/linux/mhi.h +++ b/include/linux/mhi.h @@ -630,13 +630,29 @@ int mhi_async_power_up(struct mhi_controller *mhi_cntrl);  int mhi_sync_power_up(struct mhi_controller *mhi_cntrl);  /** - * mhi_power_down - Start MHI power down sequence + * mhi_power_down - Power down the MHI device and also destroy the + *                  'struct device' for the channels associated with it. + *                  See also mhi_power_down_keep_dev() which is a variant + *                  of this API that keeps the 'struct device' for channels + *                  (useful during suspend/hibernation).   * @mhi_cntrl: MHI controller   * @graceful: Link is still accessible, so do a graceful shutdown process   */  void mhi_power_down(struct mhi_controller *mhi_cntrl, bool graceful);  /** + * mhi_power_down_keep_dev - Power down the MHI device but keep the 'struct + *                           device' for the channels associated with it. + *                           This is a variant of 'mhi_power_down()' and + *                           useful in scenarios such as suspend/hibernation + *                           where destroying of the 'struct device' is not + *                           needed. + * @mhi_cntrl: MHI controller + * @graceful: Link is still accessible, so do a graceful shutdown process + */ +void mhi_power_down_keep_dev(struct mhi_controller *mhi_cntrl, bool graceful); + +/**   * mhi_unprepare_after_power_down - Free any allocated memory after power down   * @mhi_cntrl: MHI controller   */  |