pch_uart: Add MSI support
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7b292b4bf9
commit
e463595fd9
@@ -1426,6 +1426,8 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
|
|||||||
goto init_port_hal_free;
|
goto init_port_hal_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pci_enable_msi(pdev);
|
||||||
|
|
||||||
iobase = pci_resource_start(pdev, 0);
|
iobase = pci_resource_start(pdev, 0);
|
||||||
mapbase = pci_resource_start(pdev, 1);
|
mapbase = pci_resource_start(pdev, 1);
|
||||||
priv->mapbase = mapbase;
|
priv->mapbase = mapbase;
|
||||||
@@ -1482,6 +1484,8 @@ static void pch_uart_pci_remove(struct pci_dev *pdev)
|
|||||||
struct eg20t_port *priv;
|
struct eg20t_port *priv;
|
||||||
|
|
||||||
priv = (struct eg20t_port *)pci_get_drvdata(pdev);
|
priv = (struct eg20t_port *)pci_get_drvdata(pdev);
|
||||||
|
|
||||||
|
pci_disable_msi(pdev);
|
||||||
pch_uart_exit_port(priv);
|
pch_uart_exit_port(priv);
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
kfree(priv);
|
kfree(priv);
|
||||||
@@ -1565,6 +1569,7 @@ static int __devinit pch_uart_pci_probe(struct pci_dev *pdev,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
probe_disable_device:
|
probe_disable_device:
|
||||||
|
pci_disable_msi(pdev);
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
probe_error:
|
probe_error:
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user