vcsm: Allow both clean and invalidate to be requested
authorpopcornmix <popcornmix@gmail.com>
Mon, 4 Sep 2017 19:48:02 +0000 (20:48 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:55:22 +0000 (15:55 +0100)
drivers/char/broadcom/vc_sm/vmcs_sm.c

index 1dd5d227980a26c0b2f305435e71cb124f44c6dc..1fe8608f462ab4ea6b2449494b6352d0a0af889c 100644 (file)
@@ -2861,7 +2861,8 @@ static long vc_sm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                                        v6_dma_clean_range((void *)base, (void *)end);
 #endif
                                                /* L1/L2 cache invalidate */
-                                               } else if (op->invalidate_mode & 1) {
+                                               }
+                                               if (op->invalidate_mode & 1) {
 #if defined(CONFIG_CPU_CACHE_V7)
                                                        extern void v7_dma_inv_range(void *start, void *end);
                                                        v7_dma_inv_range((void *)base, (void *)end);