Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- From: Haavard Skinnemoen <haavard.skinnemoen@xxxxxxxxx>
- Date: Sat, 20 Sep 2008 15:01:56 +0200
Anti Sullin <anti.sullin@xxxxxxxxxxxxxx> wrote:
Haavard Skinnemoen wrote:
I don't think the gpio layer is supposed to touch the portmux. DavidI believe that you don't need to reconfigure the pin. The gpio hw does
has always been very clear about that. But if we somehow manage to get
the pin configured as a GPIO, we can use the GPIO layer to request a
pin change interrupt.
It _might_ work even if you don't reconfigure the pin as a GPIO...but
then I think we'd be relying on undocumented behaviour.
not require the pin to be multiplexed to any given state, so does not request_irq (correct?).
I did this trick in my [2/3] MCI driver patch I sent to arm-linux-kernel at 18.03.2008 (the
e-mail subject line was wrong, [1/3], though) and I'm using that patch still on my
production devices to avoid some rare but critical SD data corruption (mainline kernel still
screws up the filesystem on SD sometimes). The same should be easily usable on serial port, too.
You're right. It works, and it's documented. I don't think it's
guaranteed by the GPIO API, but as long as it's guaranteed on AT91 and
AVR32, we should be fine.
So in many applications we could not use this. But this might still come handy
in a lot of cases we can poll and find out what caused the data on the serial
port etc. Or on applications, where this loss of data does not matter (like debug
console where the resume is usable even if it does not wake up on the first byte).
Yes, as long as you have some sort of timeout/retry mechanism in place,
it might be useful.
Haavard
--
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/
- References:
- Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- From: Michael Trimarchi
- Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- From: Haavard Skinnemoen
- Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- From: Anti Sullin
- Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- Prev by Date: [PATCH RESEND] max3100 driver
- Next by Date: Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().
- Previous by thread: Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- Next by thread: Re: [PATCH] atmel_serial: update the powersave handler to match serial core
- Index(es):
Relevant Pages
|