Received: by 10.213.65.68 with SMTP id h4csp417607imn; Fri, 16 Mar 2018 07:11:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELvFLlYVxPlPj9fLVivRhZaScxr/2QAEbSjRGE66Cc55lqxJ2TrPHxkNF96mKbYU9/A7Tpiy X-Received: by 10.99.127.91 with SMTP id p27mr1606829pgn.28.1521209489838; Fri, 16 Mar 2018 07:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521209489; cv=none; d=google.com; s=arc-20160816; b=n4jP1J9m38w3XcGjO+f4oBkC8ZWechRXwJSguBDB7l3K51A0s2Sy/lCgMF+lzBIHEC CWGzkOSIUjfuOaPvzEnasP6ylewHc+/Zx9hvr3FV+onI6e3s0TMQdwbQ13Z3UcqVcf9L +5A8gJ6crs74hX86pGn3Wx9qYx74ZckkHLpYqWipQRSUhMiz3yw5WXmjLvbL8Rnbj6di EXn9m0P4NCs/LYwIGCF8N2VjdHpr5SZgDrIlgquK4aH3rmekecq/8e3AhsUYwnNqEHoC ymicL8U6dBXW1jieogiKsM9oDG0GT3I7m0/zHAB4Mj6pLhljM4FjDQY1VYtrx0KLxMwG ML0Q== 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=OSYnrAYqRpcncSRGYvYpIAQ7qeWjiBYPc0LV+x1zpNg=; b=u601WYtVI/vp2PdRxMDV1uxiBaBPHF+i6Izfa1sOcEtfi7HnnBQAv7ho23+wi3OHxm o3XhRug3flu9bYWS9Ed74R5OyExXELMNukH+KUQc1NAeoxjqLV/UiXUWMcK3j29VzGaq VGVKwAwUX63bvEmtqCTDOqknUeIJyXRezOVUtd0LUgDSUz0VmQzuqmmaGBjMX9R75wUs skqEjmHYpg/HX8khAD4O25sAc/jzQoVJoUBmqHqU+7pRlPJjnZpHcv7dQfANcIDtp8oB bvq3OlMYPOsf7ou9Kpop3XJW9twyKI61VrRUx4YNnYKBy9A6x2Z4LTPs/lB1HtN9iOBC l6ag== 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 a13si5609838pfg.61.2018.03.16.07.11.15; Fri, 16 Mar 2018 07:11:29 -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 S1752532AbeCPOKF (ORCPT + 99 others); Fri, 16 Mar 2018 10:10:05 -0400 Received: from newton.telenet-ops.be ([195.130.132.45]:46110 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbeCPOBd (ORCPT ); Fri, 16 Mar 2018 10:01:33 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by newton.telenet-ops.be (Postfix) with ESMTPS id 402n32195QzMqx50 for ; Fri, 16 Mar 2018 14:52:46 +0100 (CET) Received: from ayla.of.borg ([84.194.111.163]) by laurent.telenet-ops.be with bizsmtp id Ndry1x0053XaVaC01dryUT; Fri, 16 Mar 2018 14:52:45 +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-0000Qw-Qs; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001Hd-Ex; 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 18/21] serial: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:51 +0100 Message-Id: <1521208314-4783-19-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 --- v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/tty/serial/Kconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 3682fd3e960cbd64..a0ea146a2ef5af53 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -115,7 +115,6 @@ config SERIAL_SB1250_DUART_CONSOLE config SERIAL_ATMEL bool "AT91 on-chip serial port support" - depends on HAS_DMA depends on ARCH_AT91 || COMPILE_TEST select SERIAL_CORE select SERIAL_MCTRL_GPIO if GPIOLIB @@ -586,7 +585,6 @@ config BFIN_UART3_CTSRTS config SERIAL_IMX tristate "IMX serial port support" - depends on HAS_DMA depends on ARCH_MXC || COMPILE_TEST select SERIAL_CORE select RATIONAL @@ -1436,7 +1434,6 @@ config SERIAL_PCH_UART_CONSOLE config SERIAL_MXS_AUART tristate "MXS AUART support" - depends on HAS_DMA depends on ARCH_MXS || MACH_ASM9260 || COMPILE_TEST select SERIAL_CORE select SERIAL_MCTRL_GPIO if GPIOLIB @@ -1656,7 +1653,6 @@ config SERIAL_SPRD_CONSOLE config SERIAL_STM32 tristate "STMicroelectronics STM32 serial port support" select SERIAL_CORE - depends on HAS_DMA depends on ARCH_STM32 || COMPILE_TEST help This driver is for the on-chip Serial Controller on -- 2.7.4