Skip to content

Commit eed0b61

Browse files
topdjgodjamess-huang
authored andcommitted
RK patch for improve usb camera performance
Change-Id: I24795367cee767ea5c802ffb2d762febf83a4c25 Reviewed-on: https://tp-biosrd-v02/gerrit/82286 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 4d27e44 commit eed0b61

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)