-
Notifications
You must be signed in to change notification settings - Fork 105
net: phytium: Add support for phytium GMAC #222
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
net: phytium: Add support for phytium GMAC #222
Conversation
This patch document the DT bindings for the Phytium MAC 1.0 and 2.0 controller. Signed-off-by: Li Wencheng <liwencheng@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Wang Zhimin <wangzhimin1179@phytium.com.cn>
This patch provides support for Phytium GMAC controller driver. Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Li Wencheng <liwencheng@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Wang Zhimin <wangzhimin1179@phytium.com.cn> Signed-off-by: wangzhimin1179 <wangzhimin1179@phytium.com.cn>
|
Hi @wangzhimin1179. 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. |
|
[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 |
As f837b44 introduce ethernet driver phytmac for D3000 (deepin-community#222), enable config CONFIG_PHYTMAC{,_PLATFORM,PCI}=m.
This patch provides support for Phytium GMAC controller driver. Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Li Wencheng <liwencheng@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Wang Zhimin <wangzhimin1179@phytium.com.cn> Signed-off-by: wangzhimin1179 <wangzhimin1179@phytium.com.cn> Link: deepin-community#222 (cherry picked from commit 7bfe5a3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/net/ethernet/Makefile
Add missing <linux/platform_device.h> include. Signed-off-by: Mingcong Bai <baimingcong@uniontech.com> Link: deepin-community#222 (cherry picked from commit a139ef2) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Declare multiple functions as static functions to suppress warnings about missing prototypes. Signed-off-by: Mingcong Bai <baimingcong@uniontech.com> Link: deepin-community#222 (cherry picked from commit 170fc21) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Fix a compilation error:
drivers/net/ethernet/phytium/phytmac_platform.c: In function ‘phytmac_plat_probe’:
drivers/net/ethernet/phytium/phytmac_platform.c:98:55: error: ‘np’ undeclared (first use in this function); did you mean ‘up’?
98 | match = of_match_node(phytmac_dt_ids, np);
| ^~
| up
Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
Link: deepin-community#222
(cherry picked from commit d5c0881)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Populate the supported interfaces bitmap and MAC capabilities mask for
the phytium driver and remove the old validate implementation.
Link:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc0a75eb037539f68f7117a632673a75e39d8d6b
Signed-off-by: Wentao Guan <otgwt@outlook.com>
Link: deepin-community#222
(cherry picked from commit 3c77632)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
… void 0edb555: platform: Make platform_driver::remove() return void cause build error, so convert .remove from int to void drivers/net/ethernet/phytium/phytmac_platform.c:243:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Werror=incompatible-pointer-types] 243 | .remove = phytmac_plat_remove, | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/phytium/phytmac_platform.c:243:19: note: (near initialization for ‘phytmac_driver.<anonymous>.remove’) Link: deepin-community#222 (cherry picked from commit 89a5ac2) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2111375: net: Add struct kernel_ethtool_ts_info cause build error, so convert ethtool_ts_info to kernel_ethtool_ts_info Log: drivers/net/ethernet/phytium/phytmac_ethtool.c: In function ‘phytmac_get_ts_info’: drivers/net/ethernet/phytium/phytmac_ethtool.c:204:45: error: passing argument 2 of ‘ethtool_op_get_ts_info’ from incompatible pointer type [-Werror=incompatible-pointer-types] 204 | return ethtool_op_get_ts_info(ndev, info); | ^~~~ | | | struct ethtool_ts_info * In file included from drivers/net/ethernet/phytium/phytmac_ethtool.c:3: ./include/linux/ethtool.h:1205:59: note: expected ‘struct kernel_ethtool_ts_info *’ but argument is of type ‘struct ethtool_ts_info *’ 1205 | struct kernel_ethtool_ts_info *eti); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/net/ethernet/phytium/phytmac_ethtool.c: At top level: drivers/net/ethernet/phytium/phytmac_ethtool.c:522:43: error: initialization of ‘int (*)(struct net_device *, struct kernel_ethtool_ts_info *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_ts_info *)’ [-Werror=incompatible-pointer-types] 522 | .get_ts_info = phytmac_get_ts_info, | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/phytium/phytmac_ethtool.c:522:43: note: (near initialization for ‘phytmac_ethtool_ops.get_ts_info’) cc1: all warnings being treated as errors Link: deepin-community#222 (cherry picked from commit f20cf65) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
As f837b44 introduce ethernet driver phytmac for D3000 (deepin-community#222), enable config CONFIG_PHYTMAC{,_PLATFORM,PCI}=m. Link: deepin-community#289 (cherry picked from commit f4e0bf0) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
deepin inclusion category: bugfix [ drop pcim_iounmap_regions for v6.18, see ebf7547 ("mtip32xx: Remove unnecessary pcim_iounmap_regions() calls") ] Link: deepin-community#222 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
deepin inclusion category: bugfix [ drop pcim_iounmap_regions for v6.18, see ebf7547 ("mtip32xx: Remove unnecessary pcim_iounmap_regions() calls") ] Link: deepin-community#222 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This patch provides support for Phytium GMAC controller driver. Signed-off-by: Song Wenting <songwenting@phytium.com.cn> Signed-off-by: Li Wencheng <liwencheng@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Signed-off-by: Wang Zhimin <wangzhimin1179@phytium.com.cn> Signed-off-by: wangzhimin1179 <wangzhimin1179@phytium.com.cn> Link: #222 (cherry picked from commit 7bfe5a3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/net/ethernet/Makefile
Fix a compilation error:
drivers/net/ethernet/phytium/phytmac_platform.c: In function ‘phytmac_plat_probe’:
drivers/net/ethernet/phytium/phytmac_platform.c:98:55: error: ‘np’ undeclared (first use in this function); did you mean ‘up’?
98 | match = of_match_node(phytmac_dt_ids, np);
| ^~
| up
Signed-off-by: Mingcong Bai <baimingcong@uniontech.com>
Link: #222
(cherry picked from commit d5c0881)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Populate the supported interfaces bitmap and MAC capabilities mask for
the phytium driver and remove the old validate implementation.
Link:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc0a75eb037539f68f7117a632673a75e39d8d6b
Signed-off-by: Wentao Guan <otgwt@outlook.com>
Link: #222
(cherry picked from commit 3c77632)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
… void 0edb555: platform: Make platform_driver::remove() return void cause build error, so convert .remove from int to void drivers/net/ethernet/phytium/phytmac_platform.c:243:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Werror=incompatible-pointer-types] 243 | .remove = phytmac_plat_remove, | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/phytium/phytmac_platform.c:243:19: note: (near initialization for ‘phytmac_driver.<anonymous>.remove’) Link: #222 (cherry picked from commit 89a5ac2) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2111375: net: Add struct kernel_ethtool_ts_info cause build error, so convert ethtool_ts_info to kernel_ethtool_ts_info Log: drivers/net/ethernet/phytium/phytmac_ethtool.c: In function ‘phytmac_get_ts_info’: drivers/net/ethernet/phytium/phytmac_ethtool.c:204:45: error: passing argument 2 of ‘ethtool_op_get_ts_info’ from incompatible pointer type [-Werror=incompatible-pointer-types] 204 | return ethtool_op_get_ts_info(ndev, info); | ^~~~ | | | struct ethtool_ts_info * In file included from drivers/net/ethernet/phytium/phytmac_ethtool.c:3: ./include/linux/ethtool.h:1205:59: note: expected ‘struct kernel_ethtool_ts_info *’ but argument is of type ‘struct ethtool_ts_info *’ 1205 | struct kernel_ethtool_ts_info *eti); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/net/ethernet/phytium/phytmac_ethtool.c: At top level: drivers/net/ethernet/phytium/phytmac_ethtool.c:522:43: error: initialization of ‘int (*)(struct net_device *, struct kernel_ethtool_ts_info *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_ts_info *)’ [-Werror=incompatible-pointer-types] 522 | .get_ts_info = phytmac_get_ts_info, | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/phytium/phytmac_ethtool.c:522:43: note: (near initialization for ‘phytmac_ethtool_ops.get_ts_info’) cc1: all warnings being treated as errors Link: #222 (cherry picked from commit f20cf65) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
飞腾D3000网卡驱动:phytium-mac