Received: by 10.213.65.68 with SMTP id h4csp414789imn; Fri, 16 Mar 2018 07:07:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELtfivsa2ZuM+3ILdwO9jm38oWfYycYg7M6IqEd8bwWvtWBSTRjuBZ5UmkkM2IRObdD1a1Bp X-Received: by 2002:a17:902:227:: with SMTP id 36-v6mr2246706plc.134.1521209232709; Fri, 16 Mar 2018 07:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521209232; cv=none; d=google.com; s=arc-20160816; b=UNTFG+73X++3ou/G46pWQgEvkgt0xbw3HEoVZfMA0tVV4nCurfLSJxlGOxmglgoK/d bKVriH0vuh5F91WluRNBAUk1HZjlVmagNHzUDqivKG1Ro4AKnGf+n3z2fiLI6ps+YLol ELMXpaZuv2lv7Ffc0b0QcBDM2oj5BJVCaT0Z6VEqttB7KflzRaFmqL0Wuu3TvMvyYOxt v9M1yMqroaAIDoh0StT0/lKsFxMDzmH/q99g/wKHTXAoQhwFaV3bBwATt586nhwhg7Wk srcgJVbUyUI47kfEeZiBnm/voW2SZFje5URSTtFizHKrl0plRJOwb0t6H2g81cF1A8Ea Rjvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wc7B4MHZO/3seTOwpgO889k5hOy0F/v9WODZZ9IRg4o=; b=0+sxjCWVYmhPUL4BxwDHlQLUPU9ZNtuAx9GaCRSdhey/gWuwnwASwRp7mHbWuvaJUg om+plx5nwZr6kopHfi6A2CTYBRKqEEPbfGuy7wb7NrICACvsLCJIjGZ+CJhFAn7T9WFm VcrRraJ8m9ZoGBThnqHN39fO77ln5vB4T0Zt2uvxtaQAKtrWYJP64bFGiPYt0gcwlXKa +BiBg2uGv+AfZmp7q3O6kDMxOnyX367yDWz/eKvYNGeNUlypxOvKoZGSaJSJdtacjw2I x2iSZkNLGuiW4W+5S5iD24WYS+KJK8A2d5rd5Tfkytd6RA746tyaZe8v8qisO9JTfNCC jlHA== 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 k1si5637474pfg.38.2018.03.16.07.06.57; Fri, 16 Mar 2018 07:07:12 -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 S1752781AbeCPOD2 (ORCPT + 99 others); Fri, 16 Mar 2018 10:03:28 -0400 Received: from leibniz.telenet-ops.be ([195.130.137.77]:36374 "EHLO leibniz.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752518AbeCPOB7 (ORCPT ); Fri, 16 Mar 2018 10:01:59 -0400 X-Greylist: delayed 540 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Mar 2018 10:01:57 EDT Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by leibniz.telenet-ops.be (Postfix) with ESMTPS id 402n391YZjzMqcsB for ; Fri, 16 Mar 2018 14:52:53 +0100 (CET) Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Ndry1x00A3XaVaC01dryfT; Fri, 16 Mar 2018 14:52:52 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ewpm1-0000R8-Tf; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001Hs-Im; Fri, 16 Mar 2018 14:51:57 +0100 From: Geert Uytterhoeven To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Felipe Balbi , Greg Kroah-Hartman , "James E . J . Bottomley" , "Martin K . Petersen" , Andrew Morton , Mark Brown , Liam Girdwood , Tejun Heo , Herbert Xu , "David S . Miller" , Bartlomiej Zolnierkiewicz , Stefan Richter , Alan Tull , Moritz Fischer , Wolfram Sang , Jonathan Cameron , Joerg Roedel , Matias Bjorling , Jassi Brar , Mauro Carvalho Chehab , Ulf Hansson , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Boris Brezillon , Richard Weinberger , Kalle Valo , Ohad Ben-Cohen , Bjorn Andersson , Eric Anholt , Stefan Wahren Cc: iommu@lists.linux-foundation.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-block@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 21/21] usb: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:54 +0100 Message-Id: <1521208314-4783-22-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> References: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy Acked-by: Felipe Balbi [drivers/usb/gadget/] --- v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/usb/gadget/udc/Kconfig | 4 ++-- drivers/usb/mtu3/Kconfig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index 0875d38476ee9395..9c3b4f86965e80c7 100644 --- a/drivers/usb/gadget/udc/Kconfig +++ b/drivers/usb/gadget/udc/Kconfig @@ -179,7 +179,7 @@ config USB_R8A66597 config USB_RENESAS_USBHS_UDC tristate 'Renesas USBHS controller' - depends on USB_RENESAS_USBHS && HAS_DMA + depends on USB_RENESAS_USBHS help Renesas USBHS is a discrete USB host and peripheral controller chip that supports both full and high speed USB 2.0 data transfers. @@ -192,7 +192,7 @@ config USB_RENESAS_USBHS_UDC config USB_RENESAS_USB3 tristate 'Renesas USB3.0 Peripheral controller' depends on ARCH_RENESAS || COMPILE_TEST - depends on EXTCON && HAS_DMA + depends on EXTCON help Renesas USB3.0 Peripheral controller is a USB peripheral controller that supports super, high, and full speed USB 3.0 data transfers. diff --git a/drivers/usb/mtu3/Kconfig b/drivers/usb/mtu3/Kconfig index 25cd61947beea51e..c0c0eb88e5eafc74 100644 --- a/drivers/usb/mtu3/Kconfig +++ b/drivers/usb/mtu3/Kconfig @@ -2,7 +2,7 @@ config USB_MTU3 tristate "MediaTek USB3 Dual Role controller" - depends on EXTCON && (USB || USB_GADGET) && HAS_DMA + depends on EXTCON && (USB || USB_GADGET) depends on ARCH_MEDIATEK || COMPILE_TEST select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD help -- 2.7.4