Skip to content

Conversation

@xuyan213
Copy link

This driver supports the Phytium UART controller on PCI/PCIe adapters.

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>
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign utsweetyfish for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot
Copy link

deepin pr auto review

The Phytium PCI UART driver

@Avenger-285714 Avenger-285714 merged commit aec0b26 into deepin-community:linux-6.6.y May 27, 2024
opsiff pushed a commit to opsiff/UOS-kernel that referenced this pull request Dec 22, 2025
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
opsiff pushed a commit to opsiff/UOS-kernel that referenced this pull request Dec 22, 2025
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>
opsiff pushed a commit to opsiff/UOS-kernel that referenced this pull request Dec 22, 2025
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>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Dec 22, 2025
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>
opsiff added a commit to opsiff/UOS-kernel that referenced this pull request Dec 22, 2025
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>
lanlanxiyiji pushed a commit that referenced this pull request Dec 26, 2025
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
lanlanxiyiji pushed a commit that referenced this pull request Dec 26, 2025
Declare phytium_unregister_port() as a static function to resolve a missing
prototype warning.

Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
Link: #150
(cherry picked from commit e5ff207)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
lanlanxiyiji pushed a commit that referenced this pull request Dec 26, 2025
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>
lanlanxiyiji pushed a commit that referenced this pull request Dec 26, 2025
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>
lanlanxiyiji pushed a commit that referenced this pull request Dec 26, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants