Skip to content

Commit f7e87a4

Browse files
committed
Merge tag 'media/v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fixes from Mauro Carvalho Chehab: "A series of driver fixes: - a few compilation fixes with randconfigs - one potential compilation breakage on userspace due to the usage of a gcc extension - several warnings fixed - some other random driver fixes" * tag 'media/v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (22 commits) [media] s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr [media] s5p-fimc: Only build suspend/resume for PM [media] s5p-jpeg: Only build suspend/resume for PM [media] Remove references to non-existent PLAT_S5P symbol [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory() [media] tw68: remove bogus I2C_ALGOBIT dependency [media] usbvision-video: two use after frees [media] tw68: remove deprecated IRQF_DISABLED [media] xc5000: use after free in release() [media] em28xx-input: NULL dereference on error [media] wl128x: fix fmdbg compiler warning Revert "[media] v4l2-dv-timings: fix a sparse warning" [media] hackrf: harmless off by one in debug code [media] cx23885: initialize config structs for T9580 [media] v4l: uvcvideo: Fix buffer completion size check [media] vivid: fix buffer overrun [media] saa7146: Create a device name before it's used [media] em28xx: fix uninitialized variable warning [media] vivid: fix Kconfig FB dependency [media] anysee: make sure loading modules is const ...
2 parents ebbe914 + f3d83a1 commit f7e87a4

25 files changed

Lines changed: 62 additions & 27 deletions

File tree

‎Documentation/DocBook/media/v4l/compat.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,10 @@ fields changed from _s32 to _u32.
25662566
<para>Added compound control types and &VIDIOC-QUERY-EXT-CTRL;.
25672567
</para>
25682568
</listitem>
2569+
</orderedlist>
2570+
</section>
2571+
2572+
<section>
25692573
<title>V4L2 in Linux 3.18</title>
25702574
<orderedlist>
25712575
<listitem>

‎drivers/media/common/saa7146/saa7146_core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent
364364
goto out;
365365
}
366366

367+
/* create a nice device name */
368+
sprintf(dev->name, "saa7146 (%d)", saa7146_num);
369+
367370
DEB_EE("pci:%p\n", pci);
368371

369372
err = pci_enable_device(pci);
@@ -438,9 +441,6 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent
438441

439442
/* the rest + print status message */
440443

441-
/* create a nice device name */
442-
sprintf(dev->name, "saa7146 (%d)", saa7146_num);
443-
444444
pr_info("found saa7146 @ mem %p (revision %d, irq %d) (0x%04x,0x%04x)\n",
445445
dev->mem, dev->revision, pci->irq,
446446
pci->subsystem_vendor, pci->subsystem_device);

‎drivers/media/pci/cx23885/cx23885-dvb.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,7 @@ static int dvb_register(struct cx23885_tsport *port)
16001600
break;
16011601

16021602
/* attach tuner */
1603+
memset(&m88ts2022_config, 0, sizeof(m88ts2022_config));
16031604
m88ts2022_config.fe = fe0->dvb.frontend;
16041605
m88ts2022_config.clock = 27000000;
16051606
memset(&info, 0, sizeof(struct i2c_board_info));
@@ -1635,6 +1636,7 @@ static int dvb_register(struct cx23885_tsport *port)
16351636
/* port c - terrestrial/cable */
16361637
case 2:
16371638
/* attach frontend */
1639+
memset(&si2168_config, 0, sizeof(si2168_config));
16381640
si2168_config.i2c_adapter = &adapter;
16391641
si2168_config.fe = &fe0->dvb.frontend;
16401642
si2168_config.ts_mode = SI2168_TS_SERIAL;
@@ -1654,6 +1656,7 @@ static int dvb_register(struct cx23885_tsport *port)
16541656
port->i2c_client_demod = client_demod;
16551657

16561658
/* attach tuner */
1659+
memset(&si2157_config, 0, sizeof(si2157_config));
16571660
si2157_config.fe = fe0->dvb.frontend;
16581661
memset(&info, 0, sizeof(struct i2c_board_info));
16591662
strlcpy(info.type, "si2157", I2C_NAME_SIZE);

‎drivers/media/pci/tw68/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
config VIDEO_TW68
22
tristate "Techwell tw68x Video For Linux"
33
depends on VIDEO_DEV && PCI && VIDEO_V4L2
4-
select I2C_ALGOBIT
54
select VIDEOBUF2_DMA_SG
65
---help---
76
Support for Techwell tw68xx based frame grabber boards.

‎drivers/media/pci/tw68/tw68-core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static int tw68_initdev(struct pci_dev *pci_dev,
306306

307307
/* get irq */
308308
err = devm_request_irq(&pci_dev->dev, pci_dev->irq, tw68_irq,
309-
IRQF_SHARED | IRQF_DISABLED, dev->name, dev);
309+
IRQF_SHARED, dev->name, dev);
310310
if (err < 0) {
311311
pr_err("%s: can't get IRQ %d\n",
312312
dev->name, pci_dev->irq);

‎drivers/media/platform/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ config VIDEO_MEM2MEM_DEINTERLACE
166166
config VIDEO_SAMSUNG_S5P_G2D
167167
tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver"
168168
depends on VIDEO_DEV && VIDEO_V4L2
169-
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
169+
depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
170170
depends on HAS_DMA
171171
select VIDEOBUF2_DMA_CONTIG
172172
select V4L2_MEM2MEM_DEV
@@ -178,7 +178,7 @@ config VIDEO_SAMSUNG_S5P_G2D
178178
config VIDEO_SAMSUNG_S5P_JPEG
179179
tristate "Samsung S5P/Exynos3250/Exynos4 JPEG codec driver"
180180
depends on VIDEO_DEV && VIDEO_V4L2
181-
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
181+
depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
182182
depends on HAS_DMA
183183
select VIDEOBUF2_DMA_CONTIG
184184
select V4L2_MEM2MEM_DEV
@@ -189,7 +189,7 @@ config VIDEO_SAMSUNG_S5P_JPEG
189189
config VIDEO_SAMSUNG_S5P_MFC
190190
tristate "Samsung S5P MFC Video Codec"
191191
depends on VIDEO_DEV && VIDEO_V4L2
192-
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
192+
depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
193193
depends on HAS_DMA
194194
select VIDEOBUF2_DMA_CONTIG
195195
default n

‎drivers/media/platform/exynos4-is/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
config VIDEO_SAMSUNG_EXYNOS4_IS
33
bool "Samsung S5P/EXYNOS4 SoC series Camera Subsystem driver"
44
depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
5-
depends on (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST)
5+
depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
66
depends on OF && COMMON_CLK
77
help
88
Say Y here to enable camera host interface devices for

‎drivers/media/platform/exynos4-is/fimc-core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ static int fimc_clk_get(struct fimc_dev *fimc)
832832
return -ENXIO;
833833
}
834834

835+
#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
835836
static int fimc_m2m_suspend(struct fimc_dev *fimc)
836837
{
837838
unsigned long flags;
@@ -870,6 +871,7 @@ static int fimc_m2m_resume(struct fimc_dev *fimc)
870871

871872
return 0;
872873
}
874+
#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */
873875

874876
static const struct of_device_id fimc_of_match[];
875877

‎drivers/media/platform/s5p-jpeg/jpeg-core.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static bool s5p_jpeg_parse_hdr(struct s5p_jpeg_q_data *result,
893893
unsigned long buffer, unsigned long size,
894894
struct s5p_jpeg_ctx *ctx)
895895
{
896-
int c, components, notfound;
896+
int c, components = 0, notfound;
897897
unsigned int height, width, word, subsampling = 0;
898898
long length;
899899
struct s5p_jpeg_buffer jpeg_buffer;
@@ -2632,6 +2632,7 @@ static int s5p_jpeg_remove(struct platform_device *pdev)
26322632
return 0;
26332633
}
26342634

2635+
#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
26352636
static int s5p_jpeg_runtime_suspend(struct device *dev)
26362637
{
26372638
struct s5p_jpeg *jpeg = dev_get_drvdata(dev);
@@ -2681,7 +2682,9 @@ static int s5p_jpeg_runtime_resume(struct device *dev)
26812682

26822683
return 0;
26832684
}
2685+
#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */
26842686

2687+
#ifdef CONFIG_PM_SLEEP
26852688
static int s5p_jpeg_suspend(struct device *dev)
26862689
{
26872690
if (pm_runtime_suspended(dev))
@@ -2697,6 +2700,7 @@ static int s5p_jpeg_resume(struct device *dev)
26972700

26982701
return s5p_jpeg_runtime_resume(dev);
26992702
}
2703+
#endif
27002704

27012705
static const struct dev_pm_ops s5p_jpeg_pm_ops = {
27022706
SET_SYSTEM_SLEEP_PM_OPS(s5p_jpeg_suspend, s5p_jpeg_resume)

‎drivers/media/platform/s5p-tv/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
config VIDEO_SAMSUNG_S5P_TV
1010
bool "Samsung TV driver for S5P platform"
1111
depends on PM_RUNTIME
12-
depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
12+
depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
1313
default n
1414
---help---
1515
Say Y here to enable selecting the TV output devices for

0 commit comments

Comments
 (0)