Files
OpenCellular/chip
Vic (Chun-Ju) Yang a905b84fd1 mec1322: handle dummy GPIO gracefully
When a GPIO signal is defined by GPIO_SIGNAL_NOT_IMPLEMENTED, it should
still be able to call various GPIO methods on that GPIO signal. Since
__builtin_clz dies when the value passed in is zero, we need to check
this before calling __builtin_clz.

BUG=chrome-os-partner:24107
TEST='sysjump RW' and the system doesn't crash
BRANCH=None

Change-Id: I5025a2f218d549316fe096c07bd3c7207fe9dbc2
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/180183
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-12-17 09:31:06 +00:00
..
2013-12-05 22:30:58 +00:00
2013-12-16 20:28:32 +00:00