Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp409812yba; Mon, 1 Apr 2019 08:45:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY8AwEKSGxJ4lAk510ea9MVDmvdZzrExRk9dSyqxL6cFTm7cTAJv1/2subSRqd3kDqtRsN X-Received: by 2002:a65:538b:: with SMTP id x11mr60024697pgq.35.1554133527169; Mon, 01 Apr 2019 08:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554133527; cv=none; d=google.com; s=arc-20160816; b=FXnl79hUhSekcQW5W7oQdklBrNSw5kQXHg3RLK5p8mR5udkiApfs0QsIUb5KPDUCj3 G+3g4Q5GfhtpIziHNMZi+pigRHJi0z8Cw1Hzf6HGPkJMKyBsgCFGLZLf3i+pYe9aJ73d Dp6pubJXUSROEEDaKtaEexZ22JeWYAEyM34/Gy74yNJM22mVhw/mM6MgTvp5GkmXszlC zRKN/13qH2nT9MC3a7ryaqS9e3XuONJ8cqw7dnSgjOd9bxxPBzyXMy/7OEtHIPu3q1Ex mnQxOLHaOU0gqx3xbNbs07UO7r+S0PY5CDngDi2DFyoDJ25iCwpZz4YG8wf3RebMcdno bwDQ== 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-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=rytgBPIQQhnYKnd1jlb2WOCdTasvmI3/5RejPyun8ds=; b=lPy55fKaeZaErkhFyPaIFwrHw2uAdG+jCVazTElj2HHn4N6Env/lRIMrcepY5lTyVf O95D6IwIKGLxPKrxmH2X1Z+yxrbph7oD+XTLD+ktlBzpPuyqtzTom+sPydT9WYPnfYox c+BM0M7XhDWD3xrw75aPBhNK03BI+WrNSooSLzLvFdaWqgQpIrjGWe0Me5zdg6kYuAc2 o5RtXU5zgiHNcIx46Im0KADozTXI5CAPdYE6sZDwuLsocfkJjtju7TmO0sQTLxZZ0Y9N Gg4N22zfPebVg5R6mulZt2SmVToWW4boWW3JsYHOEb456VtMXI3Ti6/gcDnz6mQrRhgS WXQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yGnhFVFp; 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 d2si10655976pfm.253.2019.04.01.08.45.11; Mon, 01 Apr 2019 08:45:27 -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=yGnhFVFp; 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 S1727415AbfDAPnu (ORCPT + 99 others); Mon, 1 Apr 2019 11:43:50 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:49448 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbfDAPnu (ORCPT ); Mon, 1 Apr 2019 11:43:50 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31FhXkd096405; Mon, 1 Apr 2019 10:43:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554133413; bh=rytgBPIQQhnYKnd1jlb2WOCdTasvmI3/5RejPyun8ds=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=yGnhFVFp8V6VHc2tKU+o9E67HBJr6OuXHbmto2PNKo0HurEm6VDXtrXSpQSmQVHLQ fRQl1dIdHB/5dkhjvmiDqoZs5iT6yHoMGoGYrGIjMbBpQ27isH7AMaDT7+um3oj6p2 R+FMy8X2T5ejn7TSdXY1+8EoiCF5vxfcHgZkd61Q= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31FhXmN069612 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 10:43:33 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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 10:43:33 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE104.ent.ti.com (10.64.6.25) 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 10:43:33 -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 x31FhXdB076337; Mon, 1 Apr 2019 10:43:33 -0500 Date: Mon, 1 Apr 2019 10:43:33 -0500 From: Bin Liu To: Paul Cercueil CC: , Subject: Re: [PATCH] usb: musb: Silence error about blacklisting hubs if !CONFIG_USB Message-ID: <20190401154333.GJ25852@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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190319135146.25995-1-paul@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 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? > > 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 */ Regards, -Bin.