Re: [PATCH v4] gpio: Add driver for basic memory-mapped GPIO controllers

From: David Brownell
Date: Mon Aug 30 2010 - 16:23:22 EST




--- On Sun, 8/29/10, Anton Vorontsov <cbouatmailru@xxxxxxxxx> wrote:
Brownell
> wrote:
> > But  do it without BUG()...
> Yeah, good idea. Let's turn these BUG() into
> WARN_ON_ONCE()?

I'm not a big fan of redundant -- and
noisy! error reports like
that: recall that errors were already reported
(and ignored) on those paths, indicating invalid
GPIOs (requested, or direction set, etc).

The read paths should probably just return zero;
that's required in some cases, if you read the
interface spec.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/