Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752850AbdLKNDV (ORCPT ); Mon, 11 Dec 2017 08:03:21 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40368 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbdLKNDS (ORCPT ); Mon, 11 Dec 2017 08:03:18 -0500 X-Google-Smtp-Source: ACJfBotEntbSdDZOSCfVPfvIBbB/ihqe3XxFXjB6VhCtYTf/CM9vkxNO2SPjxM/UOQ87RtYHlvexFw== Subject: Re: [PATCH v1 1/2] usb: phy: Add Kconfig entry for Tegra's PHY driver To: Thierry Reding Cc: Felipe Balbi , Alan Stern , Greg Kroah-Hartman , Jonathan Hunter , Peter Chen , linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171211100248.GD10671@ulmo> From: Dmitry Osipenko Message-ID: <6ca4c24f-93e0-6ec4-c182-c72dbc7eca74@gmail.com> Date: Mon, 11 Dec 2017 16:03:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171211100248.GD10671@ulmo> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 21 On 11.12.2017 13:02, Thierry Reding wrote: > On Mon, Dec 11, 2017 at 02:09:59AM +0300, Dmitry Osipenko wrote: >> Add Kconfig entry so that other drivers other than ehci-tegra >> (like ChipIdea) could add Tegra's PHY to build dependencies. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/usb/host/Kconfig | 2 +- >> drivers/usb/phy/Kconfig | 8 ++++++++ >> drivers/usb/phy/Makefile | 2 +- >> 3 files changed, 10 insertions(+), 2 deletions(-) > > I don't think we actually build-depend on the PHY driver from the > ChipIdea driver. In the past, we've refrained from modelling runtime > dependencies using Kconfig because in some cases (such as this) it'll > include more than necessary (ChipIdea will automatically pull in the > USB PHY driver irrespective of whether or not Tegra is enabled). Please take a closer look at the patch. Tegra PHY driver is only compiled if ehci-tegra driver is compiled. So we need to decouple build dependency in order fix it.