• Yan-Hsuan Chuang's avatar
    rtw88: pci: enable CLKREQ function if host supports it · d2e2c47e
    Yan-Hsuan Chuang authored
    By Realtek's design, there are two HW modules associated for CLKREQ,
    one is responsible to follow the PCIE host settings, and another
    is to actually working on it. But the module that is actually working
    on it is default disabled, and driver should enable that module if
    host and device have successfully sync'ed with each other.
    
    The module is default disabled because sometimes the host does not
    support it, and if there is any incorrect settings (ex. CLKREQ# is
    not Bi-Direction), device can be lost and disconnected to the host.
    
    So driver should first check after host and device are sync'ed, and
    the host does support the function and set it in configuration
    space, then driver can turn on the HW module to working on it.
    Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
    Reviewed-by: default avatarChris Chiu <chiu@endlessm.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    d2e2c47e
pci.h 5.93 KB