net: stmmac: dwmac-phytium: compat some FT2000#316
Conversation
ce44e0b to
5f68944
Compare
Compat with some quirk platform FT2000/4 as id "FTGM0001", use rgmii-rxid instead of rgmii (wrong ACPI DSDT), and set dma_ops and host_dma_width (fix code style). origin code in k4.19 is following: acpi_dma_configure(priv->device,DEV_DMA_COHERENT); static u64 my_mask=0xffffffff; priv->device->dma_mask = &my_mask; priv->device->coherent_dma_mask = (u32)~0; port to k5.10 add: pdev->dev.dma_ops = NULL; Signed-off-by: Caicai <caizhaopeng@deepin.com> Signed-off-by: hmy <huanglin@uniontech.com> Signed-off-by: wenlunpeng <wenlunpeng@uniontech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
5f68944 to
2f5bd34
Compare
| * Force this PHY mode to rgmii-rxid and info of its use. | ||
| * If the phy-mode rgmii is realy used, a blacklist may need to be added. | ||
| */ | ||
| if (acpi_match_device_ids(to_acpi_device(&pdev->dev), phytium_old_acpi_id) && |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
deepin pr auto review关键摘要:
是否建议立即修改:
|
|
[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 |
1 similar comment
|
[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 |
Compat with some quirk platform FT2000/4 as id "FTGM0001", use rgmii-rxid instead of rgmii (wrong ACPI DSDT), and set dma_ops and host_dma_width (fix code style). origin code in k4.19 is following: acpi_dma_configure(priv->device,DEV_DMA_COHERENT); static u64 my_mask=0xffffffff; priv->device->dma_mask = &my_mask; priv->device->coherent_dma_mask = (u32)~0; port to k5.10 add: pdev->dev.dma_ops = NULL; Signed-off-by: Caicai <caizhaopeng@deepin.com> Signed-off-by: hmy <huanglin@uniontech.com> Signed-off-by: wenlunpeng <wenlunpeng@uniontech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: deepin-community#316 (cherry picked from commit dbd62af) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c
Compat with some quirk platform FT2000/4 as id "FTGM0001", use rgmii-rxid instead of rgmii (wrong ACPI DSDT), and set dma_ops and host_dma_width (fix code style). origin code in k4.19 is following: acpi_dma_configure(priv->device,DEV_DMA_COHERENT); static u64 my_mask=0xffffffff; priv->device->dma_mask = &my_mask; priv->device->coherent_dma_mask = (u32)~0; port to k5.10 add: pdev->dev.dma_ops = NULL; Signed-off-by: Caicai <caizhaopeng@deepin.com> Signed-off-by: hmy <huanglin@uniontech.com> Signed-off-by: wenlunpeng <wenlunpeng@uniontech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: deepin-community#316 (cherry picked from commit dbd62af) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c
Compat with some quirk platform FT2000/4 as id "FTGM0001", use rgmii-rxid instead of rgmii (wrong ACPI DSDT), and set dma_ops and host_dma_width (fix code style). origin code in k4.19 is following: acpi_dma_configure(priv->device,DEV_DMA_COHERENT); static u64 my_mask=0xffffffff; priv->device->dma_mask = &my_mask; priv->device->coherent_dma_mask = (u32)~0; port to k5.10 add: pdev->dev.dma_ops = NULL; Signed-off-by: Caicai <caizhaopeng@deepin.com> Signed-off-by: hmy <huanglin@uniontech.com> Signed-off-by: wenlunpeng <wenlunpeng@uniontech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Link: #316 (cherry picked from commit dbd62af) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c
Compat with some quirk platform FT2000/4 as id "FTGM0001", use rgmii-rxid instead of rgmii (wrong ACPI DSDT), and set dma_ops and host_dma_width (fix code style).
origin code in k4.19 is following:
acpi_dma_configure(priv->device,DEV_DMA_COHERENT); static u64 my_mask=0xffffffff;
priv->device->dma_mask = &my_mask;
priv->device->coherent_dma_mask = (u32)~0;
port to k5.10 add:
pdev->dev.dma_ops = NULL;