From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 8 Sep 2015 13:08:02 +0200 Subject: [U-Boot] [PATCH 1/4] spi: cadence_qspi: Ensure spi_calibration is run when sclk change In-Reply-To: <1441675069-2498-1-git-send-email-clsee@altera.com> References: <1441675069-2498-1-git-send-email-clsee@altera.com> Message-ID: <201509081308.02624.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, September 08, 2015 at 03:17:49 AM, Chin Liang See wrote: > Ensuring spi_calibration is run when there is a change of sclk > frequency. This will ensure the qspi flash access works for high > sclk frequency > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Marek Vasut > Cc: Stefan Roese > Cc: Vikas Manocha > Cc: Jagannadh Teki > Cc: Pavel Machek Acked-by: Marek Vasut Jagan, please apply for -next or I'll pick it up. Which do you prefer ? [...] > diff --git a/drivers/spi/cadence_qspi.h b/drivers/spi/cadence_qspi.h > index 98e57aa..2912e36 100644 > --- a/drivers/spi/cadence_qspi.h > +++ b/drivers/spi/cadence_qspi.h > @@ -38,6 +38,7 @@ struct cadence_spi_priv { > int qspi_is_init; > unsigned int qspi_calibrated_hz; > unsigned int qspi_calibrated_cs; Idea for future patch: we should get rid of these qspi_ prefixes, they are really useless. > + unsigned int previous_hz; > }; > > /* Functions call declaration */ Best regards, Marek Vasut