• Dolev Raviv's avatar
    ufs: refactor configuring power mode · 7eb584db
    Dolev Raviv authored
    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: default avatarDolev Raviv <draviv@codeaurora.org>
    Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    7eb584db
ufshcd.c 131 KB