On Mon, Oct 30, 2023 at 07:21:48PM +0800, Tingwei Zhang wrote:The example use case is below DCC driver which is a DMA engine. It can be configured to read/write registers while whose registers need to be configured by software. It's mainly used to debug device crash issue.
Hi Masami, Greg and Rafael,
I have one driver that needs a bunch to software configuration like 1000
settings. These settings can be different according to the use case.
That seems very odd, what type of driver is this?
I'm not aware of all the existing ways. Below ways are what I know and they may not be suitable for some reason.
They are required in boot up phase so we can't reply on user space to make
the configuration.
Boot config is not preferred since we'd like to build that driver as dynamic
load Kernel module.
Could you let me know if there's any mechanism in Kernel to do that?
What is wrong with the existing ways of doing this that all other
drivers use?
thanks,
greg k-h