Re: [U-Boot] [PATCH] spi: soft_spi: Fix null ptr when probing soft_spi.

2018-12-29 Thread Daniel Schwierzeck
Am Mi., 19. Dez. 2018 um 15:10 Uhr schrieb Horatiu Vultur : > > When probing soft_spi the result of dev_get_parent_priv(dev) in probe > function is null ptr because the spi is on the ahb bus which has > per_child_auto_alloc_size set to 0. Therefore it would generate an Ooops > messages when accessi

Re: [U-Boot] [PATCH] spi: soft_spi: Fix null ptr when probing soft_spi.

2018-12-26 Thread Gregory CLEMENT
Hi Horatiu, I am adding Daniel because actually this patch is needed to be able to boot the Luton MIPS based platform. It is on this platform that we find this issue. Gregory On mer., déc. 19 2018, Horatiu Vultur wrote: > When probing soft_spi the result of dev_get_parent_priv(dev) in probe

Re: [U-Boot] [PATCH] spi: soft_spi: Fix null ptr when probing soft_spi.

2018-12-23 Thread Jagan Teki
On Wed, Dec 19, 2018 at 8:40 PM Horatiu Vultur wrote: > > When probing soft_spi the result of dev_get_parent_priv(dev) in probe > function is null ptr because the spi is on the ahb bus which has > per_child_auto_alloc_size set to 0. Therefore it would generate an Ooops > messages when accessing sp

[U-Boot] [PATCH] spi: soft_spi: Fix null ptr when probing soft_spi.

2018-12-19 Thread Horatiu Vultur
When probing soft_spi the result of dev_get_parent_priv(dev) in probe function is null ptr because the spi is on the ahb bus which has per_child_auto_alloc_size set to 0. Therefore it would generate an Ooops messages when accessing spi_slave structure. The fix consist of delaying the read of dm_sp