From 10c8a41571ed153a7ccfd2d9e0e1520adf3b8723 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Tue, 20 Jan 2015 20:34:38 -0800 Subject: ryu: Remove printf in interrupt handlers We should avoid printing log in interrupt handlers: - Move VBUS logging to a deferred function. - Remove unused interrupt handler. BRANCH=Ryu BUG=None TEST=Run on Ryu P3 and see VBUS logging when VBUS changes. Change-Id: I06ffe62a656d63fdd63b5d1c5e2f6481eeddc445 Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/242180 Tested-by: Vic Yang Reviewed-by: Vincent Palatin Commit-Queue: Vic Yang --- board/ryu/gpio.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/ryu/gpio.inc') diff --git a/board/ryu/gpio.inc b/board/ryu/gpio.inc index 4b6d5cc717..eddcabec3b 100644 --- a/board/ryu/gpio.inc +++ b/board/ryu/gpio.inc @@ -7,16 +7,16 @@ /* Interrupts */ GPIO(CHGR_ACOK, D, 4, GPIO_INT_BOTH | GPIO_PULL_UP, vbus_evt) -GPIO(BC_TEMP_ALERT_L, C, 5, GPIO_INT_FALLING, unhandled_evt) +GPIO(BC_TEMP_ALERT_L, C, 5, GPIO_INT_FALLING, NULL) GPIO(POWER_BUTTON_L, C, 13, GPIO_INT_BOTH, power_button_interrupt) /* active high, the name is for compatibility with existing code */ GPIO(USBC_BC12_INT_L, D, 11, GPIO_INT_FALLING | GPIO_PULL_UP, usb_evt) GPIO(LID_OPEN, E, 1, GPIO_INT_BOTH | GPIO_PULL_UP, lid_interrupt) GPIO(CHARGE_DONE, E, 6, GPIO_INT_BOTH, inductive_charging_interrupt) -GPIO(LB_INT_L, E, 7, GPIO_INT_FALLING | GPIO_PULL_UP, unhandled_evt) -GPIO(LIGHTBAR_EN_L, E, 8, GPIO_INT_FALLING | GPIO_PULL_UP, unhandled_evt) +GPIO(LB_INT_L, E, 7, GPIO_INT_FALLING | GPIO_PULL_UP, NULL) +GPIO(LIGHTBAR_EN_L, E, 8, GPIO_INT_FALLING | GPIO_PULL_UP, NULL) GPIO(AP_IN_SUSPEND, F, 9, GPIO_INT_BOTH, power_signal_interrupt) -GPIO(BASE_PRES_L, E, 10, GPIO_INT_BOTH | GPIO_PULL_UP, unhandled_evt) -GPIO(AP_HOLD, E, 3, GPIO_INT_BOTH, power_signal_interrupt) +GPIO(BASE_PRES_L, E, 10, GPIO_INT_BOTH | GPIO_PULL_UP, NULL) +GPIO(AP_HOLD, E, 3, GPIO_INT_BOTH, power_signal_interrupt) /* Buttons */ GPIO(BTN_VOLD_L, C, 0, GPIO_INPUT | GPIO_PULL_UP, NULL) -- cgit v1.2.1