SPI driver not working as expected on powerpc hardware platform (with yocto build system)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI driver not working as expected on powerpc hardware platform (with yocto build system)

106 Views
bharatbhardava
Contributor I

Hello, all,
I have old build system with inbuild kernel (2.6.73.x) and my application successfully compiles and working on our custom Linux board(based on PowerPC architecture) fine.
Now we migrated to YOCTO build system where latest kernel (6.x.x) is there. Now I observed that SPI devices not working as expected(which was working with old build system).
I know there is lot of dynamics/parameter changed with big jump in kernel version(hench in SPI driver). I have put some delay in change mode and control chip select API, it improve somewhat but not successful.
I have tried with many experiment to change SPI controller parameter but not get succeed. I have got some help from internet but not resolved my issue. As per me it is timing related issue. But i don't know exact location where to fix.
So, if you faced this type or similar challenge then you can lead/help. I appreciate any suggestion/fix/help/direction.

Thank you
Bharat

0 Kudos
Reply
1 Reply

59 Views
bharatbhardava
Contributor I

It will be very helpful if you reply if you have suggestion.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2378063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESPI%20driver%20not%20working%20as%20expected%20on%20powerpc%20hardware%20platform%20(with%20yocto%20build%20system)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20all%2C%3CBR%20%2F%3EI%20have%20old%20build%20system%20with%20inbuild%20kernel%20(2.6.73.x)%20and%20my%20application%20successfully%20compiles%20and%20working%20on%20our%20custom%20Linux%20board(based%20on%20PowerPC%20architecture)%20fine.%3CBR%20%2F%3ENow%20we%20migrated%20to%20YOCTO%20build%20system%20where%20latest%20kernel%20(6.x.x)%20is%20there.%20Now%20I%20observed%20that%20SPI%20devices%20not%20working%20as%20expected(which%20was%20working%20with%20old%20build%20system).%3CBR%20%2F%3EI%20know%20there%20is%20lot%20of%20dynamics%2Fparameter%20changed%20with%20big%20jump%20in%20kernel%20version(hench%20in%20SPI%20driver).%20I%20have%20put%20some%20delay%20in%20change%20mode%20and%20control%20chip%20select%20API%2C%20it%20improve%20somewhat%20but%20not%20successful.%3CBR%20%2F%3EI%20have%20tried%20with%20many%20experiment%20to%20change%20SPI%20controller%20parameter%20but%20not%20get%20succeed.%20I%20have%20got%20some%20help%20from%20internet%20but%20not%20resolved%20my%20issue.%20As%20per%20me%20it%20is%20timing%20related%20issue.%20But%20i%20don't%20know%20exact%20location%20where%20to%20fix.%3CBR%20%2F%3ESo%2C%20if%20you%20faced%20this%20type%20or%20similar%20challenge%20then%20you%20can%20lead%2Fhelp.%20I%20appreciate%20any%20suggestion%2Ffix%2Fhelp%2Fdirection.%3C%2FP%3E%3CP%3EThank%20you%3CBR%20%2F%3EBharat%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378835%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20driver%20not%20working%20as%20expected%20on%20powerpc%20hardware%20platform%20(with%20yocto%20build%20system)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378835%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20will%20be%20very%20helpful%20if%20you%20reply%20if%20you%20have%20suggestion.%3C%2FP%3E%3C%2FLINGO-BODY%3E