From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Wed, 23 Dec 2020 13:46:13 +0530 Subject: [PATCH] spi: omap3_spi: Fix speed and mode selection In-Reply-To: <20201129072305.17019-1-vigneshr@ti.com> References: <20201129072305.17019-1-vigneshr@ti.com> Message-ID: <450002fc-6536-410b-3fa5-ef85dca6362a@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 29/11/20 12:53 pm, Vignesh Raghavendra wrote: > McSPI IP provides per CS specific speed and mode selection. Therefore it > is possible to apply these settings only after CS is known. But > set_speed and set_mode can be called without bus being claimed, this > would lead driver to set up wrong CS (or previously used CS). > > Fix this by apply set_speed and set_mode only if bus is already claimed. > > Signed-off-by: Vignesh Raghavendra > --- > drivers/spi/omap3_spi.c | 17 ++++++++++++++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > Applied to u-boot-ti/for-next Thanks and regards, Lokesh