Skip to content

Commit f40296f

Browse files
6by9popcornmix
authored andcommitted
media: bcm2835-unicam: Drop WARN on uing direct cache alias
Pi 0&1 pass all ARM accesses through the VPU L2 cache, therefore the dma-ranges property sets the cache alias bits to other than the direct alias, hence this WARN was firing. It was overprotective coding, so assume that everything is OK with the dma-ranges, and remove the WARN. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 37bfc1c commit f40296f

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/media/platform/bcm2835/bcm2835-unicam.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,6 @@ static void unicam_wr_dma_addr(struct unicam_device *dev, dma_addr_t dmaaddr,
709709
{
710710
dma_addr_t endaddr = dmaaddr + buffer_size;
711711

712-
/*
713-
* dmaaddr and endaddr should be a 32-bit address with the top two bits
714-
* set to 0x3 to signify uncached access through the Videocore memory
715-
* controller.
716-
*/
717-
WARN_ON((dmaaddr >> 30) != 0x3 || (endaddr >> 30) != 0x3);
718-
719712
if (pad_id == IMAGE_PAD) {
720713
reg_write(dev, UNICAM_IBSA0, dmaaddr);
721714
reg_write(dev, UNICAM_IBEA0, endaddr);

0 commit comments

Comments
 (0)