Re: [PATCH] gpio: aspeed: Don't attempt to debounce if disabled

2017-05-11 Thread Linus Walleij
On Tue, May 2, 2017 at 8:08 AM, Joel Stanley wrote: > We warn the user at driver probe time that debouncing is disabled. > However, if they request debouncing later on we print a confusing error > message: > > gpio_aspeed 1e78.gpio: Failed to convert 5000us to cycles at 0Hz: -524 > > Instead

[PATCH] gpio: aspeed: Don't attempt to debounce if disabled

2017-05-01 Thread Joel Stanley
We warn the user at driver probe time that debouncing is disabled. However, if they request debouncing later on we print a confusing error message: gpio_aspeed 1e78.gpio: Failed to convert 5000us to cycles at 0Hz: -524 Instead bail out when the clock is not present. Fixes: 5ae4cb94b3133 (gp