[PATCH] usb: gspca: add a missed return-value check for do_command

2018-12-24 Thread Kangjie Lu
do_command() may fail. The fix adds the missed return value of do_command(). If it fails, returns its error code. Signed-off-by: Kangjie Lu --- drivers/media/usb/gspca/cpia1.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c b/drivers/me

cron job: media_tree daily build: OK

2018-12-24 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Tue Dec 25 05:00:09 CET 2018 media-tree git hash:4bd46aa0353e022c2401a258e93b107880a66533 media_build git

[PATCH v3 2/4] pvrusb2: Add multiple dvb frontend support

2018-12-24 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers/media/usb

[PATCH v3 3/4] pvrusb2: Add i2c client demod/tuner support

2018-12-24 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/media/

[PATCH v3 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2018-12-24 Thread Brad Love
Includes support to identify and use two Hauppauge device. HVR-1955: - LGDT3306a ATSC/QAM demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composi

[PATCH v3 1/4] si2157: add detection of si2177 tuner

2018-12-24 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners/si21

[PATCH v3 0/4] Add Hauppauge HVR1955/1975 devices

2018-12-24 Thread Brad Love
Hauppauge device HVR1955 and HVR1975 are old Cypress based devices. When originally produced the demods were lacking upstream drivers and the tuner was unsupported. Well fast forward to now and the only thing missing is the identification of si2177 tuner in the si2157 driver, as well as extension o

[PATCH] media/lgdt3306a: Add a missing return value check.

2018-12-24 Thread Aditya Pakki
In lgdt3306a.c, lgdt3306a_read_signal_strength() can fail while reading the registers via lgdt3306a_read_reg(). The function can return an error from i2c_transfer(). The fix checks the return value for this failure. Signed-off-by: Aditya Pakki --- drivers/media/dvb-frontends/lgdt3306a.c | 5

Re: [PATCH v5 2/6] media: sun6i: Add mod_rate quirk

2018-12-24 Thread Jagan Teki
On Fri, Dec 21, 2018 at 6:30 PM Maxime Ripard wrote: > > On Thu, Dec 20, 2018 at 06:24:34PM +0530, Jagan Teki wrote: > > Unfortunately default CSI_SCLK rate cannot work properly to > > drive the connected sensor interface, particularly on few > > Allwinner SoC's like A64. > > > > So, add mod_rate

Re: [PATCH v5 0/9] Use vm_insert_range

2018-12-24 Thread Russell King - ARM Linux
Having discussed with Matthew offlist, I think we've come to the following conclusion - there's a number of drivers that buggily ignore vm_pgoff. So, what I proposed is: static int __vm_insert_range(struct vm_struct *vma, struct page *pages, size_t num, unsigned long

[PATCH v5 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Acked-by: Marek Szyprowski Acked-by: Mauro Carvalho Chehab --- drivers/media/common/videobuf2/videobuf2-dma-sg.c | 23 +++ 1 file changed,

[PATCH v5 1/9] mm: Introduce new vm_insert_range API

2018-12-24 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating a new function and use it across the drivers. vm_insert_ra

[PATCH v5 0/9] Use vm_insert_range

2018-12-24 Thread Souptick Joarder
v1 -> v2: Address review comment on mm/memory.c. Add EXPORT_SYMBOL for vm_insert_range and corrected the documentation part for this API. In drivers/gpu/drm/xen/xen_drm_front_gem.c, replace err with ret as suggested. In drivers/iommu/dma-iommu.c, ha

Re: [PATCH] media: mt312: fix a missing check of mt312 reset

2018-12-24 Thread Matthias Schwarzott
Am 21.12.18 um 08:07 schrieb Kangjie Lu: > mt312_reset() may fail. Although it is called in the end of > mt312_set_frontend(), we better check its status and return its error > code upstream instead of 0. > > Signed-off-by: Kangjie Lu Thanks for submitting this patch. It looks correct. Reviewed

Re: [PATCH] dma-buf: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-24 Thread Daniel Vetter
On Fri, Nov 30, 2018 at 11:11:01AM -0500, Yangtao Li wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Sorry, fell through the cracks, applied for 4.22, thanks for your patch. For next time around pls ping again after 1-2 weeks already, instead of 1-2 m

Re: [PATCH] media: sunxi: cedrus: Fix missing error message context

2018-12-24 Thread Paul Kocialkowski
Hi, On Fri, 2018-12-21 at 17:56 +0100, meg...@megous.com wrote: > From: Ondrej Jirman > > When cedrus_hw_probe is called, v4l2_dev is not yet initialized. > Use dev_err instead. Good catch and thanks for the patch! Acked-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Ondrej Jirman >

Re: [PATCH v6 0/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-24 Thread Matwey V. Kornilov
ср, 12 дек. 2018 г. в 20:41, Ezequiel Garcia : > > On Wed, 12 Dec 2018 at 14:27, Laurent Pinchart > wrote: > > > > Hi Matwey, > > > > Thank you for the patches. > > > > For the whole series, > > > > Reviewed-by: Laurent Pinchart > > > > Thanks Laurent. > > Matwey, given your detailed analysis of