diff mbox series

i2c: ali1535: mention that the device should not be disabled

Message ID 20210625151758.12180-1-wsa@kernel.org
State Accepted
Commit 9d6336831bdc78e5207eaf147cc17228b5e984c3
Headers show
Series i2c: ali1535: mention that the device should not be disabled | expand

Commit Message

Wolfram Sang June 25, 2021, 3:17 p.m. UTC
The comment from the i801 driver is valid here, too, so copy it.

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 drivers/i2c/busses/i2c-ali1535.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Jean Delvare July 1, 2021, 12:14 p.m. UTC | #1
On Fri, 25 Jun 2021 17:17:58 +0200, Wolfram Sang wrote:
> The comment from the i801 driver is valid here, too, so copy it.

> 

> Reported-by: Jean Delvare <jdelvare@suse.de>

> Signed-off-by: Wolfram Sang <wsa@kernel.org>

> ---

>  drivers/i2c/busses/i2c-ali1535.c | 5 +++++

>  1 file changed, 5 insertions(+)

> 

> diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c

> index fb93152845f4..ee83c4581bce 100644

> --- a/drivers/i2c/busses/i2c-ali1535.c

> +++ b/drivers/i2c/busses/i2c-ali1535.c

> @@ -508,6 +508,11 @@ static void ali1535_remove(struct pci_dev *dev)

>  {

>  	i2c_del_adapter(&ali1535_adapter);

>  	release_region(ali1535_smba, ALI1535_SMB_IOSIZE);

> +

> +	/*

> +	 * do not call pci_disable_device(dev) since it can cause hard hangs on

> +	 * some systems during power-off

> +	 */

>  }

>  

>  static struct pci_driver ali1535_driver = {


Can't hurt.

Reviewed-by: Jean Delvare <jdelvare@suse.de>


-- 
Jean Delvare
SUSE L3 Support
Wolfram Sang July 2, 2021, 7:53 a.m. UTC | #2
On Fri, Jun 25, 2021 at 05:17:58PM +0200, Wolfram Sang wrote:
> The comment from the i801 driver is valid here, too, so copy it.

> 

> Reported-by: Jean Delvare <jdelvare@suse.de>

> Signed-off-by: Wolfram Sang <wsa@kernel.org>


Applied to for-current, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c
index fb93152845f4..ee83c4581bce 100644
--- a/drivers/i2c/busses/i2c-ali1535.c
+++ b/drivers/i2c/busses/i2c-ali1535.c
@@ -508,6 +508,11 @@  static void ali1535_remove(struct pci_dev *dev)
 {
 	i2c_del_adapter(&ali1535_adapter);
 	release_region(ali1535_smba, ALI1535_SMB_IOSIZE);
+
+	/*
+	 * do not call pci_disable_device(dev) since it can cause hard hangs on
+	 * some systems during power-off
+	 */
 }
 
 static struct pci_driver ali1535_driver = {