From: Hans de Goede <hdegoede@redhat.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
linux-kernel@vger.kernel.org
Cc: platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH v1 1/1] platform/x86: Fix header inclusion in linux/platform_data/x86/soc.h
Date: Fri, 10 Feb 2023 17:15:52 +0100 [thread overview]
Message-ID: <7d1749ec-bd8a-1fb4-49c1-0bb680ad530f@redhat.com> (raw)
In-Reply-To: <20230206145238.19460-1-andriy.shevchenko@linux.intel.com>
Hi,
On 2/6/23 15:52, Andy Shevchenko wrote:
> First of all, we don't use intel-family.h directly. On the other hand
> we actively use boolean type, that is defined in the types.h (we take
> top-level header for that) and x86_cpu_id, that is provided in the
> mod_devicetable.h.
>
> Secondly, we don't need to spread SOC_INTEL_IS_CPU() macro to the users.
> Hence, undefine it when it's appropriate.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> include/linux/platform_data/x86/soc.h | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/platform_data/x86/soc.h b/include/linux/platform_data/x86/soc.h
> index da05f425587a..a5705189e2ac 100644
> --- a/include/linux/platform_data/x86/soc.h
> +++ b/include/linux/platform_data/x86/soc.h
> @@ -8,10 +8,13 @@
> #ifndef __PLATFORM_DATA_X86_SOC_H
> #define __PLATFORM_DATA_X86_SOC_H
>
> +#include <linux/types.h>
> +
> #if IS_ENABLED(CONFIG_X86)
>
> +#include <linux/mod_devicetable.h>
> +
> #include <asm/cpu_device_id.h>
> -#include <asm/intel-family.h>
>
> #define SOC_INTEL_IS_CPU(soc, type) \
> static inline bool soc_intel_is_##soc(void) \
> @@ -34,6 +37,8 @@ SOC_INTEL_IS_CPU(apl, ATOM_GOLDMONT);
> SOC_INTEL_IS_CPU(glk, ATOM_GOLDMONT_PLUS);
> SOC_INTEL_IS_CPU(cml, KABYLAKE_L);
>
> +#undef SOC_INTEL_IS_CPU
> +
> #else /* IS_ENABLED(CONFIG_X86) */
>
> static inline bool soc_intel_is_byt(void)
prev parent reply other threads:[~2023-02-10 16:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 14:52 [PATCH v1 1/1] platform/x86: Fix header inclusion in linux/platform_data/x86/soc.h Andy Shevchenko
2023-02-10 16:15 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d1749ec-bd8a-1fb4-49c1-0bb680ad530f@redhat.com \
--to=hdegoede@redhat.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox