Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] pulse8-cec: move out of staging

Now that the CEC framework has been moved out of staging and into the
mainline kernel we can do the same for the pulse8-cec driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
aee4c782 a161bef0

+6 -55
+5
drivers/media/usb/Kconfig
··· 60 60 source "drivers/media/usb/msi2500/Kconfig" 61 61 endif 62 62 63 + if MEDIA_CEC_SUPPORT 64 + comment "USB HDMI CEC adapters" 65 + source "drivers/media/usb/pulse8-cec/Kconfig" 66 + endif 67 + 63 68 endif #MEDIA_USB_SUPPORT 64 69 endif #USB
+1
drivers/media/usb/Makefile
··· 24 24 obj-$(CONFIG_VIDEO_USBTV) += usbtv/ 25 25 obj-$(CONFIG_VIDEO_GO7007) += go7007/ 26 26 obj-$(CONFIG_DVB_AS102) += as102/ 27 + obj-$(CONFIG_USB_PULSE8_CEC) += pulse8-cec/
-2
drivers/staging/media/Kconfig
··· 27 27 28 28 source "drivers/staging/media/omap4iss/Kconfig" 29 29 30 - source "drivers/staging/media/pulse8-cec/Kconfig" 31 - 32 30 source "drivers/staging/media/s5p-cec/Kconfig" 33 31 34 32 # Keep LIRC at the end, as it has sub-menus
-1
drivers/staging/media/Makefile
··· 4 4 obj-$(CONFIG_LIRC_STAGING) += lirc/ 5 5 obj-$(CONFIG_VIDEO_DM365_VPFE) += davinci_vpfe/ 6 6 obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/ 7 - obj-$(CONFIG_USB_PULSE8_CEC) += pulse8-cec/ 8 7 obj-$(CONFIG_VIDEO_STI_HDMI_CEC) += st-cec/
drivers/staging/media/pulse8-cec/Kconfig drivers/media/usb/pulse8-cec/Kconfig
drivers/staging/media/pulse8-cec/Makefile drivers/media/usb/pulse8-cec/Makefile
-52
drivers/staging/media/pulse8-cec/TODO
··· 1 - This driver needs to mature a bit more and another round of 2 - code cleanups. 3 - 4 - Otherwise it looks to be in good shape. And of course the fact 5 - that the CEC framework is in staging at the moment also prevents 6 - this driver from being mainlined. 7 - 8 - Some notes: 9 - 10 - 1) Regarding the "autonomous" mode of the Pulse-Eight: currently this 11 - is disabled, but the idea is that this allows basic functionality 12 - when the PC is off, and it can wake-up the PC through USB. 13 - 14 - To prevent the device to go into autonomous mode the driver would 15 - have to send MSGCODE_SET_CONTROLLED 1 and then send a ping every 16 - 30 seconds (in practice once every 15 seconds would be good). When 17 - powering off or going to standby send MSGCODE_SET_CONTROLLED 0 to 18 - turn the autonomous mode back on. 19 - 20 - This needs to be implemented in the driver. Autonomous mode was 21 - added in firmware v2. 22 - 23 - 2) Writing to the EEPROM can only be done once every 10 seconds. 24 - 25 - 3) To use this driver you also need to patch the inputattach utility, 26 - this patch will be submitted once this driver is moved out of staging. 27 - 28 - diff -urN linuxconsoletools-1.4.9/utils/inputattach.c linuxconsoletools-1.4.9.new/utils/inputattach.c 29 - --- linuxconsoletools-1.4.9/utils/inputattach.c 2016-01-09 16:27:02.000000000 +0100 30 - +++ linuxconsoletools-1.4.9.new/utils/inputattach.c 2016-03-20 11:35:31.707788967 +0100 31 - @@ -861,6 +861,9 @@ 32 - { "--wacom_iv", "-wacom_iv", "Wacom protocol IV tablet", 33 - B9600, CS8 | CRTSCTS, 34 - SERIO_WACOM_IV, 0x00, 0x00, 0, wacom_iv_init }, 35 - +{ "--pulse8-cec", "-pulse8-cec", "Pulse Eight HDMI CEC dongle", 36 - + B9600, CS8, 37 - + SERIO_PULSE8_CEC, 0x00, 0x00, 0, NULL }, 38 - { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL } 39 - }; 40 - 41 - diff -urN linuxconsoletools-1.4.9/utils/serio-ids.h linuxconsoletools-1.4.9.new/utils/serio-ids.h 42 - --- linuxconsoletools-1.4.9/utils/serio-ids.h 2015-04-26 18:29:42.000000000 +0200 43 - +++ linuxconsoletools-1.4.9.new/utils/serio-ids.h 2016-03-20 11:41:00.153558539 +0100 44 - @@ -131,5 +131,8 @@ 45 - #ifndef SERIO_EASYPEN 46 - # define SERIO_EASYPEN 0x3f 47 - #endif 48 - +#ifndef SERIO_PULSE8_CEC 49 - +# define SERIO_PULSE8_CEC 0x40 50 - +#endif 51 - 52 - #endif
drivers/staging/media/pulse8-cec/pulse8-cec.c drivers/media/usb/pulse8-cec/pulse8-cec.c