Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1371807ybg; Wed, 23 Oct 2019 14:47:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG7XvG4536GkGZBbfUo1DxEWzA5Jo5vKvyN37tS6BoEdX5emcl9Q/m9J0G/xMKdFUmSqLW X-Received: by 2002:a50:8d8a:: with SMTP id r10mr40294690edh.302.1571867262090; Wed, 23 Oct 2019 14:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571867262; cv=none; d=google.com; s=arc-20160816; b=r5vdhfpXw7NQ+eht9bZbqAClOf4LAmogXGwRbWcNjw3fR+dlzfCEuntwwspq5wxtXa nMa71gtvzzQlvH1vuKKZlVLmpxwZtYqBOmOidKOkiV8hZYnAuXKoT8/Hs+aS/ppQJcUP 0ELuUG/B+rfKIrdB0GpHNPLii2jLZ7CBUqQzVGnrSBF65QccHUenQACX9IcMQgMUpzRa xEqBB1BCp/1OQagUdnLjN3jrHxuAetFRNwvna4x5L4B5GkvkMKcTISG4o0Mh/F9IcuTE ytBvSNXqx+i+leJTD8RqkoyPjoPY1kPh10U5ABS8pespOmey7r8+qZ6JY58ekUDeoHe5 lWgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JdQWHLcsUgyYWnnt0MPLxsj3f5JUEwKpW4xYYLo1gSQ=; b=WB7qzh0NVToSTbKgB+P7wxkywNZ7ZI0ExRucmf6wbhJQAdCBdmzkvuNSDYR9oMAwAk 32pdLdrMw50+Cu9OCLDewwmvHSHfvrW7r5JWmn66Qo+RKr81MKcyOYHT1VZlp0odw9lm t0A+Brw/VVn5bZXaAuf8crVHWRJQMdRML26JN7r0K/g1dWEQWWc6aPVOQrc+nKj6/x8j nnbgxZKG2mc8nuajp5JyFkk332mzaq7KxEh1aFxFz7i4urNuYVHkJk2Q0cA07Qv6o38q HLa1yMobMCBI279u0vjyoe09B9/xMxVjhxpvXdk0qq60GSIMoeoD7F89DVe/Cp/CAISc y/Sw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si8278393eda.201.2019.10.23.14.47.06; Wed, 23 Oct 2019 14:47:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405922AbfJWNiG (ORCPT + 99 others); Wed, 23 Oct 2019 09:38:06 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43662 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390754AbfJWNiG (ORCPT ); Wed, 23 Oct 2019 09:38:06 -0400 Received: by mail-ed1-f65.google.com with SMTP id q24so9799839edr.10; Wed, 23 Oct 2019 06:38:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JdQWHLcsUgyYWnnt0MPLxsj3f5JUEwKpW4xYYLo1gSQ=; b=tNKS6Sb7l2xQZJkOooGBEPfbldl/fOqwujx6AhrN9ZFZvXNomNH0/QkXM6iAG/7Abb Am5wNckwaDQBwfiHc/wzSBofMhWgssjPcveNRDnOwqlzcxw9UFziS9mGIiC5Xn/YOeNX AHWjQIbVxguQMGhepSjOrdTpPrfFTgZFI106l1ow5Lralb3+jDVEu5NIOfbez4+vR18K Vahiy3Vm8JICrCO1GQh9f+ckUbf8Zkvzp5n8GnTZq+kLJkV/1nTI+NwHIDuDGK8jYQhA WhgDWmgP7wGHJlMALK9R4xHoQNqMzEwDZ7rK8Qc1uWHqgtSjgv3TpnUowxHqDFZ2YKUi VkxA== X-Gm-Message-State: APjAAAWKaBsGe+Xx8G6DCimWENqo9bGZwxigKxrpPxPaTIsPpFszRi10 gwsYTTEC3u1uTZbAinEjRuY= X-Received: by 2002:aa7:c895:: with SMTP id p21mr38009391eds.38.1571837883219; Wed, 23 Oct 2019 06:38:03 -0700 (PDT) Received: from pi3 ([194.230.155.217]) by smtp.googlemail.com with ESMTPSA id f6sm183016edu.68.2019.10.23.06.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 06:38:02 -0700 (PDT) Date: Wed, 23 Oct 2019 15:38:00 +0200 From: Krzysztof Kozlowski To: Arnd Bergmann Cc: Kukjin Kim , "Rafael J. Wysocki" , Viresh Kumar , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 30/36] ARM: s3c: remove cpufreq header dependencies Message-ID: <20191023133800.GI11048@pi3> References: <20191010202802.1132272-1-arnd@arndb.de> <20191010203043.1241612-1-arnd@arndb.de> <20191010203043.1241612-30-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191010203043.1241612-30-arnd@arndb.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 10:30:14PM +0200, Arnd Bergmann wrote: > The cpufreq drivers are split between the machine directory > and the drivers/cpufreq directory. In order to share header > files after we convert s3c to multiplatform, those headers > have to live in a different global location. > > Move them to linux/soc/samsung/ in lack of a better place. > > Signed-off-by: Arnd Bergmann > --- > arch/arm/mach-s3c24xx/common.c | 1 - > arch/arm/mach-s3c24xx/cpufreq-utils.c | 2 +- > arch/arm/mach-s3c24xx/iotiming-s3c2410.c | 2 +- > arch/arm/mach-s3c24xx/iotiming-s3c2412.c | 2 +- > arch/arm/mach-s3c24xx/mach-bast.c | 2 +- > arch/arm/mach-s3c24xx/mach-osiris-dvs.c | 2 +- > arch/arm/mach-s3c24xx/mach-osiris.c | 2 +- > arch/arm/mach-s3c24xx/pll-s3c2410.c | 4 ++-- > arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c | 4 ++-- > arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c | 4 ++-- > arch/arm/mach-s3c24xx/s3c2410.c | 1 - > arch/arm/mach-s3c24xx/s3c2412.c | 1 - > arch/arm/mach-s3c24xx/s3c244x.c | 2 -- > arch/arm/mach-s3c64xx/s3c6400.c | 1 - > arch/arm/mach-s3c64xx/s3c6410.c | 2 +- > arch/arm/plat-samsung/include/plat/cpu.h | 9 --------- > drivers/cpufreq/s3c2410-cpufreq.c | 5 ++--- > drivers/cpufreq/s3c2412-cpufreq.c | 5 ++--- > drivers/cpufreq/s3c2440-cpufreq.c | 5 ++--- > drivers/cpufreq/s3c24xx-cpufreq-debugfs.c | 2 +- > drivers/cpufreq/s3c24xx-cpufreq.c | 5 ++--- > .../linux/soc/samsung/s3c-cpu-freq.h | 0 > .../linux/soc/samsung/s3c-cpufreq-core.h | 2 +- > include/linux/soc/samsung/s3c-pm.h | 10 ++++++++++ > 24 files changed, 33 insertions(+), 42 deletions(-) > rename arch/arm/plat-samsung/include/plat/cpu-freq.h => include/linux/soc/samsung/s3c-cpu-freq.h (100%) > rename arch/arm/plat-samsung/include/plat/cpu-freq-core.h => include/linux/soc/samsung/s3c-cpufreq-core.h (99%) > > diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c > index ebf6bde67816..d16a164df6c4 100644 > --- a/arch/arm/mach-s3c24xx/common.c > +++ b/arch/arm/mach-s3c24xx/common.c > @@ -35,7 +35,6 @@ > > #include > #include > -#include > #include > > #include "common.h" > diff --git a/arch/arm/mach-s3c24xx/cpufreq-utils.c b/arch/arm/mach-s3c24xx/cpufreq-utils.c > index 1a7f38d085dd..43ab714eaa9e 100644 > --- a/arch/arm/mach-s3c24xx/cpufreq-utils.c > +++ b/arch/arm/mach-s3c24xx/cpufreq-utils.c > @@ -15,7 +15,7 @@ > #include > #include > > -#include > +#include > > #include "regs-mem.h" > > diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c > index 9f90aaf70bf3..5b3b16dd0ce8 100644 > --- a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c > +++ b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c > @@ -17,7 +17,7 @@ > #include > #include > > -#include > +#include > > #include "regs-mem.h" > > diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c > index 59356d10fbcf..a22b5611697d 100644 > --- a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c > +++ b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c > @@ -24,7 +24,7 @@ > #include > > #include > -#include > +#include > > #include > > diff --git a/arch/arm/mach-s3c24xx/mach-bast.c b/arch/arm/mach-s3c24xx/mach-bast.c > index cc941b5030ea..b2f2d036bca2 100644 > --- a/arch/arm/mach-s3c24xx/mach-bast.c > +++ b/arch/arm/mach-s3c24xx/mach-bast.c > @@ -46,7 +46,7 @@ > #include > > #include > -#include > +#include > #include > #include > #include > diff --git a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c > index 5d819b6ea428..1250520b3bcc 100644 > --- a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c > +++ b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c > @@ -14,7 +14,7 @@ > > #include > > -#include > +#include > #include > > #define OSIRIS_GPIO_DVS S3C2410_GPB(5) > diff --git a/arch/arm/mach-s3c24xx/mach-osiris.c b/arch/arm/mach-s3c24xx/mach-osiris.c > index 262e77bd48de..674164264076 100644 > --- a/arch/arm/mach-s3c24xx/mach-osiris.c > +++ b/arch/arm/mach-s3c24xx/mach-osiris.c > @@ -37,7 +37,7 @@ > #include > > #include > -#include > +#include > #include > #include > #include > diff --git a/arch/arm/mach-s3c24xx/pll-s3c2410.c b/arch/arm/mach-s3c24xx/pll-s3c2410.c > index 0561f79ddce8..3fbc99eaa4a2 100644 > --- a/arch/arm/mach-s3c24xx/pll-s3c2410.c > +++ b/arch/arm/mach-s3c24xx/pll-s3c2410.c > @@ -15,8 +15,8 @@ > #include > #include > > -#include > -#include > +#include > +#include > > /* This array should be sorted in ascending order of the frequencies */ > static struct cpufreq_frequency_table pll_vals_12MHz[] = { > diff --git a/arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c b/arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c > index 2ec3a2f9a6a5..fdb8e8c2fe3b 100644 > --- a/arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c > +++ b/arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c > @@ -13,8 +13,8 @@ > #include > #include > > -#include > -#include > +#include > +#include > > /* This array should be sorted in ascending order of the frequencies */ > static struct cpufreq_frequency_table s3c2440_plls_12[] = { > diff --git a/arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c b/arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c > index 4b3d9e36c6bb..438b6fc099a4 100644 > --- a/arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c > +++ b/arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c > @@ -13,8 +13,8 @@ > #include > #include > > -#include > -#include > +#include > +#include > > /* This array should be sorted in ascending order of the frequencies */ > static struct cpufreq_frequency_table s3c2440_plls_169344[] = { > diff --git a/arch/arm/mach-s3c24xx/s3c2410.c b/arch/arm/mach-s3c24xx/s3c2410.c > index 21fd5404bc98..8427c150dd22 100644 > --- a/arch/arm/mach-s3c24xx/s3c2410.c > +++ b/arch/arm/mach-s3c24xx/s3c2410.c > @@ -30,7 +30,6 @@ > #include > #include > > -#include > > #include > > diff --git a/arch/arm/mach-s3c24xx/s3c2412.c b/arch/arm/mach-s3c24xx/s3c2412.c > index c3fb3e6c0dd8..209f952a6c98 100644 > --- a/arch/arm/mach-s3c24xx/s3c2412.c > +++ b/arch/arm/mach-s3c24xx/s3c2412.c > @@ -34,7 +34,6 @@ > #include > > #include > -#include > #include > #include > > diff --git a/arch/arm/mach-s3c24xx/s3c244x.c b/arch/arm/mach-s3c24xx/s3c244x.c > index a75f588b9d45..f5bd489bac85 100644 > --- a/arch/arm/mach-s3c24xx/s3c244x.c > +++ b/arch/arm/mach-s3c24xx/s3c244x.c > @@ -28,8 +28,6 @@ > #include > #include > > -#include > - > #include > #include > > diff --git a/arch/arm/mach-s3c64xx/s3c6400.c b/arch/arm/mach-s3c64xx/s3c6400.c > index 81233495d548..d18af724c807 100644 > --- a/arch/arm/mach-s3c64xx/s3c6400.c > +++ b/arch/arm/mach-s3c64xx/s3c6400.c > @@ -28,7 +28,6 @@ > > #include > > -#include > #include > > #include > diff --git a/arch/arm/mach-s3c64xx/s3c6410.c b/arch/arm/mach-s3c64xx/s3c6410.c > index 9465a6e0f068..b1d725e55cd2 100644 > --- a/arch/arm/mach-s3c64xx/s3c6410.c > +++ b/arch/arm/mach-s3c64xx/s3c6410.c > @@ -29,7 +29,7 @@ > > #include > > -#include > +#include > #include > > #include > diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h > index 02d7f991d5a3..9dfd58bcc03d 100644 > --- a/arch/arm/plat-samsung/include/plat/cpu.h > +++ b/arch/arm/plat-samsung/include/plat/cpu.h > @@ -124,15 +124,6 @@ extern struct syscore_ops s3c2412_pm_syscore_ops; > extern struct syscore_ops s3c2416_pm_syscore_ops; > extern struct syscore_ops s3c244x_pm_syscore_ops; > > -/* system device subsystems */ > - > -extern struct bus_type s3c2410_subsys; > -extern struct bus_type s3c2410a_subsys; > -extern struct bus_type s3c2412_subsys; > -extern struct bus_type s3c2416_subsys; > -extern struct bus_type s3c2440_subsys; > -extern struct bus_type s3c2442_subsys; > -extern struct bus_type s3c2443_subsys; > extern struct bus_type s3c6410_subsys; > > #endif > diff --git a/drivers/cpufreq/s3c2410-cpufreq.c b/drivers/cpufreq/s3c2410-cpufreq.c > index 5c6cb590b63f..9c2f29cacdd0 100644 > --- a/drivers/cpufreq/s3c2410-cpufreq.c > +++ b/drivers/cpufreq/s3c2410-cpufreq.c > @@ -16,13 +16,12 @@ > #include > #include > #include > +#include > +#include > > #include > #include > > -#include > -#include > - > #include > > #define S3C2410_CLKREG(x) ((x) + S3C24XX_VA_CLKPWR) > diff --git a/drivers/cpufreq/s3c2412-cpufreq.c b/drivers/cpufreq/s3c2412-cpufreq.c > index d922d0d47c80..38dc9e6db633 100644 > --- a/drivers/cpufreq/s3c2412-cpufreq.c > +++ b/drivers/cpufreq/s3c2412-cpufreq.c > @@ -19,15 +19,14 @@ > #include > #include > #include > +#include > +#include > > #include > #include > > #include > > -#include > -#include > - > #include > > #define S3C2410_CLKREG(x) ((x) + S3C24XX_VA_CLKPWR) > diff --git a/drivers/cpufreq/s3c2440-cpufreq.c b/drivers/cpufreq/s3c2440-cpufreq.c > index 5fe7a891fa13..442abdccb9c1 100644 > --- a/drivers/cpufreq/s3c2440-cpufreq.c > +++ b/drivers/cpufreq/s3c2440-cpufreq.c > @@ -20,13 +20,12 @@ > #include > #include > #include > +#include > +#include > > #include > #include > > -#include > -#include > - > #include > > #define S3C2410_CLKREG(x) ((x) + S3C24XX_VA_CLKPWR) > diff --git a/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c b/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c > index 290e3539d03e..93971dfe7c75 100644 > --- a/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c > +++ b/drivers/cpufreq/s3c24xx-cpufreq-debugfs.c > @@ -18,7 +18,7 @@ > #include > #include > > -#include > +#include > > static struct dentry *dbgfs_root; > static struct dentry *dbgfs_file_io; > diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c > index c786e1197d3c..01b1823ea208 100644 > --- a/drivers/cpufreq/s3c24xx-cpufreq.c > +++ b/drivers/cpufreq/s3c24xx-cpufreq.c > @@ -21,13 +21,12 @@ > #include > #include > #include > +#include > +#include > > #include > #include > > -#include > -#include > - > #include > > /* note, cpufreq support deals in kHz, no Hz */ > diff --git a/arch/arm/plat-samsung/include/plat/cpu-freq.h b/include/linux/soc/samsung/s3c-cpu-freq.h > similarity index 100% > rename from arch/arm/plat-samsung/include/plat/cpu-freq.h > rename to include/linux/soc/samsung/s3c-cpu-freq.h > diff --git a/arch/arm/plat-samsung/include/plat/cpu-freq-core.h b/include/linux/soc/samsung/s3c-cpufreq-core.h > similarity index 99% > rename from arch/arm/plat-samsung/include/plat/cpu-freq-core.h > rename to include/linux/soc/samsung/s3c-cpufreq-core.h > index 2c7cf2665634..4d22be1031b9 100644 Can you also update the header guard names to match new location? Best regards, Krzysztof