linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
@ 2013-12-30 21:15 Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data Stephen Boyd
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, Chris Ball,
	Arnd Bergmann, David Brown, Rob Clark, Dave Airlie

These patches allow the DT based MSM platforms to be built as part of the
multi-platform kernel. I need acks from Chris Ball on the mmc patch and
Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
rebased that patch on top of the patchset David sent out (which this is in
reply to). The rebase was fairly minor and the new patch for drm/msm is
trivial. Please consider for v3.14.

Changes since v1:
 * Rebased onto David's v3.14 patchset
 * Picked up acks
 * New patch for drm/msm driver

Ivan T. Ivanov (1):
  usb: phy: msm: Move mach dependent code to platform data

Stephen Boyd (6):
  mmc: msm_sdcc: Limit driver to platforms that use it
  tty: serial: Limit msm_serial_hs driver to platforms that use it
  ARM: msm: Only build clock.c on proc_comm based platforms
  ARM: msm: Only build timer.c if required
  drm/msm: Drop unnecessary mach include
  ARM: msm: Move MSM's DT based hardware to multi-platform support

 arch/arm/Kconfig                            |  4 +-
 arch/arm/mach-msm/Kconfig                   | 85 ++++++++++++++++-------------
 arch/arm/mach-msm/Makefile                  |  4 +-
 arch/arm/mach-msm/board-msm7x30.c           | 35 ++++++++++++
 arch/arm/mach-msm/board-qsd8x50.c           | 35 ++++++++++++
 drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c |  2 -
 drivers/mmc/host/Kconfig                    |  2 +-
 drivers/tty/serial/Kconfig                  |  2 +-
 drivers/usb/phy/phy-msm-usb.c               | 35 +++++-------
 include/linux/usb/msm_hsusb.h               |  3 +
 10 files changed, 142 insertions(+), 65 deletions(-)

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 2/7] mmc: msm_sdcc: Limit driver to platforms that use it Stephen Boyd
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm
  Cc: Ivan T. Ivanov, linux-kernel, linux-arm-msm, linux-arm-kernel,
	David Brown, Daniel Walker, Greg Kroah-Hartman

From: "Ivan T. Ivanov" <iivanov@mm-sol.com>

This patch fix compilation error when driver is compiled
in multi-platform builds.

drivers/built-in.o: In function `msm_otg_link_clk_reset':
./drivers/usb/phy/phy-msm-usb.c:314: undefined reference to `clk_reset'
./drivers/usb/phy/phy-msm-usb.c:318: undefined reference to `clk_reset'

Use platform data supplied reset handlers and adjust error
messages reported when reset sequence fail.

This is an intermediate step before adding support for reset
framework and newer targets.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/mach-msm/board-msm7x30.c | 35 +++++++++++++++++++++++++++++++++++
 arch/arm/mach-msm/board-qsd8x50.c | 35 +++++++++++++++++++++++++++++++++++
 drivers/usb/phy/phy-msm-usb.c     | 35 +++++++++++++++--------------------
 include/linux/usb/msm_hsusb.h     |  3 +++
 4 files changed, 88 insertions(+), 20 deletions(-)

diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c
index f9af5a4..46de789 100644
--- a/arch/arm/mach-msm/board-msm7x30.c
+++ b/arch/arm/mach-msm/board-msm7x30.c
@@ -30,6 +30,7 @@
 #include <asm/memory.h>
 #include <asm/setup.h>
 
+#include <mach/clk.h>
 #include <mach/msm_iomap.h>
 #include <mach/dma.h>
 
@@ -60,10 +61,44 @@ static int hsusb_phy_init_seq[] = {
 	-1
 };
 
+static int hsusb_link_clk_reset(struct clk *link_clk, bool assert)
+{
+	int ret;
+
+	if (assert) {
+		ret = clk_reset(link_clk, CLK_RESET_ASSERT);
+		if (ret)
+			pr_err("usb hs_clk assert failed\n");
+	} else {
+		ret = clk_reset(link_clk, CLK_RESET_DEASSERT);
+		if (ret)
+			pr_err("usb hs_clk deassert failed\n");
+	}
+	return ret;
+}
+
+static int hsusb_phy_clk_reset(struct clk *phy_clk)
+{
+	int ret;
+
+	ret = clk_reset(phy_clk, CLK_RESET_ASSERT);
+	if (ret) {
+		pr_err("usb phy clk assert failed\n");
+		return ret;
+	}
+	usleep_range(10000, 12000);
+	ret = clk_reset(phy_clk, CLK_RESET_DEASSERT);
+	if (ret)
+		pr_err("usb phy clk deassert failed\n");
+	return ret;
+}
+
 static struct msm_otg_platform_data msm_otg_pdata = {
 	.phy_init_seq		= hsusb_phy_init_seq,
 	.mode                   = USB_PERIPHERAL,
 	.otg_control		= OTG_PHY_CONTROL,
+	.link_clk_reset		= hsusb_link_clk_reset,
+	.phy_clk_reset		= hsusb_phy_clk_reset,
 };
 
 struct msm_gpiomux_config msm_gpiomux_configs[GPIOMUX_NGPIOS] = {
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c
index 5f933bc..9169ec3 100644
--- a/arch/arm/mach-msm/board-qsd8x50.c
+++ b/arch/arm/mach-msm/board-qsd8x50.c
@@ -31,6 +31,7 @@
 #include <mach/irqs.h>
 #include <mach/sirc.h>
 #include <mach/vreg.h>
+#include <mach/clk.h>
 #include <linux/platform_data/mmc-msm_sdcc.h>
 
 #include "devices.h"
@@ -81,10 +82,44 @@ static int hsusb_phy_init_seq[] = {
 	-1
 };
 
+static int hsusb_link_clk_reset(struct clk *link_clk, bool assert)
+{
+	int ret;
+
+	if (assert) {
+		ret = clk_reset(link_clk, CLK_RESET_ASSERT);
+		if (ret)
+			pr_err("usb hs_clk assert failed\n");
+	} else {
+		ret = clk_reset(link_clk, CLK_RESET_DEASSERT);
+		if (ret)
+			pr_err("usb hs_clk deassert failed\n");
+	}
+	return ret;
+}
+
+static int hsusb_phy_clk_reset(struct clk *phy_clk)
+{
+	int ret;
+
+	ret = clk_reset(phy_clk, CLK_RESET_ASSERT);
+	if (ret) {
+		pr_err("usb phy clk assert failed\n");
+		return ret;
+	}
+	usleep_range(10000, 12000);
+	ret = clk_reset(phy_clk, CLK_RESET_DEASSERT);
+	if (ret)
+		pr_err("usb phy clk deassert failed\n");
+	return ret;
+}
+
 static struct msm_otg_platform_data msm_otg_pdata = {
 	.phy_init_seq		= hsusb_phy_init_seq,
 	.mode                   = USB_PERIPHERAL,
 	.otg_control		= OTG_PHY_CONTROL,
+	.link_clk_reset		= hsusb_link_clk_reset,
+	.phy_clk_reset		= hsusb_phy_clk_reset,
 };
 
 static struct platform_device *devices[] __initdata = {
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
index e9d4cd9..9a47d44 100644
--- a/drivers/usb/phy/phy-msm-usb.c
+++ b/drivers/usb/phy/phy-msm-usb.c
@@ -40,8 +40,6 @@
 #include <linux/usb/msm_hsusb_hw.h>
 #include <linux/regulator/consumer.h>
 
-#include <mach/clk.h>
-
 #define MSM_USB_BASE	(motg->regs)
 #define DRIVER_NAME	"msm_otg"
 
@@ -308,33 +306,30 @@ static void ulpi_init(struct msm_otg *motg)
 
 static int msm_otg_link_clk_reset(struct msm_otg *motg, bool assert)
 {
-	int ret;
+	int ret = 0;
+
+	if (!motg->pdata->link_clk_reset)
+		return ret;
+
+	ret = motg->pdata->link_clk_reset(motg->clk, assert);
+	if (ret)
+		dev_err(motg->phy.dev, "usb link clk reset %s failed\n",
+			assert ? "assert" : "deassert");
 
-	if (assert) {
-		ret = clk_reset(motg->clk, CLK_RESET_ASSERT);
-		if (ret)
-			dev_err(motg->phy.dev, "usb hs_clk assert failed\n");
-	} else {
-		ret = clk_reset(motg->clk, CLK_RESET_DEASSERT);
-		if (ret)
-			dev_err(motg->phy.dev, "usb hs_clk deassert failed\n");
-	}
 	return ret;
 }
 
 static int msm_otg_phy_clk_reset(struct msm_otg *motg)
 {
-	int ret;
+	int ret = 0;
 
-	ret = clk_reset(motg->phy_reset_clk, CLK_RESET_ASSERT);
-	if (ret) {
-		dev_err(motg->phy.dev, "usb phy clk assert failed\n");
+	if (!motg->pdata->phy_clk_reset)
 		return ret;
-	}
-	usleep_range(10000, 12000);
-	ret = clk_reset(motg->phy_reset_clk, CLK_RESET_DEASSERT);
+
+	ret = motg->pdata->phy_clk_reset(motg->phy_reset_clk);
 	if (ret)
-		dev_err(motg->phy.dev, "usb phy clk deassert failed\n");
+		dev_err(motg->phy.dev, "usb phy clk reset failed\n");
+
 	return ret;
 }
 
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h
index 22a396c..3275483 100644
--- a/include/linux/usb/msm_hsusb.h
+++ b/include/linux/usb/msm_hsusb.h
@@ -20,6 +20,7 @@
 
 #include <linux/types.h>
 #include <linux/usb/otg.h>
+#include <linux/clk.h>
 
 /**
  * Supported USB modes
@@ -135,6 +136,8 @@ struct msm_otg_platform_data {
 	enum msm_usb_phy_type phy_type;
 	void (*setup_gpio)(enum usb_otg_state state);
 	char *pclk_src_name;
+	int (*link_clk_reset)(struct clk *link_clk, bool assert);
+	int (*phy_clk_reset)(struct clk *phy_clk);
 };
 
 /**
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 2/7] mmc: msm_sdcc: Limit driver to platforms that use it
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 3/7] tty: serial: Limit msm_serial_hs " Stephen Boyd
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown, Chris Ball

The msm_sdcc driver uses mach specific dma APIs. This is not
compatible with the multi-platform ARM effort. Let's only compile
this driver on MSM devices that are prepared to support it,
allowing the DT based MSM devices to enter the multi-platform ARM
build.

Cc: Chris Ball <cjb@laptop.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 drivers/mmc/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 7fc5099..4e8ca9d 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -324,7 +324,7 @@ config MMC_ATMELMCI
 
 config MMC_MSM
 	tristate "Qualcomm SDCC Controller Support"
-	depends on MMC && ARCH_MSM
+	depends on MMC && (ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50)
 	help
 	  This provides support for the SD/MMC cell found in the
 	  MSM and QSD SOCs from Qualcomm. The controller also has
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 2/7] mmc: msm_sdcc: Limit driver to platforms that use it Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2014-01-02 18:10   ` Arnd Bergmann
  2013-12-30 21:15 ` [PATCH v2 4/7] ARM: msm: Only build clock.c on proc_comm based platforms Stephen Boyd
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown

The msm_serial_hs driver uses mach specific dma APIs. This is not
compatible with the multi-platform ARM effort. Let's only compile
this driver on MSM devices that are prepared to support it;
allowing the DT based MSM devices to enter the multi-platform ARM
build.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 drivers/tty/serial/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index a3817ab..a53159c 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1035,7 +1035,7 @@ config SERIAL_MSM_CONSOLE
 
 config SERIAL_MSM_HS
 	tristate "MSM UART High Speed: Serial Driver"
-	depends on ARCH_MSM
+	depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
 	select SERIAL_CORE
 	help
 	  If you have a machine based on MSM family of SoCs, you
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 4/7] ARM: msm: Only build clock.c on proc_comm based platforms
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (2 preceding siblings ...)
  2013-12-30 21:15 ` [PATCH v2 3/7] tty: serial: Limit msm_serial_hs " Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 5/7] ARM: msm: Only build timer.c if required Stephen Boyd
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm; +Cc: linux-arm-msm, David Brown, linux-kernel, linux-arm-kernel

The functionality provided by clock.c in mach-msm is only needed
on proc_comm based platforms. Only build the file if proc_comm is
enabled. This prevents compile failures for platforms that are
part of the multi-platform kernel.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/mach-msm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index 7ed4c1b..6baae6e 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -1,5 +1,5 @@
 obj-y += timer.o
-obj-y += clock.o
+obj-$(CONFIG_MSM_PROC_COMM) += clock.o
 
 obj-$(CONFIG_MSM_VIC) += irq-vic.o
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 5/7] ARM: msm: Only build timer.c if required
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (3 preceding siblings ...)
  2013-12-30 21:15 ` [PATCH v2 4/7] ARM: msm: Only build clock.c on proc_comm based platforms Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:15 ` [PATCH v2 6/7] drm/msm: Drop unnecessary mach include Stephen Boyd
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm; +Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown

The MSM timer is only used on MSM devices that don't have the
architected timers. Introduce a hidden Kconfig option for this
driver so that we don't build it on the platforms that don't need
it.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/mach-msm/Kconfig  | 9 +++++++++
 arch/arm/mach-msm/Makefile | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 702553b..ff69e1c 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -16,6 +16,7 @@ config ARCH_MSM7X00A
 	select MACH_TROUT if !MACH_HALIBUT
 	select MSM_PROC_COMM
 	select MSM_SMD
+	select MSM_TIMER
 	select MSM_SMD_PKG3
 
 config ARCH_MSM7X30
@@ -27,6 +28,7 @@ config ARCH_MSM7X30
 	select MSM_GPIOMUX
 	select MSM_PROC_COMM
 	select MSM_SMD
+	select MSM_TIMER
 	select MSM_VIC
 
 config ARCH_QSD8X50
@@ -38,6 +40,7 @@ config ARCH_QSD8X50
 	select MSM_GPIOMUX
 	select MSM_PROC_COMM
 	select MSM_SMD
+	select MSM_TIMER
 	select MSM_VIC
 
 endchoice
@@ -50,6 +53,7 @@ config ARCH_MSM8X60
 	select GPIO_MSM_V2
 	select HAVE_SMP
 	select MSM_SCM if SMP
+	select MSM_TIMER
 
 config ARCH_MSM8960
 	bool "MSM8960"
@@ -59,6 +63,7 @@ config ARCH_MSM8960
 	select HAVE_SMP
 	select GPIO_MSM_V2
 	select MSM_SCM if SMP
+	select MSM_TIMER
 
 config ARCH_MSM8974
 	bool "MSM8974"
@@ -145,4 +150,8 @@ config MSM_GPIOMUX
 
 config MSM_SCM
 	bool
+
+config MSM_TIMER
+	bool
+
 endif
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index 6baae6e..8e307a10 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -1,4 +1,4 @@
-obj-y += timer.o
+obj-$(CONFIG_MSM_TIMER) += timer.o
 obj-$(CONFIG_MSM_PROC_COMM) += clock.o
 
 obj-$(CONFIG_MSM_VIC) += irq-vic.o
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (4 preceding siblings ...)
  2013-12-30 21:15 ` [PATCH v2 5/7] ARM: msm: Only build timer.c if required Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:20   ` Stephen Boyd
  2013-12-31  1:12   ` Rob Clark
  2013-12-30 21:15 ` [PATCH v2 7/7] ARM: msm: Move MSM's DT based hardware to multi-platform support Stephen Boyd
                   ` (2 subsequent siblings)
  8 siblings, 2 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown,
	Rob Clark, Dave Airlie

This file doesn't use the clk_reset() API that is exposed in
mach-msm's mach/clk.h file. Remove the include so that this
driver can be compiled as part of the multi-platform kernel.

Cc: Rob Clark <robdclark@gmail.com>
Cc: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
index 5e0dcae..3799ccc 100644
--- a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
+++ b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
@@ -15,8 +15,6 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <mach/clk.h>
-
 #include "mdp4_kms.h"
 
 #include "drm_crtc.h"
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 7/7] ARM: msm: Move MSM's DT based hardware to multi-platform support
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (5 preceding siblings ...)
  2013-12-30 21:15 ` [PATCH v2 6/7] drm/msm: Drop unnecessary mach include Stephen Boyd
@ 2013-12-30 21:15 ` Stephen Boyd
  2013-12-30 21:17 ` [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
  2014-01-02 18:13 ` Arnd Bergmann
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:15 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown,
	Arnd Bergmann

The DT based MSM platforms can join the multi-platform builds, so
introduce a DT based ARCH_MSM option. This option allows DT based
MSM platforms to be built into the multi-platform kernel. Also
introduce a hidden ARCH_MSM config that both the DT and non-DT
platform support code select to avoid churn in places that depend
on CONFIG_ARCH_MSM.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---

Arnd acked v1 but this is slightly different due to 8974 coming in.

 arch/arm/Kconfig          |  4 +--
 arch/arm/mach-msm/Kconfig | 80 ++++++++++++++++++++++++-----------------------
 2 files changed, 43 insertions(+), 41 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c1f1a7e..7803a13 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -631,10 +631,10 @@ config ARCH_PXA
 	help
 	  Support for Intel/Marvell's PXA2xx/PXA3xx processor line.
 
-config ARCH_MSM
+config ARCH_MSM_NODT
 	bool "Qualcomm MSM"
+	select ARCH_MSM
 	select ARCH_REQUIRE_GPIOLIB
-	select CLKSRC_OF if OF
 	select COMMON_CLK
 	select GENERIC_CLOCKEVENTS
 	help
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index ff69e1c..9625cf3 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -1,12 +1,50 @@
+config ARCH_MSM
+	bool
+
+config ARCH_MSM_DT
+	bool "Qualcomm MSM DT Support" if ARCH_MULTI_V7
+	select ARCH_MSM
+	select ARCH_REQUIRE_GPIOLIB
+	select CLKSRC_OF
+	select GENERIC_CLOCKEVENTS
+	help
+	  Support for Qualcomm's devicetree based MSM systems.
+
 if ARCH_MSM
 
-comment "Qualcomm MSM SoC Type"
+menu "Qualcomm MSM SoC Selection"
 	depends on ARCH_MSM_DT
 
+config ARCH_MSM8X60
+	bool "Enable support for MSM8X60"
+	select ARM_GIC
+	select CPU_V7
+	select HAVE_SMP
+	select MSM_SCM if SMP
+	select MSM_TIMER
+
+config ARCH_MSM8960
+	bool "Enable support for MSM8960"
+	select ARM_GIC
+	select CPU_V7
+	select HAVE_SMP
+	select MSM_SCM if SMP
+	select MSM_TIMER
+
+config ARCH_MSM8974
+	bool "Enable support for MSM8974"
+	select ARM_GIC
+	select CPU_V7
+	select HAVE_ARM_ARCH_TIMER
+	select HAVE_SMP
+	select MSM_SCM if SMP
+
+endmenu
+
 choice
 	prompt "Qualcomm MSM SoC Type"
 	default ARCH_MSM7X00A
-	depends on !ARCH_MSM_DT
+	depends on ARCH_MSM_NODT
 
 config ARCH_MSM7X00A
 	bool "MSM7x00A / MSM7x01A"
@@ -45,41 +83,6 @@ config ARCH_QSD8X50
 
 endchoice
 
-config ARCH_MSM8X60
-	bool "MSM8X60"
-	select ARCH_MSM_DT
-	select ARM_GIC
-	select CPU_V7
-	select GPIO_MSM_V2
-	select HAVE_SMP
-	select MSM_SCM if SMP
-	select MSM_TIMER
-
-config ARCH_MSM8960
-	bool "MSM8960"
-	select ARCH_MSM_DT
-	select ARM_GIC
-	select CPU_V7
-	select HAVE_SMP
-	select GPIO_MSM_V2
-	select MSM_SCM if SMP
-	select MSM_TIMER
-
-config ARCH_MSM8974
-	bool "MSM8974"
-	select ARCH_MSM_DT
-	select ARM_GIC
-	select CPU_V7
-	select HAVE_ARM_ARCH_TIMER
-	select HAVE_SMP
-	select MSM_SCM if SMP
-	select USE_OF
-
-config ARCH_MSM_DT
-	bool
-	select SPARSE_IRQ
-	select USE_OF
-
 config MSM_HAS_DEBUG_UART_HS
 	bool
 
@@ -96,7 +99,7 @@ config  MSM_VIC
 	bool
 
 menu "Qualcomm MSM Board Type"
-	depends on !ARCH_MSM_DT
+	depends on ARCH_MSM_NODT
 
 config MACH_HALIBUT
 	depends on ARCH_MSM
@@ -144,7 +147,6 @@ config MSM_SMD
 
 config MSM_GPIOMUX
 	bool
-	depends on !ARCH_MSM_DT
 	help
 	  Support for MSM V1 TLMM GPIOMUX architecture.
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (6 preceding siblings ...)
  2013-12-30 21:15 ` [PATCH v2 7/7] ARM: msm: Move MSM's DT based hardware to multi-platform support Stephen Boyd
@ 2013-12-30 21:17 ` Stephen Boyd
  2014-01-02 18:13 ` Arnd Bergmann
  8 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:17 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, Chris Ball,
	Arnd Bergmann, David Brown, Rob Clark, Dave Airlie

On 12/30/13 13:15, Stephen Boyd wrote:
> These patches allow the DT based MSM platforms to be built as part of the
> multi-platform kernel. I need acks from Chris Ball on the mmc patch and
> Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
> rebased that patch on top of the patchset David sent out (which this is in
> reply to). 

Forgot to add --in-reply-to. This is on top of these patches:

Subject: [PATCH 0/7] MSM patches for 3.14
Date:	Fri, 20 Dec 2013 11:09:13 -0800
Message-Id: <1387566560-23948-1-git-send-email-davidb@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-30 21:15 ` [PATCH v2 6/7] drm/msm: Drop unnecessary mach include Stephen Boyd
@ 2013-12-30 21:20   ` Stephen Boyd
  2013-12-31  1:12   ` Rob Clark
  1 sibling, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2013-12-30 21:20 UTC (permalink / raw)
  To: arm
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, David Brown,
	Rob Clark, Dave Airlie

On 12/30/13 13:15, Stephen Boyd wrote:
> This file doesn't use the clk_reset() API that is exposed in
> mach-msm's mach/clk.h file. Remove the include so that this
> driver can be compiled as part of the multi-platform kernel.
>
> Cc: Rob Clark <robdclark@gmail.com>
> Cc: Dave Airlie <airlied@redhat.com>

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

> ---
>  drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> index 5e0dcae..3799ccc 100644
> --- a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> +++ b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> @@ -15,8 +15,6 @@
>   * this program.  If not, see <http://www.gnu.org/licenses/>.
>   */
>  
> -#include <mach/clk.h>
> -
>  #include "mdp4_kms.h"
>  
>  #include "drm_crtc.h"


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-30 21:15 ` [PATCH v2 6/7] drm/msm: Drop unnecessary mach include Stephen Boyd
  2013-12-30 21:20   ` Stephen Boyd
@ 2013-12-31  1:12   ` Rob Clark
  2013-12-31  1:19     ` Rob Clark
  1 sibling, 1 reply; 22+ messages in thread
From: Rob Clark @ 2013-12-31  1:12 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: linux-arm-msm, Linux Kernel Mailing List, dri-devel, arm,
	Dave Airlie, David Brown, linux-arm-kernel

On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> This file doesn't use the clk_reset() API that is exposed in
> mach-msm's mach/clk.h file. Remove the include so that this
> driver can be compiled as part of the multi-platform kernel.

Thanks!

Signed-off-by: Rob Clark <robdclark@gmail.com>


> Cc: Rob Clark <robdclark@gmail.com>
> Cc: Dave Airlie <airlied@redhat.com>
> ---
>  drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> index 5e0dcae..3799ccc 100644
> --- a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> +++ b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
> @@ -15,8 +15,6 @@
>   * this program.  If not, see <http://www.gnu.org/licenses/>.
>   */
>
> -#include <mach/clk.h>
> -
>  #include "mdp4_kms.h"
>
>  #include "drm_crtc.h"
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-31  1:12   ` Rob Clark
@ 2013-12-31  1:19     ` Rob Clark
  2013-12-31  5:15       ` Stephen Boyd
  0 siblings, 1 reply; 22+ messages in thread
From: Rob Clark @ 2013-12-31  1:19 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: arm, Linux Kernel Mailing List, linux-arm-msm, linux-arm-kernel,
	David Brown, Dave Airlie, dri-devel

On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark <robdclark@gmail.com> wrote:
> On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
>> This file doesn't use the clk_reset() API that is exposed in
>> mach-msm's mach/clk.h file. Remove the include so that this
>> driver can be compiled as part of the multi-platform kernel.
>
> Thanks!
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>

oh, fwiw, things are a bit re-arranged on msm-next-staging (to add
8074 and 8060a support).. currently I have:

------------------
#if defined(CONFIG_ARCH_MSM)
#  include <mach/clk.h>
#elif defined(CONFIG_COMPILE_TEST)
/* stubs we need for compile-test: */
static inline struct device *msm_iommu_get_ctx(const char *ctx_name)
{
        return NULL;
}
#endif
------------------

Not really sure what to do about msm_iommu_get_ctx(), or whether I
still need that?

BR,
-R


>
>
>> Cc: Rob Clark <robdclark@gmail.com>
>> Cc: Dave Airlie <airlied@redhat.com>
>> ---
>>  drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
>> index 5e0dcae..3799ccc 100644
>> --- a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
>> +++ b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
>> @@ -15,8 +15,6 @@
>>   * this program.  If not, see <http://www.gnu.org/licenses/>.
>>   */
>>
>> -#include <mach/clk.h>
>> -
>>  #include "mdp4_kms.h"
>>
>>  #include "drm_crtc.h"
>> --
>> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
>> hosted by The Linux Foundation
>>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-31  1:19     ` Rob Clark
@ 2013-12-31  5:15       ` Stephen Boyd
  2014-01-09  8:13         ` Olof Johansson
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Boyd @ 2013-12-31  5:15 UTC (permalink / raw)
  To: Rob Clark
  Cc: arm, Linux Kernel Mailing List, linux-arm-msm, linux-arm-kernel,
	David Brown, Dave Airlie, dri-devel

On 12/30, Rob Clark wrote:
> On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark <robdclark@gmail.com> wrote:
> > On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> >> This file doesn't use the clk_reset() API that is exposed in
> >> mach-msm's mach/clk.h file. Remove the include so that this
> >> driver can be compiled as part of the multi-platform kernel.
> >
> > Thanks!
> >
> > Signed-off-by: Rob Clark <robdclark@gmail.com>

I think you mean Acked-by? Signed-off-by usually means you're
sending the patch along.

> 
> oh, fwiw, things are a bit re-arranged on msm-next-staging (to add
> 8074 and 8060a support).. currently I have:
> 
> ------------------
> #if defined(CONFIG_ARCH_MSM)
> #  include <mach/clk.h>
> #elif defined(CONFIG_COMPILE_TEST)
> /* stubs we need for compile-test: */
> static inline struct device *msm_iommu_get_ctx(const char *ctx_name)
> {
>         return NULL;
> }
> #endif
> ------------------
> 
> Not really sure what to do about msm_iommu_get_ctx(), or whether I
> still need that?
> 

I think the drm Kconfig should be selecting the MSM iommu Kconfig
symbol. At least for now, it's a direct compile time dependency
of this driver. I still don't see a use of mach/clk.h though, so
we should be able to drop it completely.

Is your msm-next-staging tree going into v3.14? I don't see
anything in linux-next so far.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it
  2013-12-30 21:15 ` [PATCH v2 3/7] tty: serial: Limit msm_serial_hs " Stephen Boyd
@ 2014-01-02 18:10   ` Arnd Bergmann
  2014-01-02 20:20     ` Stephen Boyd
  0 siblings, 1 reply; 22+ messages in thread
From: Arnd Bergmann @ 2014-01-02 18:10 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Stephen Boyd, arm, linux-arm-msm, David Brown, linux-kernel

On Monday 30 December 2013, Stephen Boyd wrote:
> The msm_serial_hs driver uses mach specific dma APIs. This is not
> compatible with the multi-platform ARM effort. Let's only compile
> this driver on MSM devices that are prepared to support it;
> allowing the DT based MSM devices to enter the multi-platform ARM
> build.
> 
> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Do you have a plan to deal with this in the future? Aren't you going
to need it in the future on modern SoCs?

	Arnd

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
  2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
                   ` (7 preceding siblings ...)
  2013-12-30 21:17 ` [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
@ 2014-01-02 18:13 ` Arnd Bergmann
  2014-01-03 18:51   ` Stephen Boyd
  8 siblings, 1 reply; 22+ messages in thread
From: Arnd Bergmann @ 2014-01-02 18:13 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Stephen Boyd, arm, linux-arm-msm, linux-kernel, Rob Clark,
	Dave Airlie, David Brown, Chris Ball

On Monday 30 December 2013, Stephen Boyd wrote:
> These patches allow the DT based MSM platforms to be built as part of the
> multi-platform kernel. I need acks from Chris Ball on the mmc patch and
> Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
> rebased that patch on top of the patchset David sent out (which this is in
> reply to). The rebase was fairly minor and the new patch for drm/msm is
> trivial. Please consider for v3.14.

Just for the record, I'm definitely happy with the way this is turning out,
don't see my question on the serial driver as a NAK. I assume we will apply
the patches for 3.14, but I first want to have a better understanding on
where we are with the stuff that is already queued up for 3.14.

	Arnd

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it
  2014-01-02 18:10   ` Arnd Bergmann
@ 2014-01-02 20:20     ` Stephen Boyd
  2014-01-02 20:26       ` Arnd Bergmann
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Boyd @ 2014-01-02 20:20 UTC (permalink / raw)
  To: Arnd Bergmann, linux-arm-kernel
  Cc: arm, linux-arm-msm, David Brown, linux-kernel

On 01/02/14 10:10, Arnd Bergmann wrote:
> On Monday 30 December 2013, Stephen Boyd wrote:
>> The msm_serial_hs driver uses mach specific dma APIs. This is not
>> compatible with the multi-platform ARM effort. Let's only compile
>> this driver on MSM devices that are prepared to support it;
>> allowing the DT based MSM devices to enter the multi-platform ARM
>> build.
>>
>> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> Do you have a plan to deal with this in the future? Aren't you going
> to need it in the future on modern SoCs?
>

Yes, we plan to add the code for dma based serial devices into the
msm_serial.c driver. In the process we'll use the linux DMA apis instead
of using mach specific ones.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 3/7] tty: serial: Limit msm_serial_hs driver to platforms that use it
  2014-01-02 20:20     ` Stephen Boyd
@ 2014-01-02 20:26       ` Arnd Bergmann
  0 siblings, 0 replies; 22+ messages in thread
From: Arnd Bergmann @ 2014-01-02 20:26 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: linux-arm-kernel, arm, linux-arm-msm, David Brown, linux-kernel

On Thursday 02 January 2014 12:20:21 Stephen Boyd wrote:
> Yes, we plan to add the code for dma based serial devices into the
> msm_serial.c driver. In the process we'll use the linux DMA apis instead
> of using mach specific ones.

Ok, very good.

	Arnd

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
  2014-01-02 18:13 ` Arnd Bergmann
@ 2014-01-03 18:51   ` Stephen Boyd
  2014-01-03 19:31     ` Olof Johansson
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Boyd @ 2014-01-03 18:51 UTC (permalink / raw)
  To: Arnd Bergmann, linux-arm-kernel
  Cc: arm, linux-arm-msm, linux-kernel, Rob Clark, Dave Airlie,
	David Brown, Chris Ball

On 01/02/14 10:13, Arnd Bergmann wrote:
> On Monday 30 December 2013, Stephen Boyd wrote:
>> These patches allow the DT based MSM platforms to be built as part of the
>> multi-platform kernel. I need acks from Chris Ball on the mmc patch and
>> Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
>> rebased that patch on top of the patchset David sent out (which this is in
>> reply to). The rebase was fairly minor and the new patch for drm/msm is
>> trivial. Please consider for v3.14.
> Just for the record, I'm definitely happy with the way this is turning out,
> don't see my question on the serial driver as a NAK. I assume we will apply
> the patches for 3.14, but I first want to have a better understanding on
> where we are with the stuff that is already queued up for 3.14.
>

It would be great if we could get these patches in for 3.14. Now that
Olof has applied the collection of patches that David sent, these
patches should apply cleanly on top of arm-soc.git qcom/soc. Can you
apply them directly to the arm-soc tree?

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
  2014-01-03 18:51   ` Stephen Boyd
@ 2014-01-03 19:31     ` Olof Johansson
  2014-01-09  8:11       ` Olof Johansson
  0 siblings, 1 reply; 22+ messages in thread
From: Olof Johansson @ 2014-01-03 19:31 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Arnd Bergmann, linux-arm-kernel, arm, linux-arm-msm,
	linux-kernel, Rob Clark, Dave Airlie, David Brown, Chris Ball

On Fri, Jan 3, 2014 at 10:51 AM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> On 01/02/14 10:13, Arnd Bergmann wrote:
>> On Monday 30 December 2013, Stephen Boyd wrote:
>>> These patches allow the DT based MSM platforms to be built as part of the
>>> multi-platform kernel. I need acks from Chris Ball on the mmc patch and
>>> Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
>>> rebased that patch on top of the patchset David sent out (which this is in
>>> reply to). The rebase was fairly minor and the new patch for drm/msm is
>>> trivial. Please consider for v3.14.
>> Just for the record, I'm definitely happy with the way this is turning out,
>> don't see my question on the serial driver as a NAK. I assume we will apply
>> the patches for 3.14, but I first want to have a better understanding on
>> where we are with the stuff that is already queued up for 3.14.
>>
>
> It would be great if we could get these patches in for 3.14. Now that
> Olof has applied the collection of patches that David sent, these
> patches should apply cleanly on top of arm-soc.git qcom/soc. Can you
> apply them directly to the arm-soc tree?

Yeah, we'll get to it in a bit.


-Olof

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform
  2014-01-03 19:31     ` Olof Johansson
@ 2014-01-09  8:11       ` Olof Johansson
  0 siblings, 0 replies; 22+ messages in thread
From: Olof Johansson @ 2014-01-09  8:11 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Arnd Bergmann, linux-arm-kernel, arm, linux-arm-msm,
	linux-kernel, Rob Clark, Dave Airlie, David Brown, Chris Ball

On Fri, Jan 03, 2014 at 11:31:46AM -0800, Olof Johansson wrote:
> On Fri, Jan 3, 2014 at 10:51 AM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> > On 01/02/14 10:13, Arnd Bergmann wrote:
> >> On Monday 30 December 2013, Stephen Boyd wrote:
> >>> These patches allow the DT based MSM platforms to be built as part of the
> >>> multi-platform kernel. I need acks from Chris Ball on the mmc patch and
> >>> Rob/Dave on the drm patch. I dropped Arnd's ack on patch 6 because I've
> >>> rebased that patch on top of the patchset David sent out (which this is in
> >>> reply to). The rebase was fairly minor and the new patch for drm/msm is
> >>> trivial. Please consider for v3.14.
> >> Just for the record, I'm definitely happy with the way this is turning out,
> >> don't see my question on the serial driver as a NAK. I assume we will apply
> >> the patches for 3.14, but I first want to have a better understanding on
> >> where we are with the stuff that is already queued up for 3.14.
> >>
> >
> > It would be great if we could get these patches in for 3.14. Now that
> > Olof has applied the collection of patches that David sent, these
> > patches should apply cleanly on top of arm-soc.git qcom/soc. Can you
> > apply them directly to the arm-soc tree?
> 
> Yeah, we'll get to it in a bit.

Ok, I've applied all but the DRM patch since Rob needed that respun. It should
probably be merged through the DRM tree given the conflicts.


-Olof

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2013-12-31  5:15       ` Stephen Boyd
@ 2014-01-09  8:13         ` Olof Johansson
  2014-01-09 18:40           ` Stephen Boyd
  0 siblings, 1 reply; 22+ messages in thread
From: Olof Johansson @ 2014-01-09  8:13 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Rob Clark, arm, Linux Kernel Mailing List, linux-arm-msm,
	linux-arm-kernel, David Brown, Dave Airlie, dri-devel

On Mon, Dec 30, 2013 at 09:15:58PM -0800, Stephen Boyd wrote:
> On 12/30, Rob Clark wrote:
> > On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark <robdclark@gmail.com> wrote:
> > > On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> > >> This file doesn't use the clk_reset() API that is exposed in
> > >> mach-msm's mach/clk.h file. Remove the include so that this
> > >> driver can be compiled as part of the multi-platform kernel.
> > >
> > > Thanks!
> > >
> > > Signed-off-by: Rob Clark <robdclark@gmail.com>
> 
> I think you mean Acked-by? Signed-off-by usually means you're
> sending the patch along.

I've held off applying this, but I have applied the others -- please
merge this through the DRM tree since it will need to go on top of
changes there.

That also means that enabling the MSM DTM driver in a multiplatform
kernel will cause build breakages until the equivalent patch has been
picked up. Since it's not enabled by any defconfigs I'm not too worried,
but it will show up on randconfigs.


-Olof

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 6/7] drm/msm: Drop unnecessary mach include
  2014-01-09  8:13         ` Olof Johansson
@ 2014-01-09 18:40           ` Stephen Boyd
  0 siblings, 0 replies; 22+ messages in thread
From: Stephen Boyd @ 2014-01-09 18:40 UTC (permalink / raw)
  To: Olof Johansson
  Cc: Rob Clark, arm, Linux Kernel Mailing List, linux-arm-msm,
	linux-arm-kernel, David Brown, Dave Airlie, dri-devel

On 01/09/14 00:13, Olof Johansson wrote:
> On Mon, Dec 30, 2013 at 09:15:58PM -0800, Stephen Boyd wrote:
>> On 12/30, Rob Clark wrote:
>>> On Mon, Dec 30, 2013 at 8:12 PM, Rob Clark <robdclark@gmail.com> wrote:
>>>> On Mon, Dec 30, 2013 at 4:15 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
>>>>> This file doesn't use the clk_reset() API that is exposed in
>>>>> mach-msm's mach/clk.h file. Remove the include so that this
>>>>> driver can be compiled as part of the multi-platform kernel.
>>>> Thanks!
>>>>
>>>> Signed-off-by: Rob Clark <robdclark@gmail.com>
>> I think you mean Acked-by? Signed-off-by usually means you're
>> sending the patch along.
> I've held off applying this, but I have applied the others -- please
> merge this through the DRM tree since it will need to go on top of
> changes there.
>
> That also means that enabling the MSM DTM driver in a multiplatform
> kernel will cause build breakages until the equivalent patch has been
> picked up. Since it's not enabled by any defconfigs I'm not too worried,
> but it will show up on randconfigs.
>

Ok. I think Rob's still planning to send his patch through the DRM tree
so we should be ok on the other end of the merge window.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-01-09 18:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30 21:15 [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 1/7] usb: phy: msm: Move mach dependent code to platform data Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 2/7] mmc: msm_sdcc: Limit driver to platforms that use it Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 3/7] tty: serial: Limit msm_serial_hs " Stephen Boyd
2014-01-02 18:10   ` Arnd Bergmann
2014-01-02 20:20     ` Stephen Boyd
2014-01-02 20:26       ` Arnd Bergmann
2013-12-30 21:15 ` [PATCH v2 4/7] ARM: msm: Only build clock.c on proc_comm based platforms Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 5/7] ARM: msm: Only build timer.c if required Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 6/7] drm/msm: Drop unnecessary mach include Stephen Boyd
2013-12-30 21:20   ` Stephen Boyd
2013-12-31  1:12   ` Rob Clark
2013-12-31  1:19     ` Rob Clark
2013-12-31  5:15       ` Stephen Boyd
2014-01-09  8:13         ` Olof Johansson
2014-01-09 18:40           ` Stephen Boyd
2013-12-30 21:15 ` [PATCH v2 7/7] ARM: msm: Move MSM's DT based hardware to multi-platform support Stephen Boyd
2013-12-30 21:17 ` [PATCH v2 0/7] Allow MSM DT platforms to be built multi-platform Stephen Boyd
2014-01-02 18:13 ` Arnd Bergmann
2014-01-03 18:51   ` Stephen Boyd
2014-01-03 19:31     ` Olof Johansson
2014-01-09  8:11       ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).