gpio: phytium: update phytium gpio controller driver support to 6.6.0.4#1827
gpio: phytium: update phytium gpio controller driver support to 6.6.0.4#1827xiaqian1486 wants to merge 3 commits into
Conversation
|
Hi @xiaqian1486. Thanks for your PR. I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fix module (=m) case where GPIO interrupts stop after S4 resume because the parent IRQ loses the chained handler setting up at probe. So rebind the handler for each parent in resume() to restore parent-to-child dispatch. While builtin (=y) builds unaffected. Mainline: Open-Source Signed-off-by: zhuling <zhuling2709@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Xia Qian <xiaqian1486@phytium.com.cn>
Linux PM framework automatically calls suspend_device_irqs() during suspend to disable IRQs, and resume_device_irqs() during resume to re-enable them. The current GPIO driver redundantly calls enable_irq() in its resume flow, which will create an unbalanced IRQ enable since the kernel has already restored the IRQ state through resume_device_irqs(). Mainline: Open-Source Signed-off-by: Zhu Ling <zhuling2709@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Xia Qian <xiaqian1486@phytium.com.cn>
Ensure the Phytium GPIO PCI driver is only selectable for its intended environment. This driver depends on both the Phytium platform and a working PCI subsystem. Mainline: Open-Source Signed-off-by: Zhu Ling <zhuling2709@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Xia Qian <xiaqian1486@phytium.com.cn>
| config GPIO_PHYTIUM_PCI | ||
| tristate "Phytium GPIO PCI support" | ||
| depends on PCI && ARCH_PHYTIUM | ||
| select GPIO_PHYTIUM_CORE |
| /* Rebind parent-to-child dispatch chain and enable parent IRQ lines. */ | ||
| static void phytium_set_irq_chained_handler(struct phytium_gpio *gpio) |
| irq_set_chained_handler_and_data(gpio->irq[i], | ||
| phytium_gpio_irq_handler, &gpio->gc); | ||
| } |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: opsiff The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This patches updates the support for phytium gpio controller driver.