-
Notifications
You must be signed in to change notification settings - Fork 105
Phytium PCI serial port support #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This driver supports the Phytium UART controller on PCI/PCIe adapters. Signed-off-by: xu yan <xuyan1481@phytium.com> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Lan Hengyu <lanhengyu1395@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto reviewThe Phytium PCI UART driver |
This driver supports the Phytium UART controller on PCI/PCIe adapters. Signed-off-by: xu yan <xuyan1481@phytium.com> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Lan Hengyu <lanhengyu1395@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#150 (cherry picked from commit ff51061) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/tty/serial/Makefile include/uapi/linux/serial_core.h
Declare phytium_unregister_port() as a static function to resolve a missing prototype warning. Signed-off-by: Mingcong Bai <baimingcong@uniontech.com> Link: deepin-community#150 (cherry picked from commit e5ff207) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
The following commit removed structs such as circ_buf and uart_circ_empty.
commit 1788cf6
Author: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Date: Fri Apr 5 08:08:23 2024 +0200
tty: serial: switch from circ_buf to kfifo
Adapt module code in accordance with this commit to fix build.
Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
Link: deepin-community#150
(cherry picked from commit 9b6d93c)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Log:
drivers/tty/serial/phytium-uart.c:728:34: error: use of undeclared identifier 'nr_irqs'
728 | if (ser->irq < 0 || ser->irq >= nr_irqs)
| ^
Link: deepin-community#150
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
pcim_iomap_table() and pcim_iomap_regions_request_all() have been deprecated by the PCI subsystem in commit e354bb8 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()"). Replace these functions with their successors, pcim_iomap() and pcim_request_all_regions() Log: drivers/tty/serial/phytium-uart.c:834:7: error: call to undeclared function 'pcim_iomap_regions_request_all'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 834 | rc = pcim_iomap_regions_request_all(pdev, 0x01, pci_name(pdev)); | ^ 1 error generated. Link: deepin-community#150 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This driver supports the Phytium UART controller on PCI/PCIe adapters. Signed-off-by: xu yan <xuyan1481@phytium.com> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn> Signed-off-by: Lan Hengyu <lanhengyu1395@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: #150 (cherry picked from commit ff51061) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/tty/serial/Makefile include/uapi/linux/serial_core.h
The following commit removed structs such as circ_buf and uart_circ_empty.
commit 1788cf6
Author: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Date: Fri Apr 5 08:08:23 2024 +0200
tty: serial: switch from circ_buf to kfifo
Adapt module code in accordance with this commit to fix build.
Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
Link: #150
(cherry picked from commit 9b6d93c)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Log:
drivers/tty/serial/phytium-uart.c:728:34: error: use of undeclared identifier 'nr_irqs'
728 | if (ser->irq < 0 || ser->irq >= nr_irqs)
| ^
Link: #150
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
pcim_iomap_table() and pcim_iomap_regions_request_all() have been deprecated by the PCI subsystem in commit e354bb8 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()"). Replace these functions with their successors, pcim_iomap() and pcim_request_all_regions() Log: drivers/tty/serial/phytium-uart.c:834:7: error: call to undeclared function 'pcim_iomap_regions_request_all'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 834 | rc = pcim_iomap_regions_request_all(pdev, 0x01, pci_name(pdev)); | ^ 1 error generated. Link: #150 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This driver supports the Phytium UART controller on PCI/PCIe adapters.