Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3760398imm; Mon, 20 Aug 2018 04:23:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyceIM5zmSmQeo7UwvcrFCNpFVW9L4JNGvM7qrGAayr0Soab4IsBAWN1T5zV4E45hxdzE8j X-Received: by 2002:a17:902:6bc8:: with SMTP id m8-v6mr45392839plt.162.1534764236342; Mon, 20 Aug 2018 04:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534764236; cv=none; d=google.com; s=arc-20160816; b=OUS54ombPfdNGe/wFbO6dkBVZricEYmcIpQzXqqnGyzRXYBRYjWabIrVWhcXojynQ4 TI1qykq2aYmC3eWHHC1f1Cyy94mG80v8MgLogN76U8OPDVi8Yq5b1EN/DZVd9jbofGRs Il5W5EJH2KaOFOJsq+6y9cpxjWbxt0/Nu55wKdr0GhHPHumhkVEuPLaPbT7Hp0TMf6po SLx3NB80LCM81gHEqaB097dYFt9fbdN8PvrTHENYQgdfMKGBwR5MF4UXyv72j7ZRN7J3 UkY5suhuLtRfu8jwfPRqkw3ROif57HUYbww/0QJZf2dl10cEn06MoIAyqUNHHYRnmG7x zJZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=lpbGvea2LMx0Tt9m6fPKIRZHV47OGpDAuBls2hEtCYk=; b=pphWoIAcWofnQnkKbqFEs5QEVwdiaCBWGdV+AdXLPYknd8l9A5ofojI+hCUdsgtqci Dt4EZGJdhJOjHQFn1F+2CJfwbZF0zA0ZTysUjitEO44pe036rqkQ563xemZlSVuxBrxf /fdjTOwHUjsvDU6orc4edBi5JlO+e3p7H3mP9IOU/eLDaJ0Qu598EB5EDdpEoiAUT9a7 TMl6x4qOTffUqS4ei4LS/yUt4/8CqS6l0KD8D3PCKe4BRbm1XB+w+LnYUAEaNtBaiVAZ 025LeG79Ff0OPjEdooc79UxmlVhHh64RaBE83ejXPAiS97EZAYKgFnT052KZf25LRkbi QJag== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t30-v6si5724209pgm.66.2018.08.20.04.23.38; Mon, 20 Aug 2018 04:23:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726455AbeHTOhr (ORCPT + 99 others); Mon, 20 Aug 2018 10:37:47 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:46749 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbeHTOhr (ORCPT ); Mon, 20 Aug 2018 10:37:47 -0400 Received: by mail-qt0-f193.google.com with SMTP id d4-v6so15682261qtn.13; Mon, 20 Aug 2018 04:22:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lpbGvea2LMx0Tt9m6fPKIRZHV47OGpDAuBls2hEtCYk=; b=RBXcdXPhMNFveuP2RqJalL120YaKWxHqD/cGS+DloPKY12gnp3U1Pms/Phl+338EHt mvAMZafYZ0DXtujEWSRP1wztcmQKQRaI7VjGtyB0L1uiXozXWgHEwMqXsq/oK0slgqDV B5bIRt+U9MJy9kmPNnjlLHSi03ODPTeTgbAtMYLiYtUONlH9LzKi8V1yoYNwb4GSdEX3 JPzqgw2smWeEIwx+w4AU06Fx7oHukrlY5CbD74oZRBa3yClr8U6xRNGp81kQhvGv/cmO 2CwAN0N3MrCBzEXFgY1PuvIr5/Q5H3iKty3bMT8qUc6IrW+IhSKYD6KNb0VbfaOYNxc0 EOtw== X-Gm-Message-State: AOUpUlHbnf7Y9p+nYNDoJ+oekfVLgflCGCfJqqVTfNI4AGLqsuFnlawC Df5tiW1UnWZjz98u0V7YhWSjd/Z1lJV9D5sOMDw= X-Received: by 2002:a0c:a8cc:: with SMTP id h12-v6mr41161338qvc.161.1534764153267; Mon, 20 Aug 2018 04:22:33 -0700 (PDT) MIME-Version: 1.0 References: <20180813214924.3567840-1-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 20 Aug 2018 13:22:16 +0200 Message-ID: Subject: Re: [PATCH] usb: hide usb_of_get_companion_dev for CONFIG_USB=n To: yoshihiro.shimoda.uh@renesas.com Cc: Alan Stern , gregkh , Felipe Balbi , Geert Uytterhoeven , Johan Hovold , USB list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 5:22 AM Yoshihiro Shimoda wrote: > > From: Arnd Bergmann, Sent: Tuesday, August 14, 2018 11:27 PM > > > > On Tue, Aug 14, 2018 at 3:58 PM Alan Stern wrote: > > > On Mon, 13 Aug 2018, Arnd Bergmann wrote: > > > > diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig > > > > index 0a16cbd4e528..663a8bd67a7b 100644 > > > > --- a/drivers/usb/gadget/udc/Kconfig > > > > +++ b/drivers/usb/gadget/udc/Kconfig > > > > @@ -193,6 +193,7 @@ config USB_RENESAS_USB3 > > > > tristate 'Renesas USB3.0 Peripheral controller' > > > > depends on ARCH_RENESAS || COMPILE_TEST > > > > depends on EXTCON > > > > + depends on USB || !USB > > > > > > Is this some weird standard idiom? It looks really strange. > > > > Yes, and yes. > > > > A less common way to write it is > > > > depends on (USB != m) || m > > > > which some people prefer, but I find even weirder. > > Thank you for the patch! > > On other thread, John mentions gadget-side drivers should not depend on host-side [1]. > So, I submitted a patch today [2]. What do you think about my submitted patch? > > [1] > https://marc.info/?l=linux-usb&m=153433776202861&w=2 I don't really think this is a big issue, as you can still build the driver with CONFIG_USB=n, so it's not a strict dependency. > [2] > https://patchwork.kernel.org/patch/10569847/ On the other hand, your patch looks nice and is somewhat less confusing, so you have my Ack on that. Arnd