Hello Mark, On Tue, 2020-02-18 at 13:49 +0000, Mark Brown wrote: > On Tue, Feb 18, 2020 at 07:23:38AM +0000, Vaittinen, Matti wrote: > > > By the way - do you have some nice test cases for regulators hidden > > somewhere? If so, do you think you could share them? I sure have > > some > > for BD718x7 but they are somewhat clumsy and require special HW. > > (I've > > never liked unit-tests but I must admit there are some specific > > cases > > where they would be pretty usable). > > You can't really run tests on actual regulator drivers outside of > test > rigs as they're kind of important to the system they're running in. Right. I was thinking of some tests which would only be testing the vsel logic by feeding test ranges to functions and verifying the resulting selectors/voltages were correct. Unit test style thing where part of the code is stubbed out and rest is compiled into a test executable. I know some people do such (and I usually don't see the effort/benefit ratio to be too great there - although there are cases where such tests can be beneficial). So I decided to ask if you are one of those who do such testing and happened to have such for regulator functions. But this is clear now. I'll try running some tests on BD71847 break-out board at the end of RFC phase - but I do appreciate all the testing on other systems as well! Touching the regulator core is a bit scary as it can result ... problems :/ Best Regards Matti Vaittinen