]> git.baikalelectronics.ru Git - 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)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 13 Aug 2019 06:54:24 +0000 (14:54 +0800)
commitf44fbae9d13b52c97bac1cd03cc04f4f0d5e4a1e
tree5cf0eb6a522222635889487bcdc4550b033563ee
parente82e29b0f5c0cc046cfd673e66280cac25684dbf
lib: logic_pio: Add logic_pio_unregister_range()

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>
include/linux/logic_pio.h
lib/logic_pio.c