crypto: hisilicon - check _PS0 and _PR0 method
authorWeili Qian <qianweili@huawei.com>
Fri, 13 Aug 2021 09:50:09 +0000 (17:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:58 +0000 (15:44 +0800)
commit3e1d2c52b2045ba7f90966b02daeb6c438432570
tree6747d3eefbd44fa18533ded47aa6f41e270c67c9
parent74f5edbffcd37162084b6883e059bb6bb686151d
crypto: hisilicon - check _PS0 and _PR0 method

To support runtime PM, use the function 'pci_set_power_state' to change
the power state. Therefore, method _PS0 or _PR0 needs to be filled by
platform. So check whether the method is supported, if not, print a
prompt information.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c