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=-4.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 0E145C2B9F4 for ; Sat, 19 Jun 2021 06:14:20 +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 AA72D610CC for ; Sat, 19 Jun 2021 06:14:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA72D610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 4E8F982AE4; Sat, 19 Jun 2021 08:14:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KxH7WcM0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CB0082BB6; Sat, 19 Jun 2021 08:14:15 +0200 (CEST) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D52D82AE4 for ; Sat, 19 Jun 2021 08:14:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ivo.g.dimitrov.75@gmail.com Received: by mail-ed1-x52a.google.com with SMTP id n20so11428396edv.8 for ; Fri, 18 Jun 2021 23:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=a8/jb5mYK5DhYIBZtx/KATf4GgS0O9HQsy0A+d1HUSY=; b=KxH7WcM0p2tZFtEEkDng4qpDhm/2sLFAlymly9qzS5Sfk3BnbMnQmI4qtR0ZGONb7S AaaPdhiPHK9eS/yKPOdsY80r4Cb7vgtHuurSk24ZkFxc+UQbe3gZz+hV9UQS/OElmMbq MupndNSA2Oowe1bkb4aHDY/Xm0wbW0XfslziDp+8XkiiS5aBCASHWuOUKiB799NMTIhG K+P9zbuq4Yzok4ZwV8hTqE+Xxihcnwu7gYjAcAFI3NWuu0Xwd3MSNH4sEQcO8G0uSxBZ wkxGMQm0uWt9CTmXLhRK7tZfnGJ6d0UUim4NAoZbaqG6PAGTolZBVnF6oAEXLDL+8I9y a+Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a8/jb5mYK5DhYIBZtx/KATf4GgS0O9HQsy0A+d1HUSY=; b=lbeqYVXuY+sSU5xmMNQodFj9pi380hL2h+V0qdN6g/9E4HfpCZjTg3s11r9Y6GBZxK skrRsZMI75mPIj9fqvzuR3MhLt8gbHYjl9KaPz9oUDiwYlTTURVtjnNKkIYU1Ata7BtY Cqcc/XEk7B7XAUobbSW/JYzZlQkyIMYrtIrmV1TjjuH/4NHk1EH8hv1oozQ1/L8UtOK5 13w1DRz3sDbWQG2Z9FISos7lcQyxFCmmYqKiOKL/DhbHEEwkMuIn4l2hia2R4Qd92qlS R7bQY/OrwwNYAqA9q7XRIdyeFTFe/323PcYpykVgOShQ2rI2kxesk0pbxhf9hrj3nVMm CRXA== X-Gm-Message-State: AOAM532aA0VXLchD42UBLUt5f3Khs5asWJksM2l2rOqebGM6KpMgyAZ0 UpfKWwq/spIyBAIYl1kfQkc= X-Google-Smtp-Source: ABdhPJzJ46RtSw3vwsu6wqbQSpts1sa8rUrfebsQywEzpi+a9SJ670EEqi/045RzZ1tADZ79SN76sA== X-Received: by 2002:a50:f68d:: with SMTP id d13mr8942234edn.318.1624083252014; Fri, 18 Jun 2021 23:14:12 -0700 (PDT) Received: from [192.168.1.10] ([46.249.74.23]) by smtp.googlemail.com with ESMTPSA id m18sm1972827ejx.56.2021.06.18.23.14.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jun 2021 23:14:11 -0700 (PDT) Subject: Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL To: Marek Vasut 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> From: Ivaylo Dimitrov Message-ID: <3c44a3cf-b9ad-1b31-d0a4-54c896222d78@gmail.com> Date: Sat, 19 Jun 2021 09:14:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit 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 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 >>> >>> 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