:: Re: [maemo-leste] [PATCH 1/2] DM_US…
Top Pagina
Delete this message
Reply to this message
Auteur: Ivaylo Dimitrov
Datum:  
Aan: Marek Vasut
CC: Tom Rini, Pali Rohár, Lokesh Vutla, Simon Glass, Merlijn Wajer, maemo-leste, u-boot, Pavel Machek
Onderwerp: Re: [maemo-leste] [PATCH 1/2] DM_USB: allow building without OF_CONTROL
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.75@???>
>>>
>>> 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