Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp517622yba; Mon, 1 Apr 2019 10:54:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRmXVMHr/jXoxCk/Wap+DZ/8/p4E7gC2g/G4nEmrzPKhf0O2ryBS+maXMoXJ1KMqWGlXYw X-Received: by 2002:a17:902:bd82:: with SMTP id q2mr35788337pls.201.1554141249653; Mon, 01 Apr 2019 10:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554141249; cv=none; d=google.com; s=arc-20160816; b=YfwjQgu/om3VyO+mvzWo2EvzIbwK8zO2ApQA6h+yc1GLUaUESnX08HqZwyHKtTAKwZ ROcuXPnBvRsNgnpccnWOWU0o9/cxkr7rKcAqA0ZJbFm3nVcoprexx8hZY7g3WPmcj0Xu snyOVgUdCDaWoA2Ipqh/+xQvwgm+CgZRfeC0NGGzrL9Iqh1aCxldkYLrgFAtXXMhLUbC HuqrI1eo73P112TnRXzcMn8i4oHL5yM8eusumAkgPIAM2/q8qcRq8X2EwvzXZTGABy00 Q0+TQKINgci71PLv69sRL8u9J154jGpGfdZPhaa3uDqTC4dWsiJkrn4zLx4yVujM5XFY W8Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=9zNcHYMrA9NPNDv164IAAHOmVlnT57ChU1ex6cYItfs=; b=dRvyazniny0635tZFeJdTIQ8ILQp3l8V/1SUWMyYZS7EZe01fPACtkIeEkDl+X7QFv VcjV7aMwa/M+wfZzKQ0Kn0/SEDj8NHZsEtLMEvfv60HWbAzY1vJStRkQZJGk1R4Pz5Gf CEqVH0N9K/36HooHqQ1WbMJZFLeLwKttD8VPjsF/raTDFdYwLStQs1rI/nccNFER6KHQ Q/+BxxrOwlmn382X7DVL8SRuSUYsjztrcjPHUCgxnRRBjeWosf/F5dbYspI9SOjCe5h9 6rTht2KhfuapJ2+dtUeNq6T7RfJGEMsf6CzFJuJGv8cWpD/kNyvVA1JvND+fuPwzU7TS AvHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=C77j+YjI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si9740839pld.210.2019.04.01.10.53.54; Mon, 01 Apr 2019 10:54:09 -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=fail header.i=@crapouillou.net header.s=mail header.b=C77j+YjI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732799AbfDARwG (ORCPT + 99 others); Mon, 1 Apr 2019 13:52:06 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:41886 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729565AbfDARwF (ORCPT ); Mon, 1 Apr 2019 13:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1554141123; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9zNcHYMrA9NPNDv164IAAHOmVlnT57ChU1ex6cYItfs=; b=C77j+YjIwrHuDMaL4pOfblUbXMzx9qB6+iV4rznBtPSgXDZNnyabMcjDa7r0scIwpXs+7s b+w5JJCKWchlgnXhmEa+a42xKq8ubM2GwEg08jq4whdcrRbgTFnDyve7+UNGsbrMvIgaF6 ms5N2dv25zd5BGzudLmMAraGJ5Pw2ZA= Date: Mon, 01 Apr 2019 19:51:59 +0200 From: Paul Cercueil Subject: Re: [PATCH] usb: musb: Silence error about blacklisting hubs if !CONFIG_USB To: Bin Liu Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <1554141119.10471.1@crapouillou.net> In-Reply-To: <20190401154333.GJ25852@uda0271908> References: <20190319135146.25995-1-paul@crapouillou.net> <20190401154333.GJ25852@uda0271908> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 1 avril 2019 =E0 17:43, Bin Liu a =E9crit : > On Tue, Mar 19, 2019 at 02:51:46PM +0100, Paul Cercueil wrote: >> Some drivers, like jz4740-musb, don't depend on CONFIG_USB. >=20 > 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. >>=20 >> Signed-off-by: Paul Cercueil >> --- >> drivers/usb/musb/musb_core.c | 9 +++++---- >> 1 file changed, 5 insertions(+), 4 deletions(-) >>=20 >> diff --git a/drivers/usb/musb/musb_core.c=20 >> 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,=20 >> struct musb *musb) >> } else { >> musb->is_multipoint =3D 0; >> type =3D ""; >> -#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); >> + } >> } >>=20 >> /* log release info */ >=20 > Regards, > -Bin. =