]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ufs: refactor configuring power mode
authorDolev Raviv <draviv@codeaurora.org>
Thu, 25 Sep 2014 12:32:31 +0000 (15:32 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Oct 2014 11:11:23 +0000 (13:11 +0200)
commit7eb584db73bebbc9852a14341431ed6935419bec
treecfd9dd104806fd4a91efdc21b2bf625b831d1e61
parent57d104c153d3d6d7bea60089e80f37501851ed2c
ufs: refactor configuring power mode

Sometimes, the device shall report its maximum power and speed
capabilities, but we might not wish to configure it to use those
maximum capabilities.
This change adds support for the vendor specific host driver to
implement power change notify callback.

To enable configuring different power modes (number of lanes,
gear number and fast/slow modes) it is necessary to split the
configuration stage from the stage that reads the device max power mode.
In addition, it is not required to read the configuration more than
once, thus the configuration is stored after reading it once.

Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h