i2c: i801: make FEATURE_BLOCK_PROC dependent on FEATURE_BLOCK_BUFFER
PATCH 1/1 i2c: i801: make FEATURE_BLOCK_PROC dependent on FEATURE_BLOCK_BUFFER
According to the datasheet the block process call requires block buffer mode. The user may disable block buffer mode by module parameter disable_features, in such a case we have to clear FEATURE_BLOCK_PROC.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/i2c/busses/i2c-i801.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/i2c/busses/i2c-i801.c +3 -0
@@ -1684,6 +1684,9 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) } priv->features &= ~disable_features; +if (!(priv->features &FEATURE_BLOCK_BUFFER )) + priv->features &= ~FEATURE_BLOCK_PROC ; + err =pcim_enable_device (dev);if (err) { dev_err(&dev->dev, "Failed to enable SMBus PCI device (%d)\n",
Signature · 1 line
2.34.1