Skip to content

Commit 193b14f

Browse files
committed
Revert "Revert "RK patch for improve usb camera performance""
We revert this patch previously is because Tinker can't recognize usb device after apply this patch. Now, we have clarified that this is because we only bring 1 CPU core up. So we apply this patch again after we solved the CPU core issue This reverts commit 2e432c3. Change-Id: I61ed322bc3c1376c6f301b43d614115976a34829 Reviewed-on: https://tp-biosrd-v02/gerrit/83415 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent e4f068b commit 193b14f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/irqchip/irq-gic.c

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
328328
mask = 0xff << shift;
329329
bit = gic_cpu_map[cpu] << shift;
330330
val = readl_relaxed(reg) & ~mask;
331-
writel_relaxed(val | bit, reg);
331+
if((gic_irq(d)!=57))
332+
writel_relaxed(val | bit, reg);
332333
raw_spin_unlock_irqrestore(&irq_controller_lock, flags);
333334

334335
return IRQ_SET_MASK_OK;
@@ -504,6 +505,9 @@ static void __init gic_dist_init(struct gic_chip_data *gic)
504505

505506
gic_dist_config(base, gic_irqs, NULL);
506507

508+
// Set usb host IRQ 57 for N cpu
509+
writel_relaxed(0x01010e01, base + GIC_DIST_TARGET + 0x38);
510+
writel_relaxed(0xa0a090a0, base + GIC_DIST_PRI + 0x38);
507511
writel_relaxed(GICD_ENABLE, base + GIC_DIST_CTRL);
508512
}
509513

drivers/media/usb/uvc/uvcvideo.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
#define DRIVER_VERSION "1.1.1"
140140

141141
/* Number of isochronous URBs. */
142-
#define UVC_URBS 5
142+
#define UVC_URBS 20
143143
/* Maximum number of packets per URB. */
144144
#define UVC_MAX_PACKETS 32
145145
/* Maximum status buffer size in bytes of interrupt URB. */

0 commit comments

Comments
 (0)