]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 24 Jan 2018 11:01:57 +0000 (06:01 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:18:50 +0000 (08:18 -0600)
BugLink: http://bugs.launchpad.net/bugs/1751064
commit 9893b905e743ded332575ca04486bd586c0772f7 upstream.

The XC2028_I2C_FLUSH only needs to be implemented on a few
devices. Others can safely ignore it.

That prevents filling the dmesg with lots of messages like:

dib0700: stk7700ph_xc3028_callback: unknown command 2, arg 0

Fixes: 4d37ece757a8 ("[media] tuner/xc2028: Add I2C flush callback")
Reported-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/usb/dvb-usb/cxusb.c
drivers/media/usb/dvb-usb/dib0700_devices.c

index 37dea0adc695382068059fcce20f07fffebe9bc4..cfe86b4864b3cc4dfc2c6ff05ad5bc44ed35ffdc 100644 (file)
@@ -677,6 +677,8 @@ static int dvico_bluebird_xc2028_callback(void *ptr, int component,
        case XC2028_RESET_CLK:
                deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg);
                break;
+       case XC2028_I2C_FLUSH:
+               break;
        default:
                deb_info("%s: unknown command %d, arg %d\n", __func__,
                         command, arg);
index 366b055299157e617020ee00d9c356cf0758732f..a9968fb1e8e4c8b28d962929e4f0124305d9c003 100644 (file)
@@ -430,6 +430,7 @@ static int stk7700ph_xc3028_callback(void *ptr, int component,
                state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1);
                break;
        case XC2028_RESET_CLK:
+       case XC2028_I2C_FLUSH:
                break;
        default:
                err("%s: unknown command %d, arg %d\n", __func__,