hi, 
we recently noticed that RTC_DS1307 is dependent on DM_RTC in 
drivers/rtc/Kconfig, 
but the code implementation of drivers/rtc/ds1307.c: conflicts between the two.
"#ifdef CONFIG_RTC_DS1307" is in the condition "#ifndef CONFIG_DM_RTC" .

These two options are used to enable different RTC drivers. 
If both options are enabled, there is a situation where two RTC drivers 
exist at the same time, which can lead to conflicts and errors. 
Therefore, only one of these two options should be enabled, not both.

Do you think it is necessary to fix the dependency in drivers/rtc/Kconfig?



Best regards,
Yanjie Ren
Ying Sun

Reply via email to