Dear Marcel ,
Have not gone through this particular file but will check it once , THANKS for file
I solved the problem with below mentioned workaround, mentioning so that it can help others if they faced similar problem.
Mentioning the workaround i did :-
1) w.r.t SPI clock
Debugging the behavior i got an idea that the allocation depends on the name passed for the driver . Going through the code of clk_get function i got that info. As the code traverse “SOME CLK TABLE” for the passed string . ( somehow file having clock shared by MARCEL got missed by me ) . Hence i reverted back the name string to default “spi_tegra”
2) w.r.t PROBE getting called multiple times
This was because there are multiple devices created with same naem “spi-tegra” , line 452 of
For this i changed the devices name of all other instance of devices but retained the spi-0 name.
This both allowed to get clock & probe was called only once .
But will check the file shared by Marcel as it can help understanding point-1 much better now.
Ashish Kumar Mishra