Stephen Warren wrote at Wednesday, September 21, 2011 4:11 PM: > Without this, the PMC continually detects an interrupt when the PMU_IRQ > line is high, causing the tps6686x IRQ handler thread to hog an entire > CPU. > > This change was originally written by Wei Ni <wni@xxxxxxxxxx> for Seaboard > in the ChromeOS kernel. > > Long-term, this should probably be moved into some kind of PMU driver, > or perhaps integrated into the GPIO/IRQ/pinmux system? Olof, is this change OK for inclusion? Or, should we create some kind of PMU driver and interrupt controller to solve this? Thanks. > int __init harmony_regulator_init(void) > { > + void __iomem *pmc = IO_ADDRESS(TEGRA_PMC_BASE); > + u32 pmc_ctrl; > + > + /* > + * Configure the power management controller to trigger PMU > + * interrupts when low > + */ > + pmc_ctrl = readl(pmc + PMC_CTRL); > + writel(pmc_ctrl | PMC_CTRL_INTR_LOW, pmc + PMC_CTRL); > + > i2c_register_board_info(3, harmony_regulators, 1); > > return 0; -- nvpublic -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html