On 01/07/2013 01:39 AM, Igor Grinberg wrote:
On 01/06/13 21:14, Mike Dunn wrote:
This patch does nothing functionally, it just gives the function a new name and modifies the prototype slightly in order to clarify what the function is doing (which is not necessarily asserting the reset). Some commentary also added.
Tested on a palm treo 680 machine.
Signed-off-by: Mike Dunn mikedunn@newsguy.com
This patch makes sense, but again raising your concern... The gpio_direction_output(reset_gpio, 1) should be called after the change to AF0.
Can you clarify please? Don't you mean *before* the change to AF0? The proper values must be set in the GPDR and GPSR/GPCR before changing to AF0, no? This not only makes intuitive sense, it is also consistent with the information in the pxa270 developer's manual. Once AF0 is set, the last values that were set for direction and level take immediate effect, no?
Thanks, Mike