linux_dsm_epyc7002/drivers/media/pci/saa7134
Mauro Carvalho Chehab 816de50d35 [media] saa7134: fix page size on some archs
On some archs, like tile, the PAGE_SIZE is not 4K. In the case
of tile arch, it can be either 16KB or 64KB.

Due to that, a warning is produced:
	drivers/media/pci/saa7134/saa7134.h:678:43: warning: large integer implicitly truncated to unsigned type [-Woverflow]

This is actually an error, as it will write trach to the DMA size
registers. The logic at saa7134-ts already does the right thing:

	saa_writeb(SAA7134_TS_DMA0, ((dev->ts.nr_packets-1)&0xff));
	saa_writeb(SAA7134_TS_DMA1, (((dev->ts.nr_packets-1)>>8)&0xff));
	/* TSNOPIT=0, TSCOLAP=0 */
	saa_writeb(SAA7134_TS_DMA2,
		((((dev->ts.nr_packets-1)>>16)&0x3f) | 0x00));

So, fix the driver to take larger page sizes into account.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-06-24 08:38:28 -03:00
..
Kconfig [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
Makefile [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
saa7134-alsa.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-cards.c [media] saa7134: add AverMedia AverTV/505 card support 2015-06-09 18:43:00 -03:00
saa7134-core.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-dvb.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
saa7134-empress.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-go7007.c [media] saa7134: fix page size on some archs 2015-06-24 08:38:28 -03:00
saa7134-i2c.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-input.c [media] saa7134: add AverMedia AverTV/505 card support 2015-06-09 18:43:00 -03:00
saa7134-reg.h [media] saa7134: add vidioc_querystd 2014-05-23 12:56:01 -03:00
saa7134-ts.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-tvaudio.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134-vbi.c [media] saa7134: avoid complex macro warnings 2015-05-13 14:12:05 -03:00
saa7134-video.c [media] saa7134: fix CodingStyle issues on the lines touched by pr_foo refactor 2015-05-13 14:16:43 -03:00
saa7134.h [media] saa7134: add AverMedia AverTV/505 card support 2015-06-09 18:43:00 -03:00