mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
s390/pci: Log new handle in clp_disable_fh()
[ Upstream commite1750a3d9a] After disabling a function, the original handle is logged instead of the disabled handle. Link: https://lkml.kernel.org/r/20200522183922.5253-1-ptesarik@suse.com Fixes:17cdec960c("s390/pci: Recover handle in clp_set_pci_fn()") Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Petr Tesarik <ptesarik@suse.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
862b865247
commit
241c45f390
@@ -309,14 +309,13 @@ out:
|
|||||||
|
|
||||||
int clp_disable_fh(struct zpci_dev *zdev)
|
int clp_disable_fh(struct zpci_dev *zdev)
|
||||||
{
|
{
|
||||||
u32 fh = zdev->fh;
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (!zdev_enabled(zdev))
|
if (!zdev_enabled(zdev))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
rc = clp_set_pci_fn(zdev, 0, CLP_SET_DISABLE_PCI_FN);
|
rc = clp_set_pci_fn(zdev, 0, CLP_SET_DISABLE_PCI_FN);
|
||||||
zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, fh, rc);
|
zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, zdev->fh, rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user