Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13698096ybl; Sun, 29 Dec 2019 18:26:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxmyPLolyOQZb55d/FL1018b/VcXDBui6RrqMbqcJkrVMWgMuxlj9ODlON28adTv6yprTaX X-Received: by 2002:a9d:600e:: with SMTP id h14mr69607136otj.113.1577672771468; Sun, 29 Dec 2019 18:26:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577672771; cv=pass; d=google.com; s=arc-20160816; b=aDVaiSf/8ORHPG7gCPYLT4iySU5o6hjsjDAsuQCCDeLcOjj9isuPhbq2Ea9522UccP ET2wmUdRc2JyV/IKZlCGpEcmkp5eJa4Q1d38U5/oKKkSG+14vMVcnlvWFaJQbHEzKWnc qQnP7USvQEle27Bn8nObI05fTDjsEShFuNvwFS+/nB8d1pTTkUoxDEr+BmXQJGbk8v/i lEpzJe2riYpWi3vpm2m6BrEDMFpIUE1xXjJRKfa5/uY99/ABw2bqTuSqpVD3s3JDQyDu rrF1TtVmUjdAbmVZZgpyTNnvymgEvA7oJvR/NOuG9e1+/id4vwi3AnuWnnpy3HnQ+WSI p+Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=nfhh2EOAF8f2TivPWQOHIbZ7P4neJ5grvLsaz+zgjuM=; b=AWC4y4AoLnHxkwBdeTDDIOqAf0/1kWivDnAQ/7kmfWkUI9TCc4nZi6ObD5EwksJZDM fwtoO7NHPs2CznGDXxp+JCuLipwWU+vWEGKA6VU3QrOPFcpxOosk3JT6ErlgJWwNs3Ju WWOHzGkDE15B5ybz2X8FIs9sIGYKqI8S4xqDcI9w7sqlYSKmHCxwjY9dLtC41BU+hIGS lby3r80OEZnZEzA4KlYhfSmH3RP2JR+ucx2E3qtT6G7Fg9NI20/33OdEgphWpeau5Hwl hQ/YcE5KwK3uNGXQ8PEpcubrhiOV0nzPDxa8s0vO5al2QHg1HI03tShWkAkr4I9A5kAr UUSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Q/wVf18d"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si21400927oti.325.2019.12.29.18.26.01; Sun, 29 Dec 2019 18:26:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Q/wVf18d"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbfL3CZG (ORCPT + 99 others); Sun, 29 Dec 2019 21:25:06 -0500 Received: from mail-eopbgr70070.outbound.protection.outlook.com ([40.107.7.70]:38979 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726726AbfL3CZG (ORCPT ); Sun, 29 Dec 2019 21:25:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DvQPpELGP9337wYBTWEOxDKKDHlvwmh1h//HzJOkMHbpawFbg5ePwOJppPIG0HTw4G+9rupw7M3kwmR6F7Wxpx59gHwiElBF3lf2pmw1mG7t1FZgoD9qVn8YoGie+utfmTX9BzsTz/tyH+bD5dJuSgp2FR4jOsEK9fvjhQjJrn/nTmtWWT2stcVl+m24E3yP6rj8MLMvqj7EvRbYon/B8RxxwHPyMdLo6egTLzhkdXaAPRTMHoebNSG4mxmanLFcP+s7ud+8zUt3oUIX0BrZgkpieoEdwgJD5lkGx/j5zmHNR5TfOLbReGYvlE1k07SH6LJizrSYxR4S0B5RDkwIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nfhh2EOAF8f2TivPWQOHIbZ7P4neJ5grvLsaz+zgjuM=; b=j6a6IyHcDohTSrqC5WGUynJE+N9u+O0/Cb5nD9B5UNMBFCGu0fkmgSb+kbXiqY8hZ7xVw+ZXdvmgFKP8FCgcEIq8z5FdmylMirZNBCnQwCGnZ33gSUL3/rvz9LVWy/7hDDRawVBwyVR6ebR/y2+mSRCGFZ/XQFv/frLM8mvVboCZSyJTtg2XXIW3977rv2u6GJoismCVJUfM2TLTcHU6/w6znsM5F0ey+wDeLYscnFTkkoFg2fcahTWerZDIcg3fwB3/5EgYgpH6yn1ErL3lv1anhy5yZXYbLhtfAnIujLmbFHOn9HQuOh91L8sOGLN0hQ2A0KZs2BV4zpoylVx2Ng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nfhh2EOAF8f2TivPWQOHIbZ7P4neJ5grvLsaz+zgjuM=; b=Q/wVf18d5QlxTeT1+xz8M+209AmwiCUwuEDzt08ghEG2jPJqkzIkC5VLgv6GBVGpaRskWRLIlyXBkPGjyN2it90FZyEvky8FkV+Y15ir8WV/ItKsrN56nIuP6rL9usYZodecTyF5iU31a6TQeQqULOuDUFsgXilYaTkusmtXeWM= Received: from VI1PR04MB5327.eurprd04.prod.outlook.com (20.177.51.23) by VI1PR04MB2975.eurprd04.prod.outlook.com (10.170.228.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.12; Mon, 30 Dec 2019 02:25:02 +0000 Received: from VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::c7d:58a2:7265:407e]) by VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::c7d:58a2:7265:407e%6]) with mapi id 15.20.2581.007; Mon, 30 Dec 2019 02:25:01 +0000 From: Peter Chen To: Dmitry Osipenko CC: Rob Herring , Greg Kroah-Hartman , Thierry Reding , Jonathan Hunter , Felipe Balbi , "devicetree@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 15/16] usb: chipidea: tegra: Add USB_TEGRA_PHY to driver's dependencies Thread-Topic: [PATCH v3 15/16] usb: chipidea: tegra: Add USB_TEGRA_PHY to driver's dependencies Thread-Index: AQHVvb5y5vIp7vVIpkSbyUzjwb7RoafR9S2A Date: Mon, 30 Dec 2019 02:25:01 +0000 Message-ID: <20191230022459.GD5283@b29397-desktop> References: <20191228203358.23490-1-digetx@gmail.com> <20191228203358.23490-16-digetx@gmail.com> In-Reply-To: <20191228203358.23490-16-digetx@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peter.chen@nxp.com; x-originating-ip: [119.31.174.67] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dac6836f-74b9-4e2a-27f4-08d78ccf7970 x-ms-traffictypediagnostic: VI1PR04MB2975: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0267E514F9 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(4636009)(366004)(376002)(346002)(136003)(39860400002)(396003)(189003)(199004)(71200400001)(86362001)(5660300002)(44832011)(186003)(6486002)(7416002)(54906003)(2906002)(6916009)(4326008)(316002)(6512007)(9686003)(1076003)(33716001)(66556008)(66446008)(8676002)(6506007)(53546011)(91956017)(33656002)(66946007)(81156014)(64756008)(76116006)(81166006)(26005)(66476007)(478600001)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB2975;H:VI1PR04MB5327.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0+qhb1ztc0PygW1s7kY6LObVReHbHDneRpFYsnGhOhtA62N/gOmwTKfk01HHf7CWG2tvEdc1CWPQ46JjFhTfuwWa0szNl6bm3j9hMxyzww1K0lCNC8f0gUQkOIENZ/5OrJnjFjzxnwZUUf5SiTkWfobX6YAiL9DAOFjHj60u2+cACNGokUgpYdYcJmCydI2Z7Mc2UDFtLAnvuc01rYS4P1ByAUOQDio2NCfBfySlf5N9luKaaJbEAb4oO8qM4V6PpzWPoI60uhfot+oLYlJ/XQp+j62gr4w3ak1lr/9kYNuQR7FpsAb+j+iF321YSvIYcEM1NnzSgMP9wibdsccC5YHbYtkB6dUJd6ih2xWEQHUj3Ir0egZ5YDHNJks9lvL/Oyy8pKkx8ZZBhzT713QZyfKobPf6qhIfWK4K+OeDv4YcRwYCGQ2oBc34VUJBK9zG x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dac6836f-74b9-4e2a-27f4-08d78ccf7970 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2019 02:25:01.8407 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RM/29Omht+LZbxuUpqbraNYuowkmJyNHAxqNUztxwd4ABa8/mlkLk3+9pZJcAx77Md2kN6Sl6HRVe9yj3D+8wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2975 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-12-28 23:33:57, Dmitry Osipenko wrote: > Now, when ci_hdrc_tegra kernel module is loaded, the phy_tegra_usb module > is loaded too regardless of kernel's configuration. Previously this > problem was masked because Tegra's EHCI driver is usually enabled in > kernel's config and thus PHY driver was getting loaded because of it, but > now I was making some more thorough testing and noticed that PHY's module > isn't getting auto-loaded without the host driver. >=20 > Note that ChipIdea's driver doesn't use any of the exported functions of > phy_tegra_usb module and thus the module needs to be requested explicitly= . >=20 > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/chipidea/Kconfig | 1 + > drivers/usb/chipidea/ci_hdrc_tegra.c | 6 ++++++ > 2 files changed, 7 insertions(+) >=20 > diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig > index ae850b3fddf2..d53db520e209 100644 > --- a/drivers/usb/chipidea/Kconfig > +++ b/drivers/usb/chipidea/Kconfig > @@ -7,6 +7,7 @@ config USB_CHIPIDEA > select RESET_CONTROLLER > select USB_ULPI_BUS > select USB_ROLE_SWITCH > + select USB_TEGRA_PHY if ARCH_TEGRA > help > Say Y here if your system has a dual role high speed USB > controller based on ChipIdea silicon IP. It supports: > diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/= ci_hdrc_tegra.c > index 7455df0ede49..8bc11100245d 100644 > --- a/drivers/usb/chipidea/ci_hdrc_tegra.c > +++ b/drivers/usb/chipidea/ci_hdrc_tegra.c > @@ -53,6 +53,12 @@ static int tegra_udc_probe(struct platform_device *pde= v) > struct tegra_udc *udc; > int err; > =20 > + if (IS_MODULE(CONFIG_USB_TEGRA_PHY)) { > + err =3D request_module("phy_tegra_usb"); > + if (err) > + return err; > + } > + > udc =3D devm_kzalloc(&pdev->dev, sizeof(*udc), GFP_KERNEL); > if (!udc) > return -ENOMEM; > --=20 > 2.24.0 >=20 Acked-by: Peter Chen --=20 Thanks, Peter Chen=