Re: [RFC][PATCH] SPI subsystem

From: Vitaly Wool
Date: Mon Sep 26 2005 - 11:50:00 EST


Hi David,

David Brownell wrote:

Most platform drivers I've seen just handle the power on/off
requests. I think there's some historical reason that the
"reason" stuff exists ... but I suspect not many folk would
get unhappy if that were removed, and those calls got simplified.


No, I can't agree with you. This state machine provides useful framework for drivers that work with DMA and/or drivers that set their own wakeup bits etc. etc. It allows the driver essence to enter the state where it doesn't accept any new requests but is able to successfully finish the current ones.

Best regards,
Vitaly
-
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/