Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35840C2B9F4 for ; Sat, 19 Jun 2021 18:17:36 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEA9A60FE8 for ; Sat, 19 Jun 2021 18:17:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEA9A60FE8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C0A4A81FD5; Sat, 19 Jun 2021 20:17:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1624126653; bh=6N+5e0XI5MfCL2iJTvrT6nA+iGycgSIqjKLLF9BFlT0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Ruzs6GkgwwfK+v319Kbyszl5ex8nMKUJ2jcdeN6lzT5/tyEVdz6O1n8BStZp0GqTK 5MQ7bl0MoOzTvfXq2cGlHzSifoUk4r9bygxqAAwpIZCE+G6qEYPLhkDZysxkSoo4o7 np+f5J/MxY5UdUgJJ50MyexG3uFSI+DHBKXTWV8ulQPxYJBAi4JkIiPI2II8CLa7dj khs4xT/lPzWdJKY0cFHxzKq/8b/uzu3CRFDlcMkG5MXTOGELabS85bzM6BVp16ZY3x yhDuAavvOc6GxVxRjm9Zri8bB4lOmfhPMhbWipx7zHBeoLpPnv8qXB7HbJJTbxUdBK 9QujRQMp5q0Zg== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D0F9A80C72; Sat, 19 Jun 2021 20:17:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1624126650; bh=6N+5e0XI5MfCL2iJTvrT6nA+iGycgSIqjKLLF9BFlT0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LaTk90Fxq726+NVfbGgNr7RtyeFVjgNOw5EfQKPUOeUVt1grA9f71Pyz2zGYON3XK K61XZaQTzT6bQC8ZY3qkk1k7R6pjfsqN8kcCVmfbK0qklQfxwOtYkFB3VZPAPrRrbV iqWRyKmTR9gyVJ8uSZbnHWyC2+EMDopBMSlQPDpDv2FWGndj3PoGREWRTpHfc6v+bf dpLwuPYifeKBDx3HhM3fQ32fWheRk16kodqSP+KmzBTp8YHLltvCDSA/+JWZGgvk89 6/RrmkL0w1bkL7Z5fKTSCKArRVt48o55LbJkr2GcLOsyocevGM/LsR/wA2HrhUqq/P XabdhU3RMqh9w== Subject: Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL To: Ivaylo Dimitrov Cc: Tom Rini , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Lokesh Vutla , Simon Glass , Merlijn Wajer , maemo-leste@lists.dyne.org, u-boot@lists.denx.de, Pavel Machek References: <20210618145724.2558-1-pali@kernel.org> <20210618163812.GR9516@bill-the-cat> <3c44a3cf-b9ad-1b31-d0a4-54c896222d78@gmail.com> From: Marek Vasut Message-ID: Date: Sat, 19 Jun 2021 20:17:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <3c44a3cf-b9ad-1b31-d0a4-54c896222d78@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 6/19/21 8:14 AM, Ivaylo Dimitrov wrote: > Hi Marek, Hi, [...] >>>> 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. That's where the supported platforms are heading anyway. Or is there some issue with switching the platform you use over to DT ?