Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3452477imw; Mon, 18 Jul 2022 08:19:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfDyP6nN8EjrE0ROzL1y40inbbOMdvmhNbYEu3RyBzY82c892mXTL4ouN7hXHIQfVwLi2Z X-Received: by 2002:a05:6808:13cf:b0:339:e49a:2bc1 with SMTP id d15-20020a05680813cf00b00339e49a2bc1mr13911051oiw.13.1658157555224; Mon, 18 Jul 2022 08:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658157555; cv=none; d=google.com; s=arc-20160816; b=s+8cekYXan8+EpKKz4WCgtj17lKgwQJJcz9K98ShgSik7EtvSUWgemELpJMIFmvHzV Vl7eP49R/ctpbYwqWi6WWPgE4TyXvK7Ru23ztQzqQTgkq8ZKdehrqQIlYHbjOJSLcJto U37bhUslIJAg3yf7gQFRPM1bx+T/PtXdnasx1rRQb3W2S+wiQPpoZOgMqNEbAnJbq4Qp p2xTcWnqiB9tQWY7fJQ9CYPNXDEtuWHUzew1Z1PsU40c1XgTawLQrw3qmqjDExQKB1Bn tQb3AanHPYT5B8QgyhPaiuWhf7Rbh+mCjZFDfh7bfRCxRaZNHuHyxsjKL4PV04tlkf+J 39tg== 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:dkim-signature; bh=nYPlqlfmPSur8GF0RqYSY08DVBhvxgeO+GWpvl7QarY=; b=JayHYoDjNW63mGiwxxE6sDaeRJDhTAPiQsqvakbVm2Wa9NUHdGlTUzZPg0SKgBjBQM gvYPPQutU5b7M9AR4ZzFou5PLC1WxWsEvB1wcQsCn3BV7jWiwLaTZqlIDp9cIx7PKUxa x6IdxikiNWozrPSU7O5eofBBrgSkKKMHncLplTg5KATmXvT7+8jaPnjxyjKOgXiAr/pR AVOm8liB4BquaYUV+xIYBgx1zKgzwygKRTnKdFvgBNNb1LXyyyvJZ83k7wbKzo07Gqx+ KlanDL+bsOLcvIhXIAj4UMa0237mE/csOHB6/0P7Z8gIEVYLTLgPbFPmv+yDBbpRaIMC L5gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O6W1Zn/n"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a056870e30e00b001048cf2f5a8si13148262oad.180.2022.07.18.08.19.02; Mon, 18 Jul 2022 08:19:15 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O6W1Zn/n"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235327AbiGRO3r (ORCPT + 99 others); Mon, 18 Jul 2022 10:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbiGRO3q (ORCPT ); Mon, 18 Jul 2022 10:29:46 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A17472B1; Mon, 18 Jul 2022 07:29:45 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id y11so19635091lfs.6; Mon, 18 Jul 2022 07:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nYPlqlfmPSur8GF0RqYSY08DVBhvxgeO+GWpvl7QarY=; b=O6W1Zn/nePJWHmpM9MJ5H5o0Hi8rLzd2XYj9JrC9Job3qR3iLLcHWbd39W8O1xS7K1 +WtOVEzd4owHyN7J+e7uHHSuN5DIMOdH1e3BtMsgToI1yJK7Fa1UgqcoJVZ7g5QTQPuo M7FCXLyyMKVTJoUIB5z2/SeiI9jds8m8qWg7VXucYTlGdOgXBBd6GeQswW1N5oELxOf/ wYH+zjzrxZWHQHGIooHu/3qBEHN845Jw+2o6EJK6WOespU2r7rekF0Su+28xctX1vexn 10AR8goH4+mU5ixAh+bodnIClmZrdeCNJqPW31bDoLair1fDeEGj0gh4kUOZwTDukrZe HWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nYPlqlfmPSur8GF0RqYSY08DVBhvxgeO+GWpvl7QarY=; b=yVZoPBi1Ic0FrhuSIQIoMjSHmGhlEdOlYCZLLOdfFeUNZG/TtwRmGG+BXVDo81p4tl 6ckFF5bAPgZVn8lLCMxQk1DB7xXIh11rKs51TsTgdzPjs4beEChBhAOQ82q5SatJJz2r FzIqimSoBwisT3jHEXiqsD7uaMd537OLdFkUJ3zvGL4/H/Puxst+itjw9DFjHf9B7NXn KRWfhpvLM53aa41BwFukq7eC6N4DjTIw3d3MEafjPqB3W9Ib9zriJc2x6nfrOXm65ZWW d9QktInrHG2HzeWLYQpbJeHdjhAA/H+6MOmfotOsoVA5i9Qk2EAQ9/38n2OZlgeEZz3A Li3w== X-Gm-Message-State: AJIora9IN8/lAjM/iw0Ymesg9FH4qU+3l+YW79MPzWHe03+5RFSnFp0+ dneUNp36605Lm0iyA7muFXR+i5Yaz5bkXoLjw4U= X-Received: by 2002:a05:6512:22d2:b0:48a:1ec7:2220 with SMTP id g18-20020a05651222d200b0048a1ec72220mr9287388lfu.668.1658154583941; Mon, 18 Jul 2022 07:29:43 -0700 (PDT) MIME-Version: 1.0 References: <20220718122922.9396-1-tmaimon77@gmail.com> <20220718122922.9396-2-tmaimon77@gmail.com> In-Reply-To: From: Tomer Maimon Date: Mon, 18 Jul 2022 17:29:32 +0300 Message-ID: Subject: Re: [PATCH v1 1/3] usb: host: npcm7xx: remove USB EHCI host reset sequence To: Arnd Bergmann Cc: Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , gregkh , Alan Stern , Tony Lindgren , Felipe Balbi , Juergen Gross , Lukas Bulwahn , Rob Herring , Krzysztof Kozlowski , OpenBMC Maillist , USB list , Linux Kernel Mailing List , DTML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Arnd, Thanks for your detailed explanation. I will remove this modification in the next version. On Mon, 18 Jul 2022 at 15:38, Arnd Bergmann wrote: > > 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 Best regards, Tomer