On Sun, 2014-03-30 at 00:27 +0000, Mark Brown wrote: > > From: Mark Brown <broonie@xxxxxxxxxx> > > The core implementation of cs_change didn't follow the documentation > which says that cs_change in the middle of the transfer means to briefly > deassert chip select, instead it followed buggy drivers which change the > polarity of chip select. Use a delay of 10us between deassert and > reassert simply from pulling numbers out of a hat. > > Reported-by: Gerhard Sittig <gsi@xxxxxxx> > Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> The change looks good to me. The resulting behaviour now is what the documentation suggests (brief deassertion of the CS signal). The previous inversion was unexpected. The delay between deassertion and re-assertion looks good, too. It allows for propagation of the change through the hardware. Those who need longer pauses still can construct individual messages. There's probably no need to change the boolean "cs_change" into a numerical "deassertion pause length" spec. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@xxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html