From: Guenter Roeck <linux@roeck-us.net>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
platform-driver-x86@vger.kernel.org,
Mark Gross <mgross@linux.intel.com>,
linux-watchdog@vger.kernel.org,
Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Hans de Goede <hdegoede@redhat.com>,
Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH v1 4/5] platform/x86: intel_scu_wdt: Drop SCU notification
Date: Fri, 22 Jan 2021 06:21:58 -0800 [thread overview]
Message-ID: <c0ab2b21-7907-92a8-04f3-0afe7dd38387@roeck-us.net> (raw)
In-Reply-To: <20210122123201.40935-4-andriy.shevchenko@linux.intel.com>
On 1/22/21 4:32 AM, Andy Shevchenko wrote:
> Since SCU code along with the Intel MID watchdog driver has been refactored
> in a way that latter will be probed only after the former has been come
> to live, the notification code is bogus and not needed. Remove it for good.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/platform/x86/intel_scu_wdt.c | 31 +++++++---------------------
> 1 file changed, 7 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/platform/x86/intel_scu_wdt.c b/drivers/platform/x86/intel_scu_wdt.c
> index 227218a8f98e..19f7686a3c19 100644
> --- a/drivers/platform/x86/intel_scu_wdt.c
> +++ b/drivers/platform/x86/intel_scu_wdt.c
> @@ -12,7 +12,6 @@
> #include <linux/platform_data/intel-mid_wdt.h>
>
> #include <asm/intel-mid.h>
> -#include <asm/intel_scu_ipc.h>
> #include <asm/io_apic.h>
> #include <asm/hw_irq.h>
>
> @@ -49,34 +48,18 @@ static struct intel_mid_wdt_pdata tangier_pdata = {
> .probe = tangier_probe,
> };
>
> -static int wdt_scu_status_change(struct notifier_block *nb,
> - unsigned long code, void *data)
> -{
> - if (code == SCU_DOWN) {
> - platform_device_unregister(&wdt_dev);
> - return 0;
> - }
> -
> - return platform_device_register(&wdt_dev);
> -}
> -
> -static struct notifier_block wdt_scu_notifier = {
> - .notifier_call = wdt_scu_status_change,
> -};
> -
> static int __init register_mid_wdt(void)
> {
> if (intel_mid_identify_cpu() != INTEL_MID_CPU_CHIP_TANGIER)
> return -ENODEV;
>
> wdt_dev.dev.platform_data = &tangier_pdata;
> -
> - /*
> - * We need to be sure that the SCU IPC is ready before watchdog device
> - * can be registered:
> - */
> - intel_scu_notifier_add(&wdt_scu_notifier);
> -
> - return 0;
> + return platform_device_register(&wdt_dev);
> }
> arch_initcall(register_mid_wdt);
> +
> +static void __exit unregister_mid_wdt(void)
> +{
> + platform_device_unregister(&wdt_dev);
> +}
> +__exitcall(unregister_mid_wdt);
>
next prev parent reply other threads:[~2021-01-22 14:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-22 12:31 [PATCH v1 1/5] watchdog: intel_scu_watchdog: Remove driver for deprecated platform Andy Shevchenko
2021-01-22 12:31 ` [PATCH v1 2/5] watchdog: intel-mid_wdt: Postpone IRQ handler registration till SCU is ready Andy Shevchenko
2021-01-22 14:17 ` Guenter Roeck
2021-01-22 12:31 ` [PATCH v1 3/5] platform/x86: intel_scu_wdt: Move driver from arch/x86 Andy Shevchenko
2021-01-22 14:21 ` Guenter Roeck
2021-01-22 12:32 ` [PATCH v1 4/5] platform/x86: intel_scu_wdt: Drop SCU notification Andy Shevchenko
2021-01-22 14:21 ` Guenter Roeck [this message]
2021-01-22 12:32 ` [PATCH v1 5/5] platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison Andy Shevchenko
2021-01-22 14:23 ` Guenter Roeck
2021-01-22 14:16 ` [PATCH v1 1/5] watchdog: intel_scu_watchdog: Remove driver for deprecated platform Guenter Roeck
2021-01-22 14:59 ` Hans de Goede
2021-01-22 15:22 ` Andy Shevchenko
2021-01-22 15:45 ` Andy Shevchenko
2021-01-22 21:04 ` Hans de Goede
2021-01-23 0:27 ` Guenter Roeck
2021-01-23 12:05 ` Hans de Goede
2021-01-25 11:15 ` Andy Shevchenko
2021-01-25 11:23 ` Hans de Goede
2021-01-25 13:52 ` Andy Shevchenko
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=c0ab2b21-7907-92a8-04f3-0afe7dd38387@roeck-us.net \
--to=linux@roeck-us.net \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bp@alien8.de \
--cc=hdegoede@redhat.com \
--cc=hpa@zytor.com \
--cc=linus.walleij@linaro.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=mgross@linux.intel.com \
--cc=mingo@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=wim@linux-watchdog.org \
--cc=x86@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;
as well as URLs for NNTP newsgroup(s).