Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3308852imw; Mon, 18 Jul 2022 06:01:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6v2eRyZiaCamWngqdfs4cRCRKPfkN5/s+FYOtcldU+ZGQyXPYqc1fXwee3aq6YTlbvI8t X-Received: by 2002:a63:5d09:0:b0:416:18b:5846 with SMTP id r9-20020a635d09000000b00416018b5846mr25033952pgb.574.1658149285475; Mon, 18 Jul 2022 06:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658149285; cv=none; d=google.com; s=arc-20160816; b=aYOtyDA/LXQUlrV7N1EUD0IC+YKYQp49DwVN0eBkyvTQs53YkD5R4otFEQPysJAwMH aFtlA8Ec7Cl/0PTMwqobfTtqFNbKzLca0Chhzt/Xffs3g3ojaxyNAMEByE8wPV6/SUh9 bEk+dOvLNtlFa+kdiDDD/0zGSilTO9VvrRcfKcplr2Hj1N5TTQKZTzM3hot7G+OmaLzk CNboTk+ZBI/3vLi9a07f2UBY0ANCWloDyOy1oVzeHgLeaqVh9eHEFAEaSRlYSR1+/ssJ UJ4J3aU/dtwsBRQpqTaeFscym73BV2LwVQlZXZ0mv3rk56GAvnKRcv4BQJFjOeBALPSi fHCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=s+wI6E3lvQrRgbEAGZ/E/5leuwKgxms8whX5vTqywr8=; b=gTwnvm8V5UcluzS0WpcKCUleslOebs23y3rQkoctzed+lzP5u9FyVsIeBDp/aBrLNG EK+eXzgC3mur+JQvlNj/IA4Ei577oci9qLajBjtUPYyvRAW5VvQ7InhZWwD43w/ZyKyT 1qZotLbepCezuAmbZdqQfatpKjIDwryB6McUkL/WdqKJcQBjogk7ido1Ro5EvEcpfXIc CQNFUdCfh5I01Qy7VgHE5Zo1Q9xWC9+EZYoiOsx2hs0BOzExkXhMt7AnvW4ciYezV7hg P0nIIdfeia9E9vkR2PDukpEmT7T8QJIMhzNo9jF5i0zXi95121lk1oyS/x1nSOgLC878 5HyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g29-20020a63521d000000b004160cd8ed17si15596057pgb.680.2022.07.18.06.01.08; Mon, 18 Jul 2022 06:01:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234755AbiGRMi7 (ORCPT + 99 others); Mon, 18 Jul 2022 08:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234710AbiGRMi4 (ORCPT ); Mon, 18 Jul 2022 08:38:56 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06268114A; Mon, 18 Jul 2022 05:38:54 -0700 (PDT) Received: from mail-yb1-f174.google.com ([209.85.219.174]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MNc1T-1ntovv2yxn-00P1WF; Mon, 18 Jul 2022 14:38:52 +0200 Received: by mail-yb1-f174.google.com with SMTP id 7so2914603ybw.0; Mon, 18 Jul 2022 05:38:52 -0700 (PDT) X-Gm-Message-State: AJIora+3xLD7Itae2Iu7y/Mdau8z5Eev6nHweUCFBfXOvq5nPSbDwlOd nzx20I48jbQ1Z9544pFHv1JbRjqpB3cyMNvmojA= X-Received: by 2002:a25:73d1:0:b0:66e:aee4:feb3 with SMTP id o200-20020a2573d1000000b0066eaee4feb3mr27671458ybc.452.1658147931121; Mon, 18 Jul 2022 05:38:51 -0700 (PDT) MIME-Version: 1.0 References: <20220718122922.9396-1-tmaimon77@gmail.com> <20220718122922.9396-2-tmaimon77@gmail.com> In-Reply-To: <20220718122922.9396-2-tmaimon77@gmail.com> From: Arnd Bergmann Date: Mon, 18 Jul 2022 14:38:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/3] usb: host: npcm7xx: remove USB EHCI host reset sequence To: Tomer Maimon Cc: Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , gregkh , Alan Stern , Tony Lindgren , Felipe Balbi , Juergen Gross , Lukas Bulwahn , Arnd Bergmann , Rob Herring , Krzysztof Kozlowski , OpenBMC Maillist , USB list , Linux Kernel Mailing List , DTML Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:jzFFZAGA31mTn/ohHcD0qj2/ahk4rft7ENCPnT0XV9jC0VzFpLG AvHIDX2uMKsBOzF+49GWSsFHdpdFciDJmgCa6V5/UMMfd32AQSMDvXerDnbrbVH5CRWa6r4 slnxXWaer9eF0/0P52cHRQ5TsrURXmTSZsbwejmTTMQxJNEUtNb7x1sxO5dou22so0ocyT3 qcID7HcqyOBuEyVsvdcow== X-UI-Out-Filterresults: notjunk:1;V03:K0:QX8kOfZzZto=:0RyCtvTDmBX08Hg1bkdFzY gN4pAl/+k+6IXBLANU8dKMkH6FOCaOnL4xIILrWc43TYTdRtiu4ixK3b8xym2YHF2HjMH1dK7 F2eTgCX+NIUCUYbR9DClbvxa0023wapPcGf0mKPfcj8XEl6smrUWCWzyhXsDo+OEJ+UgRxAqA jwTMX8ccV+qXyScA+dW6qz0CE/TqU8xF2ed0zTeJGaBecZXwZnjKbiuVscZPi3gtzUmPv2Acr q+v/kD/4fJg3KFmNlpWfAbvnPApHQBYbE0RIO+Ed+9sZDuNqcOgl9X1Q1AyPRjIx6HroPUYjO lv0Ah2xKyURBttHixj+Gp+oRh8CXg9Rr9a0dxeJ12IBAlmJyS9b5DxSgK3vIjLWG/49B99r9h jXgVFNAJ0x8AhrwNjdS7xkOg6fdT4/gaGloOd477/2W6Cnk+NPWlrdkE3oiNVP05U6Ch7ASd4 +qVLBAwRsm/cb4u7JR7TIMNIz6uXKuRaeIz1nhlkYTd/pNIyiwqLSj/mbcEOpadtaA35J3+NL FRdMOeMHmBfXiRNoLRiknQgXK/G/zFW89rS6ZT1pSA4guPHZIF24nmE3LOdfIiPme230+Z53y ncwiHwic6TwEXceixqirDSa6weWMlbh16xrlwTzY9TVBoTsSTr+PScHYunto9kSXe1QS3dn8N xUn6jVbcn67YG4lVarMe7idF5lTBTXohrTLABrVBNE7XFwzmQn4xvPAXxh3MvKfY/3hsfZ9xn 468/rs1RHXqdW9P8QkepKX0elqB89VGw3PPNsEdTjLjFf69D14qsd4hZBZA/G8j1uW1RUzb2O 4D4nxvIyiHHdWTXhlFp+sFFCqCrATYTTB4S+OXEpEi92tZFLj+XSBc5ZU5CSUUaSZwN4VlONQ aYuOQvnTvuYZ/ffnxn2VyR0ZCurOWuIcKibeNfXlM= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 18, 2022 at 2:29 PM Tomer Maimon wrote: > > config USB_EHCI_HCD_NPCM7XX > tristate "Support for Nuvoton NPCM7XX on-chip EHCI USB controller" > - depends on (USB_EHCI_HCD && ARCH_NPCM7XX) || COMPILE_TEST > + depends on (USB_EHCI_HCD && ARCH_NPCM7XX && RESET_NPCM) || COMPILE_TEST > default y if (USB_EHCI_HCD && ARCH_NPCM7XX) > help > Enables support for the on-chip EHCI controller on I would leave out this Kconfig change, there is really no need to enforce this specific dependency. It is expected that a device driver has dependencies on several other subsystems (irqchip, reset, pinctrl, clock, ....) and will only work if the required drivers are also built for the same kernel. Also, forcing the USB driver to be a loadable module when the reset driver is a module (rather than built-in) does not guarantee that they are initialized in the correct order. If only the USB driver is built-in and the reset driver is a module, or both are loadable modules and USB gets loaded first, then the probe() function should notice this and return -EPROBE_DEFER so it will be retried after the reset driver is successfully loaded. Arnd