Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp549611yba; Mon, 1 Apr 2019 11:35:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoyON+OMqOWKPQTbd8intgkMbEWJ99GiXcIk+NOrsXktAtG5qd7+g32l1KmWCk2HArWAZE X-Received: by 2002:a63:ad4b:: with SMTP id y11mr49047722pgo.405.1554143748509; Mon, 01 Apr 2019 11:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554143748; cv=none; d=google.com; s=arc-20160816; b=Ve+70sCTLERU5RXqp1KSzI47mn94T7JvGbDucfLd7tgIEdfbNdkkmBH5SBy2RyvSn3 UOXjClfh8gJwvT8oDE0fa1NhKFXdAmrhrCo8y4YyZzyOuizpGc+vlqbluAOsPahjIKuY BAitrIL/CCqJUOV9jNVdpVWM3i8F3wngOBrWyPAWde8jGp291YN2exEjOh+DlILSaTRr CDqvLBrOtQ1IAa7kJpSSa4wISrMrL1sGtbmQsIzjVaeLeaHLqff715FdeMntbMoQmC7P MNrBwzwGiTFMrr6L7lgEdozTI1j0Qt6h6VoFYgf7tTKtJEXFt2Yw0w384MxNGniGezIW GDjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0CF+Wt30WQRhwNj1PdNd4iu0m3tHVMrz/H7WnFT4LHI=; b=DRo4Y/PwaHeCVJAT4G5xGFwCWjfrhqzW1fi2dXpohwQqSrZ3bvDvAkuWaZ5/+ydpj4 TpbdQ5sYxTpHR7/bf9IBu2XyxMfkTDhrDLoY4LBSpaHve4UraSpBN5buZN04nqPPhh9Y gWd/ZdIppcUF5jcxZhKjTUy66+nOFYcg24CggfUjovz3MuuWzneQhp1H3jodn/ummZ2S OA6UJATwwfUu4d0krJ7wsdQFIT33C/OAUDuMJkcVtLBQ//UmOeCEUgh77EtLRlwKT7qX sGDU7hN2wfvOmsfEOeOj0v5JqQwD4KX1E70Q83UOF69wnGW/h20BdRrmAgSD0SSsx6S6 e2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HtLX2uu4; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g33si5246637pgb.192.2019.04.01.11.35.32; Mon, 01 Apr 2019 11:35:48 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=HtLX2uu4; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728865AbfDASer (ORCPT + 99 others); Mon, 1 Apr 2019 14:34:47 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41428 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728690AbfDASer (ORCPT ); Mon, 1 Apr 2019 14:34:47 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31IYgKl016321; Mon, 1 Apr 2019 13:34:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554143682; bh=0CF+Wt30WQRhwNj1PdNd4iu0m3tHVMrz/H7WnFT4LHI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=HtLX2uu4YPYTpCqR05nzbSnJkGsjDBsuR8gKak8dshGg1p6CgDCwE+ruY4XEpCX91 xVHy1Sm+0FxKXzLX2pb5TETP07cwWhfvJ8s6JyLiP+kCmNo7yhFbT0oxB/Or1QnDt/ DlBQqQqTGXbCLbtIM/15QUbFuMITqeyctJ6oXMgo= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31IYg3Y058565 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 13:34:42 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Apr 2019 13:34:42 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 1 Apr 2019 13:34:42 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x31IYgtn053754; Mon, 1 Apr 2019 13:34:42 -0500 Date: Mon, 1 Apr 2019 13:34:42 -0500 From: Bin Liu To: Paul Cercueil CC: , Subject: Re: [PATCH] usb: musb: Silence error about blacklisting hubs if !CONFIG_USB Message-ID: <20190401183442.GM25852@uda0271908> Mail-Followup-To: Bin Liu , Paul Cercueil , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190319135146.25995-1-paul@crapouillou.net> <20190401154333.GJ25852@uda0271908> <1554141119.10471.1@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1554141119.10471.1@crapouillou.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 07:51:59PM +0200, Paul Cercueil wrote: > > > Le lun. 1 avril 2019 ? 17:43, Bin Liu a ?crit : > >On Tue, Mar 19, 2019 at 02:51:46PM +0100, Paul Cercueil wrote: > >> Some drivers, like jz4740-musb, don't depend on CONFIG_USB. > > > >CONFIG_USB_OTG_BLACKLIST_HUB is about hub, so should it depend on > >CONFIG_USB instead in drivers/usb/core/Kconfig? > > It's already the case, indirectly - it depends on CONFIG_USB_OTG, > which only exists if CONFIG_USB is set. Never mind, my bad, I misunderstood the logic. > >> > >> Signed-off-by: Paul Cercueil > >> --- > >> drivers/usb/musb/musb_core.c | 9 +++++---- > >> 1 file changed, 5 insertions(+), 4 deletions(-) > >> > >> diff --git a/drivers/usb/musb/musb_core.c > >>b/drivers/usb/musb/musb_core.c > >> index b7d56272f9d1..9f5a4819a744 100644 > >> --- a/drivers/usb/musb/musb_core.c > >> +++ b/drivers/usb/musb/musb_core.c > >> @@ -1497,10 +1497,11 @@ static int musb_core_init(u16 > >>musb_type, struct musb *musb) > >> } else { > >> musb->is_multipoint = 0; > >> type = ""; > >> -#ifndef CONFIG_USB_OTG_BLACKLIST_HUB > >> - pr_err("%s: kernel must blacklist external hubs\n", > >> - musb_driver_name); > >> -#endif > >> + if (IS_ENABLED(CONFIG_USB) && > >> + !IS_ENABLED(CONFIG_USB_OTG_BLACKLIST_HUB)) { > >> + pr_err("%s: kernel must blacklist external hubs\n", > >> + musb_driver_name); > >> + } > >> } > >> > >> /* log release info */ The patch is applied. Thanks, -Bin.