Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp969941imu; Wed, 16 Jan 2019 10:26:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN5WCCkiGOJ6fBq7DyUGAQ4cVLKa5VjQWjRdCFpnjwnggDhMUtwpfnbEx9bS/v08ds9nGYS6 X-Received: by 2002:a62:cd1:: with SMTP id 78mr11136915pfm.219.1547663209181; Wed, 16 Jan 2019 10:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547663209; cv=none; d=google.com; s=arc-20160816; b=BG2qozZek7hyGts+Oc3QHz1A6aHRtaWmV8dNT/7gqEcxqovQ+kUggTmeuKYYSvZlLQ LhAbJrU5U9u5LdSNZmwtjveDvKxHDnBrLc4sGvG6v3XNHFpTYB54qRTqJPOhVS3tYZg3 mfptFylBWCXstX3sE8Vie6irZv4+X2Tpv4OIMdxSY6X5FxD+8ucPfCJWd7qatVK8ugay 65P3VanMWBebNkPnY4QBlypVFYA//TK7igZ95ZUTZe+c25p0GUi2e74etoGt1HFyS28Z A+YPbVJK7KKLhGZ0hIcFvmt4oLki2Z1cZRKbJpf5W8cmZ91OjtVFoXu9ISD40VYdPrPy hFKw== 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:date:subject:cc:to:from :dkim-signature; bh=ePRRANffvCjiHiv6FsBbr+wmBpF6QbDYYwGweWE2XRw=; b=et9Xcq7V/dHEimhn6SfTXe65XiXsZE9aOvnzgYr29fInBd4bLxiE/EBMKBmzC4N1eh Q4FxyOHFfJZ/eELL+IDRCmpgu78rCTWwK+OC4hJwcfEG6K0nQJoKhZ9jxkn2DdyvrPXU iWnxVw5IM56GALoNweGLVoS913ynSCP8/1E82GlDi9ac7UEG9FR7pHnV1VuUuNcQiNnz eoYbVZ1q8/RMKt1eJScSGr9tLQDhm6kDkwRtDpfOnhcxG0CIJoY/f6/jIuM3DidJFmjt QB8SMV2THZaGOvJ1o35bd1f2h9a/487k4CtI16IoX9UKMhZJ+dbVfGo0E9IbKP4bDpbJ cGsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DF4oTYU9; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si7009593pfb.188.2019.01.16.10.26.33; Wed, 16 Jan 2019 10:26:49 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=DF4oTYU9; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388148AbfAPGtp (ORCPT + 99 others); Wed, 16 Jan 2019 01:49:45 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:55477 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729059AbfAPGtp (ORCPT ); Wed, 16 Jan 2019 01:49:45 -0500 Received: by mail-it1-f194.google.com with SMTP id m62so1476749ith.5 for ; Tue, 15 Jan 2019 22:49:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ePRRANffvCjiHiv6FsBbr+wmBpF6QbDYYwGweWE2XRw=; b=DF4oTYU9lRqaxwpkvnt7zBCsJJR8syFogNjTtf5ZH6D1yQKhiP5wde6ASpNlZUMjlu wpVzwnUDXfM59ptNxKQ8cNgcMyn1XMII6HAI/YUhn1keuRyWbPa/g79aeHZeFDivdNap xenKtTVHRHPSbrQCBXz3TMpJRzQ4P1JQn4+ytJnoWCtTVm4MIHkRJsP2k0zwjlXfeuUl EXCX8oRJ35vGX3LWiR9250JK6DYoFnNtj6I8a1TKV0O6EsplUNye+Xob9Y81rtvPvMQn vlBljS6QyzZ+lXQyoGNYTtZJSXd07MF5RLYcN/mPV9cReE1hA8i61x4MYO/TulapooRj o7Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ePRRANffvCjiHiv6FsBbr+wmBpF6QbDYYwGweWE2XRw=; b=P03lzBi3hnS3UVWGYGh3vf8RzUdI91S0Wr0li0fHA7LbeRyFMICLc1nNpwH0OXhq1E 9jUCY8vtu8E2iCdvt/XFtp3tF3wiCTOnKu41Yc3AQQRyNJrTipnkghWMAStvkb/+u18W cbAjaaLNvmk6AJ1hzyZgMuB1o/J/2NMwA7Uy/o9s3rbnogiXzx2rENjR7dpW6S7u4kOm P3acZS9A7Ihg4gVUG3CHemGwQSOISo1NQNW3W70p/+1Rz0tEIgdTumeAAcu48GVTLxcX dOXa+SMFcA4VC98xf/VFMUQzCqL1GlkTz/D71TFth0sRh5eeYccIeXaVi8QwwJfgl01t 0EuQ== X-Gm-Message-State: AJcUukfLBxEAjGohUlZ9B6SGr7tGnBTwmWxc6SSi1uzSmBE6xResw1XP aBiNKf3qH5M5xpjwy7Qmzts= X-Received: by 2002:a02:284:: with SMTP id 126mr4502520jau.47.1547621383940; Tue, 15 Jan 2019 22:49:43 -0800 (PST) Received: from localhost.localdomain (c-73-242-244-99.hsd1.nm.comcast.net. [73.242.244.99]) by smtp.gmail.com with ESMTPSA id h14sm2113409ior.41.2019.01.15.22.49.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 22:49:43 -0800 (PST) From: George Hilliard To: Greg Kroah-Hartman Cc: George Hilliard , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, NeilBrown , sergio.paracuellos@gmail.com Subject: [PATCH v5] staging: Mediatek: Use individual config flags in Makefile Date: Tue, 15 Jan 2019 23:48:43 -0700 Message-Id: <20190116064842.5911-1-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115174346.GA11832@kroah.com> References: <20190115174346.GA11832@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These drivers can be useful on other MT76xx SoCs, which have compatible peripherals. The drivers were selectable in Kconfig, but they were quietly excluded from the build because the SOC_MT7621 chip was not selected. So, make the Makefiles use the same flags as Kconfig for these drivers. mt7621-dma and mt7621-dts are left alone because they truly do require that SoC. I have personally confirmed that the mt7621-spi driver works on the MT7688, which was what prompted this change. Cc: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org Cc: NeilBrown Cc: sergio.paracuellos@gmail.com Signed-off-by: George Hilliard --- Changelog: v2: - Also make the change for skipped/forgotten drivers such as mt7621-eth v3..v4: - Rebase against staging-testing - Also make the change for new PCIe PHY driver - Slightly change commit wording v5: - Fix dependency issue in mt7621-mmc/Kconfig; it now needs to explicitly depend on RALINK because SOC_MT7621 is not required now - Remove check for nonexistent config MTD_NAND_RALINK from mt7621-mmc/Kconfig drivers/staging/Makefile | 14 +++++++------- drivers/staging/mt7621-mmc/Kconfig | 2 +- drivers/staging/mt7621-pci-phy/Makefile | 2 +- drivers/staging/mt7621-pci/Makefile | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 4d563ed0bc79..cc5530cc996b 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -41,14 +41,14 @@ obj-$(CONFIG_GREYBUS) += greybus/ obj-$(CONFIG_BCM2835_VCHIQ) += vc04_services/ obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/ obj-$(CONFIG_PI433) += pi433/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pci/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pci-phy/ -obj-$(CONFIG_SOC_MT7621) += mt7621-pinctrl/ -obj-$(CONFIG_SOC_MT7621) += mt7621-spi/ +obj-$(CONFIG_PCI_MT7621) += mt7621-pci/ +obj-$(CONFIG_PCI_MT7621_PHY) += mt7621-pci-phy/ +obj-$(CONFIG_PINCTRL_RT2880) += mt7621-pinctrl/ +obj-$(CONFIG_SPI_MT7621) += mt7621-spi/ obj-$(CONFIG_SOC_MT7621) += mt7621-dma/ -obj-$(CONFIG_SOC_MT7621) += ralink-gdma/ -obj-$(CONFIG_SOC_MT7621) += mt7621-mmc/ -obj-$(CONFIG_SOC_MT7621) += mt7621-eth/ +obj-$(CONFIG_DMA_RALINK) += ralink-gdma/ +obj-$(CONFIG_MTK_MMC) += mt7621-mmc/ +obj-$(CONFIG_NET_MEDIATEK_SOC_STAGING) += mt7621-eth/ obj-$(CONFIG_SOC_MT7621) += mt7621-dts/ obj-$(CONFIG_STAGING_GASKET_FRAMEWORK) += gasket/ obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/ diff --git a/drivers/staging/mt7621-mmc/Kconfig b/drivers/staging/mt7621-mmc/Kconfig index c6dfe8c637dc..1eb79cd6e22f 100644 --- a/drivers/staging/mt7621-mmc/Kconfig +++ b/drivers/staging/mt7621-mmc/Kconfig @@ -1,6 +1,6 @@ config MTK_MMC tristate "MTK SD/MMC" - depends on !MTD_NAND_RALINK && MMC + depends on RALINK && MMC config MTK_AEE_KDUMP bool "MTK AEE KDUMP" diff --git a/drivers/staging/mt7621-pci-phy/Makefile b/drivers/staging/mt7621-pci-phy/Makefile index 2b82ccfc28c6..a970056f05c1 100644 --- a/drivers/staging/mt7621-pci-phy/Makefile +++ b/drivers/staging/mt7621-pci-phy/Makefile @@ -1 +1 @@ -obj-$(CONFIG_SOC_MT7621) += pci-mt7621-phy.o +obj-$(CONFIG_PCI_MT7621_PHY) += pci-mt7621-phy.o diff --git a/drivers/staging/mt7621-pci/Makefile b/drivers/staging/mt7621-pci/Makefile index 607b84bedcc3..d4655a726b61 100644 --- a/drivers/staging/mt7621-pci/Makefile +++ b/drivers/staging/mt7621-pci/Makefile @@ -1 +1 @@ -obj-$(CONFIG_SOC_MT7621) += pci-mt7621.o +obj-$(CONFIG_PCI_MT7621) += pci-mt7621.o -- 2.20.1