• Z
    ACC: drivers/crypto/zip: Fix 2ECC bug · f2db1e31
    Zhou Wang 提交于
    driver inclusion
    category: bugfix
    bugzilla: NA
    CVE: NA
    
    As mentioned in this DTS, insmod zip module fails after triggering zip
    2ECC error when zip module is not loading.
    
    The reason is when zip 2ECC irq source is not cleared and zip PCI bus
    master enable bit is setting which will trigger FLR in hardware level
    happen at the same time, hardware(FLR flow) will hange.
    
    And when zip 2ECC irq source is not cleared, zip master interface will
    be blocked.
    
    So in this patch, we configure qm register to disable FLR when zip PCI
    bus master enable bit is setting, and also clear zip error source in
    driver probe flow which will make zip master interface is not blocked
    (otherwise even FLR is OK, but master interface is block, mailbox
    operation will still fail).
    Signed-off-by: NZhou Wang <wangzhou1@hisilicon.com>
    Reviewed-by: Nfanghao <fanghao11@huawei.com>
    Reviewed-by: Nxuzaibo <xuzaibo@huawei.com>
    Signed-off-by: Nlingmingqiang <lingmingqiang@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    f2db1e31
zip_main.c 34.3 KB