mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
linux: fix cx23885 bug affecting DVBSky/Technotrend cards with CI
In Linux kernels 4.0-4.5 there is a bug that breaks the common interface of certain DVBSky and TechnoTrend devices. This patch fixes it and can be discarded after fixed upstream kernel is in use.
This commit is contained in:
parent
6465a8c3e3
commit
3133a43216
22
packages/linux/patches/4.4.5/linux-231-fix-cx23885-ci-devices.patch
vendored
Normal file
22
packages/linux/patches/4.4.5/linux-231-fix-cx23885-ci-devices.patch
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c
|
||||
index 31765aa..f041b69 100644
|
||||
--- a/drivers/media/pci/cx23885/cx23885-dvb.c
|
||||
+++ b/drivers/media/pci/cx23885/cx23885-dvb.c
|
||||
@@ -1139,7 +1139,7 @@ static int dvb_register_ci_mac(struct cx23885_tsport *port)
|
||||
u8 eeprom[256]; /* 24C02 i2c eeprom */
|
||||
struct sp2_config sp2_config;
|
||||
struct i2c_board_info info;
|
||||
- struct cx23885_i2c *i2c_bus2 = &dev->i2c_bus[1];
|
||||
+ struct cx23885_i2c *i2c_bus = &dev->i2c_bus[0];
|
||||
|
||||
/* attach CI */
|
||||
memset(&sp2_config, 0, sizeof(sp2_config));
|
||||
@@ -1151,7 +1151,7 @@ static int dvb_register_ci_mac(struct cx23885_tsport *port)
|
||||
info.addr = 0x40;
|
||||
info.platform_data = &sp2_config;
|
||||
request_module(info.type);
|
||||
- client_ci = i2c_new_device(&i2c_bus2->i2c_adap, &info);
|
||||
+ client_ci = i2c_new_device(&i2c_bus->i2c_adap, &info);
|
||||
if (client_ci == NULL || client_ci->dev.driver == NULL)
|
||||
return -ENODEV;
|
||||
if (!try_module_get(client_ci->dev.driver->owner)) {
|
Loading…
x
Reference in New Issue
Block a user