diff options
author | Roger Tseng <rogerable@realtek.com> | 2014-04-11 14:53:21 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-04-28 11:01:18 +0100 |
commit | 5f0334205239bb5ae22ca89ad2af378062836498 (patch) | |
tree | aaeea64823ac193eed45b931e121e475732cacfd | |
parent | fea52b8910f6f5438790dbd2de45003ce08d01a5 (diff) | |
download | linux-5f0334205239bb5ae22ca89ad2af378062836498.tar.bz2 |
mfd: rtsx_usb: Add comment in rtsx_usb_suspend
Explain why there is no need to have a symmetric LED turn-on in resume handler
while calling rtsx_usb_turn_off_led() in suspend handler.
Signed-off-by: Roger Tseng <rogerable@realtek.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/rtsx_usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/rtsx_usb.c b/drivers/mfd/rtsx_usb.c index 0ca79736afe9..141ea52c46e3 100644 --- a/drivers/mfd/rtsx_usb.c +++ b/drivers/mfd/rtsx_usb.c @@ -687,9 +687,15 @@ static int rtsx_usb_suspend(struct usb_interface *intf, pm_message_t message) dev_dbg(&intf->dev, "%s called with pm message 0x%04u\n", __func__, message.event); + /* + * Call to make sure LED is off during suspend to save more power. + * It is NOT a permanent state and could be turned on anytime later. + * Thus no need to call turn_on when resunming. + */ mutex_lock(&ucr->dev_mutex); rtsx_usb_turn_off_led(ucr); mutex_unlock(&ucr->dev_mutex); + return 0; } |