[PATCH 6.12 113/262] crypto: hisilicon/qm - check whether the input function and PF are on the same device