Hi Marek,

On 19.06.21 г. 5:23 ч., Marek Vasut wrote:
On 6/18/21 6:38 PM, Tom Rini wrote:
+Marek

On Fri, Jun 18, 2021 at 04:57:23PM +0200, Pali Rohár wrote:

From: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com>

Currently DM_USB requires OF_CONTROL to be enabled, otherwise link errors occur. On the other hand OF_CONTROL requires board code to be migrated to
DT, which is not always possible or required.

Fix that by conditionally compiling OF_CONTROL specific sections in USB
related drivers code in the same way like it is done in the other drivers.
Also, auto select OF_LIBFDT if DM_USB is selected but OF_CONTROL is not.
Introduce a new Kconfig option OF_NODE used to compile of_node.c in case
OF_CONTROL is not enabled. Fix deprecation warning condition as well.

So, what is the use case of this? Why not just enable DM_USB and OF_CONTROL ?

OF_CONTROL requires migration to device-tree.

Regards,
Ivo

Reply via email to