[PATCH 6.17 295/563] crypto: hisilicon/qm - check whether the input function and PF are on the same device