From: "Sverdlin, Alexander (Nokia - DE/Ulm)" <alexander.sverdlin@nokia.com>
To: Jean Delvare <jdelvare@suse.de>,
"Xu, Lingyan (NSB - CN/Hangzhou)" <lingyan.xu@nokia-sbell.com>
Cc: "Adamski,
Krzysztof (Nokia - PL/Wroclaw)" <krzysztof.adamski@nokia.com>,
"Wiebe, Wladislav (Nokia - DE/Ulm)" <wladislav.wiebe@nokia.com>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] i801_smbus: clear SMBALERT status bit and disable SMBALERT interrupt
Date: Mon, 16 Sep 2019 09:29:27 +0000 [thread overview]
Message-ID: <d7dce94a-d857-dc1e-1917-d715940bc356@nokia.com> (raw)
In-Reply-To: <20190905145716.137e155a@endymion>
Hi Jean,
On 05/09/2019 14:57, Jean Delvare wrote:
> If this is of any value to you, I tried implementing it in i2c-i801 a
> few days ago. I can't really test it though as I don't have any device
> which triggers an alert on my system, but I am sharing it with you if
> you want to give it a try. You would still need to write the code in
> the slave driver.
and I forgot another issue:
> @@ -1897,8 +1956,10 @@ static void i801_remove(struct pci_dev *
> pm_runtime_forbid(&dev->dev);
> pm_runtime_get_noresume(&dev->dev);
>
> - i801_disable_host_notify(priv);
> + i801_restore_slvcmd(priv);
> i801_del_mux(priv);
> + if (priv->ara)
> + i2c_unregister_device(priv->ara);
to me it looks like a race with IRQ handler (IRQ is only disabled *after*
remove()), it can still attempt to use freed ARA device after this line.
> i2c_del_adapter(&priv->adapter);
> i801_acpi_remove(priv);
> pci_write_config_byte(dev, SMBHSTCFG, priv->original_hstcfg);
--
Best regards,
Alexander Sverdlin.
next prev parent reply other threads:[~2019-09-16 9:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-12 2:40 lingyxu
2019-08-14 16:15 ` Wolfram Sang
2019-08-28 13:58 ` Jean Delvare
2019-09-03 2:15 ` Xu, Lingyan (NSB - CN/Hangzhou)
2019-09-05 9:15 ` Xu, Lingyan (NSB - CN/Hangzhou)
2019-09-05 12:57 ` Jean Delvare
2019-09-16 8:52 ` Sverdlin, Alexander (Nokia - DE/Ulm)
2019-09-16 9:29 ` Sverdlin, Alexander (Nokia - DE/Ulm) [this message]
2019-09-17 11:37 ` Sverdlin, Alexander (Nokia - DE/Ulm)
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=d7dce94a-d857-dc1e-1917-d715940bc356@nokia.com \
--to=alexander.sverdlin@nokia.com \
--cc=jdelvare@suse.de \
--cc=krzysztof.adamski@nokia.com \
--cc=lingyan.xu@nokia-sbell.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wladislav.wiebe@nokia.com \
/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
all inboxes | Powered by JetHome®