]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
lib: logic_pio: Add logic_pio_unregister_range()
authorJohn Garry <john.garry@huawei.com>
Tue, 30 Jul 2019 13:29:54 +0000 (21:29 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit334263e1a5d14c276afcc4444623662431cf788a
tree85565c0d4e6b4942071dc8747782549ece24b113
parent266f13b6474707055b444fecbbe33d0c03bfa012
lib: logic_pio: Add logic_pio_unregister_range()

BugLink: https://bugs.launchpad.net/bugs/1843338
commit b884e2de2afc68ce30f7093747378ef972dde253 upstream.

Add a function to unregister a logical PIO range.

Logical PIO space can still be leaked when unregistering certain
LOGIC_PIO_CPU_MMIO regions, but this acceptable for now since there are no
callers to unregister LOGIC_PIO_CPU_MMIO regions, and the logical PIO
region allocation scheme would need significant work to improve this.

Cc: stable@vger.kernel.org
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/logic_pio.h
lib/logic_pio.c