linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about acpi_remove_address_space_handler() behavior if handler is running
@ 2021-09-04 16:42 Heiner Kallweit
  2021-09-07 15:16 ` Moore, Robert
  0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2021-09-04 16:42 UTC (permalink / raw)
  To: Robert Moore, Erik Kaneda, Rafael J. Wysocki; +Cc: linux-acpi, Jean Delvare

i801 i2c driver installs an own ACPI io handler. When discussing some driver
improvements one open question is about behavior of
acpi_remove_address_space_handler() if the handler is currently running.
Will the function wait until handler is finished? In other words, the actual
question is: Are we guaranteed that after the call to
acpi_remove_address_space_handler() the handler can't be running?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Question about acpi_remove_address_space_handler() behavior if handler is running
  2021-09-04 16:42 Question about acpi_remove_address_space_handler() behavior if handler is running Heiner Kallweit
@ 2021-09-07 15:16 ` Moore, Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Moore, Robert @ 2021-09-07 15:16 UTC (permalink / raw)
  To: Heiner Kallweit, Erik Kaneda, Wysocki, Rafael J; +Cc: linux-acpi, Jean Delvare

Yes, I think it is guaranteed that the handler is not running:

1) the namespace is locked during the removal.
2) EvDetachRegion is called which runs the _REG method indicating that the region is no longer available.

-----Original Message-----
From: Heiner Kallweit <hkallweit1@gmail.com> 
Sent: Saturday, September 04, 2021 9:42 AM
To: Moore, Robert <robert.moore@intel.com>; Erik Kaneda <erik.kaneda@intel.com>; Wysocki, Rafael J <rafael.j.wysocki@intel.com>
Cc: linux-acpi@vger.kernel.org; Jean Delvare <jdelvare@suse.com>
Subject: Question about acpi_remove_address_space_handler() behavior if handler is running

i801 i2c driver installs an own ACPI io handler. When discussing some driver improvements one open question is about behavior of
acpi_remove_address_space_handler() if the handler is currently running.
Will the function wait until handler is finished? In other words, the actual question is: Are we guaranteed that after the call to
acpi_remove_address_space_handler() the handler can't be running?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-07 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 16:42 Question about acpi_remove_address_space_handler() behavior if handler is running Heiner Kallweit
2021-09-07 15:16 ` Moore, Robert

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).