[PATCH 2/2] media: rtl28xxu: fix idle handling

2019-08-31 Thread Sean Young
Currently, the IR receiver is put into idle mode after each interrupt. However longer IR like NEC can be distributed over mulitple interrupts, so putting the IR into idle in the middle of such a message will break decoding. Every IR message has a trailing space of 0xbf (one less than IR_IDE_LEN{0,

[PATCH 1/2] media: rtl28xxu: set keymap for Astrometa DVB-T2

2019-08-31 Thread Sean Young
Thanks to Jan Pieter van Woerkom for providing the hardware. Signed-off-by: Sean Young --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index 1a36b

Re: [PATCH] media: i2c: Use div64_ul() for u64-by-unsigned-long divide

2019-08-31 Thread Simon Horman
On Fri, Aug 30, 2019 at 03:48:27PM +0200, Geert Uytterhoeven wrote: > div_u64() does a 64-by-32 division, while the divisor max2175.xtal_freq > is unsigned long, thus 64-bit on 64-bit platforms. Hence the proper > function to call is div64_ul(). > > Note that this change does not have any functio