From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751203AbaALVxh (ORCPT ); Sun, 12 Jan 2014 16:53:37 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:52715 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbaALVxg (ORCPT ); Sun, 12 Jan 2014 16:53:36 -0500 From: Laurent Pinchart To: Ben Dooks Cc: linux-kernel@lists.codethink.co.uk, Linux Kernel list , Linus SH list , Simon Horman , Magnus Damm , Greg Kroah-Hartman Subject: Re: [PATCH] ARM: shmobile: compile drivers/sh for CONFIG_ARCH_SHMOBILE_MULTI Date: Sun, 12 Jan 2014 22:54:15 +0100 Message-ID: <2820428.J065BbN1jW@avalon> User-Agent: KMail/4.10.5 (Linux/3.10.25-gentoo; KDE/4.10.5; x86_64; ; ) In-Reply-To: <1389445589-21502-1-git-send-email-ben.dooks@codethink.co.uk> References: <1389445589-21502-1-git-send-email-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ben, Thank you for the patch. On Saturday 11 January 2014 13:06:29 Ben Dooks wrote: > If the kernel is built to support multi-arm configurmation with shmobile > support built in, then the drivers/sh is not built. This contains drivers > that are essential to devices support by that configuration, including the > PM runtime code in drivers/sh/pm_runtime.c (which implicitly enables the > bus clocks for all devices). > > If CONFIG_ARCH_SHMOBILE_MULTI then build the drivers/sh directory, > but ensure that bits that may conflict (drivers/sh/clk if the common > clock framework is not enabled) are built. > > The ARCH_SHMOBILE_MULTI was added by efacfce5f8a ("ARM: shmobile: Introduce > ARCH_SHMOBILE_MULTI") but this has only just recently been found due to > building device-tree only kernels. > > Cc: Linux Kernel list > Cc: Linus SH list > Cc: Simon Horman > Cc: Magnus Damm > Cc: Greg Kroah-Hartman > Signed-off-by: Ben Dooks > --- > drivers/Makefile | 1 + > drivers/sh/Makefile | 3 +++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/Makefile b/drivers/Makefile > index 8e3b8b0..abc4744 100644 > --- a/drivers/Makefile > +++ b/drivers/Makefile > @@ -118,6 +118,7 @@ obj-$(CONFIG_SGI_SN) += sn/ > obj-y += firmware/ > obj-$(CONFIG_CRYPTO) += crypto/ > obj-$(CONFIG_SUPERH) += sh/ > +obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += sh/ > obj-$(CONFIG_ARCH_SHMOBILE_LEGACY) += sh/ > ifndef CONFIG_ARCH_USES_GETTIMEOFFSET > obj-y += clocksource/ > diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile > index fc67f56..86604a5 100644 > --- a/drivers/sh/Makefile > +++ b/drivers/sh/Makefile > @@ -3,7 +3,10 @@ > # > obj-y := intc/ Is intc needed as well ? > > +ifeq ($(CONFIG_COMMON_CLK),n) > obj-$(CONFIG_HAVE_CLK) += clk/ > +endif > + > obj-$(CONFIG_MAPLE) += maple/ > obj-$(CONFIG_SUPERHYWAY) += superhyway/ -- Regards, Laurent Pinchart