Add JH7110 MIPI DPHY TX support
PATCH 1/2 dt-bindings: phy: Add starfive,jh7110-dphy-tx
In reply to Shengyang ChenStarFive SoCs like the jh7110 use a MIPI D-PHY TX controller based on a M31 IP. Add a binding for it.
--- .../bindings/phy/starfive,jh7110-dphy-tx.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +74 -0
@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Starfive SoC MIPI D-PHY Tx Controller + +maintainers: + - Keith Zhao <[email protected]> + - Shengyang Chen <[email protected]> + +description: + The Starfive SoC uses the MIPI DSI D-PHY based on M31 IP to transfer + DSI data. + +properties: + compatible: + const: starfive,jh7110-dphy-tx + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dphy_txesc + + resets: + items: + - description: DSITX_TXBYTEHS reset + - description: MIPITX_DPHY_SYS reset + - description: MIPITX_DPHY_TXBYTEHS reset + + reset-names: + items: + - const: dsi_txbytehs + - const: dphy_sys + - const: dphy_txbytehs + + power-domains: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - power-domains + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@295e0000 { + compatible = "starfive,jh7110-dphy-tx"; + reg = <0x295e0000 0x10000>; + clocks = <&voutcrg 14>; + clock-names = "dphy_txesc"; + resets = <&syscrg 7>, + <&syscrg 10>, + <&syscrg 11>; + reset-names = "dsi_txbytehs", "dphy_sys", "dphy_txbytehs"; + power-domains = <&aon_syscon 0>; + #phy-cells = <0>; + };
Signature · 1 line
2.17.1
PATCH 2/2 phy: starfive: Add mipi dphy tx support
In reply to Shengyang ChenAdd mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data.
--- MAINTAINERS | 7 + drivers/phy/starfive/Kconfig | 10 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-dphy-tx.c | 542 ++++++++++++++++++++++ 4 files changed, 560 insertions(+) create mode 100644 drivers/phy/starfive/phy-jh7110-dphy-tx.c
MAINTAINERS +7 -0
@@ -20677,6 +20677,13 @@ S: Supported F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml F: drivers/phy/starfive/phy-jh7110-dphy-rx.c +STARFIVE JH7110 DPHY TX DRIVER +M: Keith Zhao <[email protected]> +M: Shengyang Chen <[email protected]> +S: Supported +F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml +F: drivers/phy/starfive/phy-jh7110-dphy-tx.c + STARFIVE JH7110 MMC/SD/SDIO DRIVER M: William Qiu <[email protected]> S: Supported
drivers/phy/starfive/Kconfig +10 -0
@@ -15,6 +15,16 @@ config PHY_STARFIVE_JH7110_DPHY_RX system. If M is selected, the module will be called phy-jh7110-dphy-rx.ko. +config PHY_STARFIVE_JH7110_DPHY_TX + tristate "StarFive JH7110 D-PHY TX Support" + depends on HAS_IOMEM + select GENERIC_PHY + select GENERIC_PHY_MIPI_DPHY + help + Choose this option if you have a StarFive D-PHY TX in your + system. If M is selected, the module will be called + phy-jh7110-dphy-tx.ko. + config PHY_STARFIVE_JH7110_PCIE tristate "Starfive JH7110 PCIE 2.0/USB 3.0 PHY support" depends on HAS_IOMEM
drivers/phy/starfive/Makefile +1 -0
@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o +obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX) += phy-jh7110-dphy-tx.o obj-$(CONFIG_PHY_STARFIVE_JH7110_PCIE) += phy-jh7110-pcie.o obj-$(CONFIG_PHY_STARFIVE_JH7110_USB) += phy-jh7110-usb.o
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +542 -0
542 lines not on this page · raw message
Signature · 1 line
2.17.1
cover Add JH7110 MIPI DPHY TX support
This patchset adds mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data. The series has been tested on the VisionFive 2 board.
Shengyang Chen (2):
dt-bindings: phy: Add starfive,jh7110-dphy-tx
phy: starfive: Add mipi dphy tx support
.../bindings/phy/starfive,jh7110-dphy-tx.yaml | 74 +++ MAINTAINERS | 7 + drivers/phy/starfive/Kconfig | 10 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-dphy-tx.c | 542 ++++++++++++++++++ 5 files changed, 634 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml create mode 100644 drivers/phy/starfive/phy-jh7110-dphy-tx.c
Signature · 1 line
2.17.1
Rob Herring
maintainerRe: [PATCH v1 1/2] dt-bindings: phy: Add starfive,jh7110-dphy-tx
In reply to Shengyang ChenQuoted 34 lines · Shengyang Chen
StarFive SoCs like the jh7110 use a MIPI D-PHY TX controller based on a M31 IP. Add a binding for it.
Signed-off-by Shengyang Chen <[email protected]>--- .../bindings/phy/starfive,jh7110-dphy-tx.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yamlDocumentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +19
-0@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Starfive SoC MIPI D-PHY Tx Controller + +maintainers: + - Keith Zhao <[email protected]> + - Shengyang Chen <[email protected]> + +description: + The Starfive SoC uses the MIPI DSI D-PHY based on M31 IP to transfer + DSI data. + +properties: + compatible: + const: starfive,jh7110-dphy-tx
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +10
-0+ + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dphy_txesc
Module name is redundant. Drop 'dphy_'.
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml line 41
Quoted 12 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +12
-0+ + resets: + items: + - description: DSITX_TXBYTEHS reset + - description: MIPITX_DPHY_SYS reset + - description: MIPITX_DPHY_TXBYTEHS reset + + reset-names: + items: + - const: dsi_txbytehs + - const: dphy_sys + - const: dphy_txbytehs
Drop 'dphy_'.
Is 'dsi_txbytehs' really a part of the DPHY block? Sounds like it is part of the DSI block. If so, the reset belongs there. If the phy driver needs it, then it needs to go find the DSI block and get its reset.
Quoted 36 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +33
-0+ + power-domains: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - power-domains + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@295e0000 { + compatible = "starfive,jh7110-dphy-tx"; + reg = <0x295e0000 0x10000>; + clocks = <&voutcrg 14>; + clock-names = "dphy_txesc"; + resets = <&syscrg 7>, + <&syscrg 10>, + <&syscrg 11>; + reset-names = "dsi_txbytehs", "dphy_sys", "dphy_txbytehs"; + power-domains = <&aon_syscon 0>; + #phy-cells = <0>; + };Signature · 1 line
2.17.1
Re: [PATCH v1 1/2] dt-bindings: phy: Add starfive,jh7110-dphy-tx
Dear Rob,
Thank you for your review and comment
Quoted 39 lines · Rob Herring
Quoted 38 lines · Shengyang Chen
StarFive SoCs like the jh7110 use a MIPI D-PHY TX controller based on a M31 IP. Add a binding for it.
Signed-off-by Shengyang Chen <[email protected]>--- .../bindings/phy/starfive,jh7110-dphy-tx.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yamlDocumentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +23
-0@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Starfive SoC MIPI D-PHY Tx Controller + +maintainers: + - Keith Zhao <[email protected]> + - Shengyang Chen <[email protected]> + +description: + The Starfive SoC uses the MIPI DSI D-PHY based on M31 IP to transfer + DSI data. + +properties: + compatible: + const: starfive,jh7110-dphy-tx + + reg: + maxItems: 1 +
Quoted 9 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml line 29
Quoted 6 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +6
-0+ clocks: + maxItems: 1 + + clock-names: + items: + - const: dphy_txescModule name is redundant. Drop '
dphy_'.
OK, will drop "dphy_".
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +6
-0+ + resets: + items: + - description: DSITX_TXBYTEHS reset + - description: MIPITX_DPHY_SYS reset + - description: MIPITX_DPHY_TXBYTEHS reset
Quoted 9 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml line 41
Quoted 6 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +6
-0+ + reset-names: + items: + - const: dsi_txbytehs + - const: dphy_sys + - const: dphy_txbytehsDrop '
dphy_'.
OK, will drop "dphy_".
Quoted 4 lines
Is '
dsi_txbytehs' really a part of the DPHY block? Sounds like it is part of the DSI block. If so, the reset belongs there. If the phy driver needs it, then it needs to go find the DSI block and get its reset.
"dsi_txbytehs" is a reset of DSI block, it will be put back to DSI block and remove from DPHY block.
Quoted 28 lines
Quoted 28 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +28
-0+ + power-domains: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - power-domains + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@295e0000 { + compatible = "starfive,jh7110-dphy-tx"; + reg = <0x295e0000 0x10000>; + clocks = <&voutcrg 14>; + clock-names = "dphy_txesc"; + resets = <&syscrg 7>, + <&syscrg 10>,
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file +5
-0+ <&syscrg 11>; + reset-names = "dsi_txbytehs", "dphy_sys", "dphy_txbytehs"; + power-domains = <&aon_syscon 0>; + #phy-cells = <0>; + };Signature · 1 line
2.17.1
thanks a lot.
Best Regards,
Shengyang
Vinod Koul
maintainerRe: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Shengyang ChenQuoted 2 lines · Shengyang Chen
Add mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data.
How different is this from RX driver? Cant the support be added in the TX driver with a new compatible?
Quoted 609 lines
Signed-off-by Shengyang Chen <[email protected]>--- MAINTAINERS | 7 + drivers/phy/starfive/Kconfig | 10 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-dphy-tx.c | 542 ++++++++++++++++++++++ 4 files changed, 560 insertions(+) create mode 100644 drivers/phy/starfive/phy-jh7110-dphy-tx.cMAINTAINERS +7
-0@@ -20677,6 +20677,13 @@ S: Supported F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml F: drivers/phy/starfive/phy-jh7110-dphy-rx.c +STARFIVE JH7110 DPHY TX DRIVER +M: Keith Zhao <[email protected]> +M: Shengyang Chen <[email protected]> +S: Supported +F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml +F: drivers/phy/starfive/phy-jh7110-dphy-tx.c + STARFIVE JH7110 MMC/SD/SDIO DRIVER M: William Qiu <[email protected]> S: Supporteddrivers/phy/starfive/Kconfig +10
-0@@ -15,6 +15,16 @@ config PHY_STARFIVE_JH7110_DPHY_RX system. If M is selected, the module will be called phy-jh7110-dphy-rx.ko. +config PHY_STARFIVE_JH7110_DPHY_TX + tristate "StarFive JH7110 D-PHY TX Support" + depends on HAS_IOMEM + select GENERIC_PHY + select GENERIC_PHY_MIPI_DPHY + help + Choose this option if you have a StarFive D-PHY TX in your + system. If M is selected, the module will be called + phy-jh7110-dphy-tx.ko. + config PHY_STARFIVE_JH7110_PCIE tristate "Starfive JH7110 PCIE 2.0/USB 3.0 PHY support" depends on HAS_IOMEMdrivers/phy/starfive/Makefile +1
-0@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o +obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX) += phy-jh7110-dphy-tx.o obj-$(CONFIG_PHY_STARFIVE_JH7110_PCIE) += phy-jh7110-pcie.o obj-$(CONFIG_PHY_STARFIVE_JH7110_USB) += phy-jh7110-usb.odrivers/phy/starfive/phy-jh7110-dphy-tx.c new file +542
-0@@ -0,0 +1,542 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* DPHY TX driver for the StarFive JH7110 SoC +* +* Copyright (C) 2023 StarFive Technology Co., Ltd. +* Author: Keith Zhao <[email protected]> +* Author: Shengyang Chen <[email protected]> +*/ + +#include <linux/clk.h> +#include <linux/io.h> +#include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> +#include <linux/phy/phy.h> +#include <linux/phy/phy-mipi-dphy.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <linux/regulator/consumer.h> +#include <linux/reset.h> + +#define STF_DPHY_APBIFSAIF_SYSCFG (x) (x) + +#define STF_DPHY_AON_POWER_READY_N_SHIFT 0x0U +#define STF_DPHY_AON_POWER_READY_N_MASK BIT(0) +#define STF_DPHY_CFG_L0_SWAP_SEL_SHIFT 0xCU +#define STF_DPHY_CFG_L0_SWAP_SEL_MASK GENMASK(14, 12) +#define STF_DPHY_CFG_L1_SWAP_SEL_SHIFT 0xFU +#define STF_DPHY_CFG_L1_SWAP_SEL_MASK GENMASK(17, 15) +#define STF_DPHY_CFG_L2_SWAP_SEL_SHIFT 0x12U +#define STF_DPHY_CFG_L2_SWAP_SEL_MASK GENMASK(20, 18) +#define STF_DPHY_CFG_L3_SWAP_SEL_SHIFT 0x15U +#define STF_DPHY_CFG_L3_SWAP_SEL_MASK GENMASK(23, 21) +#define STF_DPHY_CFG_L4_SWAP_SEL_SHIFT 0x18U +#define STF_DPHY_CFG_L4_SWAP_SEL_MASK GENMASK(26, 24) +#define STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT 0x12U +#define STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK BIT(18) +#define STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT 0x13U +#define STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK GENMASK(23, 19) +#define STF_DPHY_RG_CDTX_L0P_HSTX_RES_SHIFT 0x18U +#define STF_DPHY_RG_CDTX_L0P_HSTX_RES_MASK GENMASK(28, 24) + +#define STF_DPHY_RG_CDTX_L1P_HSTX_RES_SHIFT 0x5U +#define STF_DPHY_RG_CDTX_L1P_HSTX_RES_MASK GENMASK(9, 5) +#define STF_DPHY_RG_CDTX_L2N_HSTX_RES_SHIFT 0xAU +#define STF_DPHY_RG_CDTX_L2N_HSTX_RES_MASK GENMASK(14, 10) +#define STF_DPHY_RG_CDTX_L2P_HSTX_RES_SHIFT 0xFU +#define STF_DPHY_RG_CDTX_L2P_HSTX_RES_MASK GENMASK(19, 15) +#define STF_DPHY_RG_CDTX_L3N_HSTX_RES_SHIFT 0x14U +#define STF_DPHY_RG_CDTX_L3N_HSTX_RES_MASK GENMASK(24, 20) +#define STF_DPHY_RG_CDTX_L3P_HSTX_RES_SHIFT 0x19U +#define STF_DPHY_RG_CDTX_L3P_HSTX_RES_MASK GENMASK(29, 25) + +#define STF_DPHY_RG_CDTX_L4N_HSTX_RES_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_L4N_HSTX_RES_MASK GENMASK(4, 0) +#define STF_DPHY_RG_CDTX_L4P_HSTX_RES_SHIFT 0x5U +#define STF_DPHY_RG_CDTX_L4P_HSTX_RES_MASK GENMASK(9, 5) +#define STF_DPHY_RG_CDTX_PLL_FBK_FRA_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_PLL_FBK_FRA_MASK GENMASK(23, 0) + +#define STF_DPHY_RG_CDTX_PLL_FBK_INT_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_PLL_FBK_INT_MASK GENMASK(8, 0) +#define STF_DPHY_RG_CDTX_PLL_FM_EN_SHIFT 0x9U +#define STF_DPHY_RG_CDTX_PLL_FM_EN_MASK BIT(9) +#define STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_SHIFT 0xAU +#define STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_MASK BIT(10) +#define STF_DPHY_RG_CDTX_PLL_PRE_DIV_SHIFT 0xBU +#define STF_DPHY_RG_CDTX_PLL_PRE_DIV_MASK GENMASK(12, 11) + +#define STF_DPHY_RG_CDTX_PLL_SSC_EN_SHIFT 0x12U +#define STF_DPHY_RG_CDTX_PLL_SSC_EN_MASK 0x40000U + +#define STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_SHIFT 0x0U +#define STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_MASK GENMASK(7, 0) +#define STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_SHIFT 0x8U +#define STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_MASK GENMASK(15, 8) +#define STF_DPHY_RG_CLANE_HS_PRE_TIME_SHIFT 0x10U +#define STF_DPHY_RG_CLANE_HS_PRE_TIME_MASK GENMASK(23, 16) +#define STF_DPHY_RG_CLANE_HS_TRAIL_TIME_SHIFT 0x18U +#define STF_DPHY_RG_CLANE_HS_TRAIL_TIME_MASK GENMASK(31, 24) + +#define STF_DPHY_RG_CLANE_HS_ZERO_TIME_SHIFT 0x0U +#define STF_DPHY_RG_CLANE_HS_ZERO_TIME_MASK GENMASK(7, 0) +#define STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT 0x8U +#define STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK GENMASK(15, 8) +#define STF_DPHY_RG_DLANE_HS_TRAIL_TIME_SHIFT 0x10U +#define STF_DPHY_RG_DLANE_HS_TRAIL_TIME_MASK GENMASK(23, 16) +#define STF_DPHY_RG_DLANE_HS_ZERO_TIME_SHIFT 0x18U +#define STF_DPHY_RG_DLANE_HS_ZERO_TIME_MASK GENMASK(31, 24) + +#define STF_DPHY_RG_EXTD_CYCLE_SEL_SHIFT 0x0U +#define STF_DPHY_RG_EXTD_CYCLE_SEL_MASK GENMASK(2, 0) +#define STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_SHIFT 0x0U +#define STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_MASK GENMASK(31, 0) + +#define STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_SHIFT 0x1U +#define STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_MASK GENMASK(2, 1) +#define STF_DPHY_SCFG_PPI_C_READY_SEL_SHIFT 0x3U +#define STF_DPHY_SCFG_PPI_C_READY_SEL_MASK GENMASK(4, 3) + +#define STF_DPHY_REFCLK_IN_SEL_SHIFT 0x1AU +#define STF_DPHY_REFCLK_IN_SEL_MASK GENMASK(28, 26) +#define STF_DPHY_RESETB_SHIFT 0x1DU +#define STF_DPHY_RESETB_MASK BIT(29) + +#define STF_DPHY_REFCLK_12M 1 +#define STF_DPHY_BITRATE_ALIGN 10000000 + +#define STF_MAP_LANES_NUM 5 + +struct m31_dphy_config { +int ref_clk; +unsigned long bitrate; +u32 pll_prev_div; +u32 pll_fbk_int; +u32 pll_fbk_fra; +u32 extd_cycle_sel; +u32 dlane_hs_pre_time; +u32 dlane_hs_zero_time; +u32 dlane_hs_trail_time; +u32 clane_hs_pre_time; +u32 clane_hs_zero_time; +u32 clane_hs_trail_time; +u32 clane_hs_clk_pre_time; +u32 clane_hs_clk_post_time; +}; + +static const struct m31_dphy_config m31_dphy_configs[] = { + {12000000 ,490000000 ,0x0 ,0xa3 ,0x55 <<16 |0x55 <<8 |0x55 , +0x2 ,0xc ,0x1d ,0x14 ,0x8 ,0x42 ,0x12 ,0x3 ,0x28 }, + {12000000 ,680000000 ,0x0 ,0x71 ,0x55 <<16 |0x55 <<8 |0x55 , +0x1 ,0x8 ,0x13 ,0xe ,0x5 ,0x2e ,0xd ,0x1 ,0x16 }, + {12000000 ,750000000 ,0x0 ,0x7d ,0x0 <<16 |0x0 <<8 |0x0 , +0x1 ,0x8 ,0x16 ,0xf ,0x6 ,0x32 ,0xe ,0x1 ,0x17 }, + {12000000 ,900000000 ,0x0 ,0x96 ,0x0 <<16 |0x0 <<8 |0x0 , +0x1 ,0xa ,0x19 ,0x12 ,0x8 ,0x3c ,0x10 ,0x1 ,0x19 }, +}; + +struct stf_dphy_info { +/** +* @maps: +* +* Physical lanes and logic lanes mapping table. +* +* The default order is: +* [data lane 0, data lane 1, data lane 2, date lane 3, clk lane] +*/ +u8 maps[STF_MAP_LANES_NUM ]; +}; + +struct stf_dphy { +struct device *dev; +void __iomem *topsys; +struct clk *txesc_clk; +struct reset_control *sys_rst; +struct reset_control *txbytehs_rst; + +struct phy_configure_opts_mipi_dphy config; + +struct regulator *mipitx_1p8; +struct regulator *mipitx_0p9; + +struct phy *phy; +const struct stf_dphy_info *info; +}; + +static inline u32 stf_dphy_get_reg (void *io_addr,u32 addr,u32 shift,u32 mask) +{ +u32 tmp; + + tmp =readl (io_addr); + tmp = (tmp & mask) >> shift; +return tmp; +} + +static inline void stf_dphy_set_reg (void *io_addr,u32 addr,u32 data,u32 shift,u32 mask) +{ +u32 tmp; + + tmp =readl (io_addr + addr); + tmp &= ~mask; + tmp |= (data << shift) & mask; +writel (tmp, (io_addr + addr)); +} + +static int is_pll_locked (struct stf_dphy *dphy) +{ +int tmp =stf_dphy_get_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ), +STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT , +STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK ); +return !tmp; +} + +static void stf_dphy_hw_reset (struct stf_dphy *dphy,int assert) +{ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (100 ), + !assert,STF_DPHY_RESETB_SHIFT ,STF_DPHY_RESETB_MASK ); + +if (!assert) { +/*the lock-in time of pll of M31 is 20us-50ms*/ +while ((!is_pll_locked (dphy)) &&msecs_to_jiffies (50 )) + ; +dev_err (dphy->dev,"MIPI dphy-tx # PLL Locked\n" ); + } +} + +static int stf_dphy_configure (struct phy *phy,union phy_configure_opts *opts) +{ +struct stf_dphy *dphy; +u32 bitrate; +unsigned long alignment; +int i; +const struct m31_dphy_config *p; +const u32 STF_DPHY_AON_POWER_READY_N_active =0 ; +const struct stf_dphy_info *info; + + dphy =phy_get_drvdata (phy); + info = dphy->info; + bitrate = opts->mipi_dphy.hs_clk_rate; + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ),0x10 , +STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L2N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L2N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L3N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L3N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (16 ),0x10 , +STF_DPHY_RG_CDTX_L4N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L4N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ),0x10 , +STF_DPHY_RG_CDTX_L0P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L1P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L1P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L2P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L2P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L3P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L3P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (16 ),0x10 , +STF_DPHY_RG_CDTX_L4P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L4P_HSTX_RES_MASK ); + + alignment =STF_DPHY_BITRATE_ALIGN ; +if (bitrate % alignment) + bitrate += alignment - (bitrate % alignment); + + p = m31_dphy_configs; +for (i =0 ; i <ARRAY_SIZE (m31_dphy_configs); i++, p++) { +if (p->bitrate == bitrate) { +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (100 ), +STF_DPHY_REFCLK_12M ,STF_DPHY_REFCLK_IN_SEL_SHIFT , +STF_DPHY_REFCLK_IN_SEL_MASK ); + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), + STF_DPHY_AON_POWER_READY_N_active, +STF_DPHY_AON_POWER_READY_N_SHIFT , +STF_DPHY_AON_POWER_READY_N_MASK ); + +/*Lane setting*/ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[0 ], +STF_DPHY_CFG_L0_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L0_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[1 ], +STF_DPHY_CFG_L1_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L1_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[2 ], +STF_DPHY_CFG_L2_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L2_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[3 ], +STF_DPHY_CFG_L3_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L3_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[4 ], +STF_DPHY_CFG_L4_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L4_SWAP_SEL_MASK ); +/*PLL setting*/ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (28 ),0x0 , +STF_DPHY_RG_CDTX_PLL_SSC_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_SSC_EN_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ),0x1 , +STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ),0x1 , +STF_DPHY_RG_CDTX_PLL_FM_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_FM_EN_MASK ); + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ), + p->pll_prev_div,STF_DPHY_RG_CDTX_PLL_PRE_DIV_SHIFT , +STF_DPHY_RG_CDTX_PLL_PRE_DIV_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ), + p->pll_fbk_int,STF_DPHY_RG_CDTX_PLL_FBK_INT_SHIFT , +STF_DPHY_RG_CDTX_PLL_FBK_INT_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (20 ), + p->pll_fbk_fra,STF_DPHY_RG_CDTX_PLL_FBK_FRA_SHIFT , +STF_DPHY_RG_CDTX_PLL_FBK_FRA_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (40 ), + p->extd_cycle_sel,STF_DPHY_RG_EXTD_CYCLE_SEL_SHIFT , +STF_DPHY_RG_EXTD_CYCLE_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_pre_time, +STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_pre_time, +STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_zero_time, +STF_DPHY_RG_DLANE_HS_ZERO_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_ZERO_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_trail_time, +STF_DPHY_RG_DLANE_HS_TRAIL_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_TRAIL_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_pre_time, +STF_DPHY_RG_CLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->clane_hs_zero_time, +STF_DPHY_RG_CLANE_HS_ZERO_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_ZERO_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_trail_time, +STF_DPHY_RG_CLANE_HS_TRAIL_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_TRAIL_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_clk_pre_time, +STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_clk_post_time, +STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_MASK ); + +break ; + } + } + +return 0 ; +} + +static int stf_dphy_init (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + +stf_dphy_hw_reset (dphy,0 ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (48 ),0 , +STF_DPHY_SCFG_PPI_C_READY_SEL_SHIFT ,STF_DPHY_SCFG_PPI_C_READY_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (48 ),0 , +STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_SHIFT , +STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (44 ),0x30 , +STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_SHIFT , +STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_MASK ); + + ret =clk_prepare_enable (dphy->txesc_clk); +if (ret) { +dev_err (dphy->dev,"Failed to prepare/enable txesc_clk\n" ); +return ret; + } + + ret =reset_control_deassert (dphy->sys_rst); +if (ret) { +dev_err (dphy->dev,"Failed to deassert sys_rst\n" ); +return ret; + } + + ret =reset_control_deassert (dphy->txbytehs_rst); +if (ret <0 ) { +dev_err (dphy->dev,"Failed to deassert txbytehs_rst\n" ); +return ret; + } + +return 0 ; +} + +static int stf_dphy_exit (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + + ret =reset_control_assert (dphy->txbytehs_rst); +if (ret <0 ) { +dev_err (dphy->dev,"Failed to assert txbytehs_rst\n" ); +return ret; + } + + ret =reset_control_assert (dphy->sys_rst); +if (ret) { +dev_err (dphy->dev,"Failed to assert sys_rst\n" ); +return ret; + } + +clk_disable_unprepare (dphy->txesc_clk); + +stf_dphy_hw_reset (dphy,1 ); + +return 0 ; +} + +static int stf_dphy_power_on (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + + ret =pm_runtime_resume_and_get (dphy->dev); +if (ret <0 ) +return ret; + + ret =regulator_enable (dphy->mipitx_0p9); +if (ret) { +dev_err (dphy->dev,"Cannot enable mipitx_0p9 regulator\n" ); +return ret; + } + +return 0 ; +} + +static int stf_dphy_validate (struct phy *phy,enum phy_mode mode,int submode, +union phy_configure_opts *opts) +{ +if (mode !=PHY_MODE_MIPI_DPHY ) +return -EINVAL ; + +return 0 ; +} + +static int stf_dphy_power_off (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); + +regulator_disable (dphy->mipitx_0p9); + +pm_runtime_put_sync (dphy->dev); + +return 0 ; +} + +static const struct phy_ops stf_dphy_ops = { + .power_on = stf_dphy_power_on, + .power_off = stf_dphy_power_off, + .init = stf_dphy_init, + .exit = stf_dphy_exit, + .configure = stf_dphy_configure, + .validate = stf_dphy_validate, + .owner =THIS_MODULE , +}; + +static int stf_dphy_probe (struct platform_device *pdev) +{ +struct phy_provider *phy_provider; +struct stf_dphy *dphy; +int ret; + + dphy =devm_kzalloc (&pdev->dev,sizeof (*dphy),GFP_KERNEL ); +if (!dphy) +return -ENOMEM ; + + dphy->info =of_device_get_match_data (&pdev->dev); + + dphy->dev = &pdev->dev; +dev_set_drvdata (&pdev->dev, dphy); + + dphy->topsys =devm_platform_ioremap_resource (pdev,0 ); +if (IS_ERR (dphy->topsys)) { + ret =PTR_ERR (dphy->topsys); +return ret; + } + +pm_runtime_enable (&pdev->dev); + + dphy->mipitx_0p9 =devm_regulator_get (&pdev->dev,"mipi_0p9" ); +if (IS_ERR (dphy->mipitx_0p9)) { + ret =PTR_ERR (dphy->mipitx_0p9); +return ret; + } + + dphy->txesc_clk =devm_clk_get (&pdev->dev,"dphy_txesc" ); +if (IS_ERR (dphy->txesc_clk)) { + ret =PTR_ERR (dphy->txesc_clk); +dev_err (&pdev->dev,"txesc_clk get error\n" ); +return ret; + } + + dphy->sys_rst =reset_control_get_exclusive (&pdev->dev,"dphy_sys" ); +if (IS_ERR (dphy->sys_rst)) { + ret =PTR_ERR (dphy->sys_rst); +dev_err (&pdev->dev,"sys_rst get error\n" ); +return ret; + } + + dphy->txbytehs_rst =reset_control_get_exclusive (&pdev->dev,"dsi_txbytehs" ); +if (IS_ERR (dphy->txbytehs_rst)) { +dev_err (&pdev->dev,"Failed to get txbytehs_rst\n" ); +return PTR_ERR (dphy->txbytehs_rst); + } + + dphy->phy =devm_phy_create (&pdev->dev,NULL , &stf_dphy_ops); +if (IS_ERR (dphy->phy)) { + ret =PTR_ERR (dphy->phy); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } +phy_set_drvdata (dphy->phy, dphy); + + phy_provider =devm_of_phy_provider_register (&pdev->dev, of_phy_simple_xlate); +if (IS_ERR (phy_provider)) { + ret =PTR_ERR (phy_provider); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } + +return PTR_ERR_OR_ZERO (phy_provider); +} + +static const struct stf_dphy_info starfive_dphy_info = { + .maps = {0 ,1 ,2 ,3 ,4 }, +}; + +static const struct of_device_id stf_dphy_dt_ids[] = { + { + .compatible ="starfive,jh7110-dphy-tx" , + .data = &starfive_dphy_info, + }, + {/* sentinel */ }, +}; +MODULE_DEVICE_TABLE (of, stf_dphy_dt_ids); + +static struct platform_driver stf_dphy_driver = { + .driver = { + .name ="starfive-dphy-tx" , + .of_match_table = stf_dphy_dt_ids, + }, + .probe = stf_dphy_probe, +}; +module_platform_driver (stf_dphy_driver); + +MODULE_AUTHOR ("Keith Zhao <[email protected]>" ); +MODULE_AUTHOR ("Shengyang Chen <[email protected]>" ); +MODULE_DESCRIPTION ("StarFive JH7110 DPHY TX driver" ); +MODULE_LICENSE ("GPL" );Signature · 1 line
2.17.1
Signature · 1 line
~Vinod
Re: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Shengyang ChenQuoted 5 lines · Shengyang Chen
Add mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data.
Signed-off-by Shengyang Chen <[email protected]>---
[...]
Quoted 6 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +0
-0@@ -0,0 +1,542 @@
[...]
Quoted 2 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +2
-0+static int stf_dphy_probe (struct platform_device *pdev) +{
[...]
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 468
Quoted 4 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +4
-0+ dphy->topsys =devm_platform_ioremap_resource (pdev,0 ); +if (IS_ERR (dphy->topsys)) { + ret =PTR_ERR (dphy->topsys); +return ret;
This could be shortened to:
return PTR_ERR(dphy->topsys);
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 476
Quoted 8 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +8
-0+ } + +pm_runtime_enable (&pdev->dev); + + dphy->mipitx_0p9 =devm_regulator_get (&pdev->dev,"mipi_0p9" ); +if (IS_ERR (dphy->mipitx_0p9)) { + ret =PTR_ERR (dphy->mipitx_0p9); +return ret;
Same as above.
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 483
Quoted 7 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +7
-0+ } + + dphy->txesc_clk =devm_clk_get (&pdev->dev,"dphy_txesc" ); +if (IS_ERR (dphy->txesc_clk)) { + ret =PTR_ERR (dphy->txesc_clk); +dev_err (&pdev->dev,"txesc_clk get error\n" ); +return ret;
Consider using dev_err_probe():
return dev_err_probe(&pdev->dev, PTR_ERR(dphy->txesc_clk), "txesc_clk get error\n");
And the same for the error paths below.
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 486
Quoted 3 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +3
-0+ } + + dphy->sys_rst =reset_control_get_exclusive (&pdev->dev,"dphy_sys" );
Why not devm_reset_control_get_exclusive()?
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 493
Quoted 7 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +7
-0+if (IS_ERR (dphy->sys_rst)) { + ret =PTR_ERR (dphy->sys_rst); +dev_err (&pdev->dev,"sys_rst get error\n" ); +return ret; + } + + dphy->txbytehs_rst =reset_control_get_exclusive (&pdev->dev,"dsi_txbytehs" );
Same as above.
Quoted 11 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +11
-0+if (IS_ERR (dphy->txbytehs_rst)) { +dev_err (&pdev->dev,"Failed to get txbytehs_rst\n" ); +return PTR_ERR (dphy->txbytehs_rst); + } + + dphy->phy =devm_phy_create (&pdev->dev,NULL , &stf_dphy_ops); +if (IS_ERR (dphy->phy)) { + ret =PTR_ERR (dphy->phy); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + }
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 514
Quoted 10 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +10
-0+phy_set_drvdata (dphy->phy, dphy); + + phy_provider =devm_of_phy_provider_register (&pdev->dev, of_phy_simple_xlate); +if (IS_ERR (phy_provider)) { + ret =PTR_ERR (phy_provider); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } + +return PTR_ERR_OR_ZERO (phy_provider);
This can not be reached in the error case, so just:
return 0;
should suffice.
regards
Philipp
Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
kernel test robot
build botRe: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Shengyang Chenkernel test robot noticed the following build warnings:
Hi Shengyang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7-rc3 next-20231130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Shengyang-Chen/dt-bindings-phy-Add-starfive-jh7110-dphy-tx/20231117-210751 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20231117130421.79261-3-shengyang.chen%40starfivetech.com patch subject: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support config: mips-randconfig-r112-20231121 (https://download.01.org/0day-ci/archive/20231201/[email protected]/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20231201/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: got void [noderef] __iomem *topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: expected void *io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: got void [noderef] __iomem *topsys
>> drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void *io_addr @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: got void *io_addr >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef] __iomem *mem drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef] __iomem *mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *
vim +172 drivers/phy/starfive/phy-jh7110-dphy-tx.c
167
168 static inline u32 stf_dphy_get_reg(void *io_addr, u32 addr, u32 shift, u32 mask)
169 {
170 u32 tmp;
171
> 172 tmp = readl(io_addr);
173 tmp = (tmp & mask) >> shift;
174 return tmp;
175 }
176
177 static inline void stf_dphy_set_reg(void *io_addr, u32 addr, u32 data, u32 shift, u32 mask)
178 {
179 u32 tmp;
180
> 181 tmp = readl(io_addr + addr);
182 tmp &= ~mask;
183 tmp |= (data << shift) & mask;
> 184 writel(tmp, (io_addr + addr)); 185 }
186
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botRe: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Shengyang Chenkernel test robot noticed the following build warnings:
Hi Shengyang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7-rc3 next-20231130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Shengyang-Chen/dt-bindings-phy-Add-starfive-jh7110-dphy-tx/20231117-210751 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20231117130421.79261-3-shengyang.chen%40starfivetech.com patch subject: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support config: csky-randconfig-r111-20231118 (https://download.01.org/0day-ci/archive/20231201/[email protected]/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231201/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: got void [noderef] __iomem *topsys >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *io_addr @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: got void *io_addr >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void *
vim +189 drivers/phy/starfive/phy-jh7110-dphy-tx.c
167
168 static inline u32 stf_dphy_get_reg(void *io_addr, u32 addr, u32 shift, u32 mask)
169 {
170 u32 tmp;
171
> 172 tmp = readl(io_addr);
173 tmp = (tmp & mask) >> shift;
174 return tmp;
175 }
176
177 static inline void stf_dphy_set_reg(void *io_addr, u32 addr, u32 data, u32 shift, u32 mask)
178 {
179 u32 tmp;
180
> 181 tmp = readl(io_addr + addr);
182 tmp &= ~mask;
183 tmp |= (data << shift) & mask;
> 184 writel(tmp, (io_addr + addr));
185 }
186
187 static int is_pll_locked(struct stf_dphy *dphy)
188 {
> 189 int tmp = stf_dphy_get_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(8),
190 STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT,
191 STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK);
192 return !tmp;
193 }
194
195 static void stf_dphy_hw_reset(struct stf_dphy *dphy, int assert)
196 {
197 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(100),
198 !assert, STF_DPHY_RESETB_SHIFT, STF_DPHY_RESETB_MASK);
199
200 if (!assert) {
201 /*the lock-in time of pll of M31 is 20us-50ms*/
202 while ((!is_pll_locked(dphy)) && msecs_to_jiffies(50))
203 ;
204 dev_err(dphy->dev, "MIPI dphy-tx # PLL Locked\n");
205 }
206 }
207
208 static int stf_dphy_configure(struct phy *phy, union phy_configure_opts *opts)
209 {
210 struct stf_dphy *dphy;
211 u32 bitrate;
212 unsigned long alignment;
213 int i;
214 const struct m31_dphy_config *p;
215 const u32 STF_DPHY_AON_POWER_READY_N_active = 0;
216 const struct stf_dphy_info *info;
217
218 dphy = phy_get_drvdata(phy);
219 info = dphy->info;
220 bitrate = opts->mipi_dphy.hs_clk_rate;
221
222 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(8), 0x10,
223 STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK);
224 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
225 STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK);
226 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
227 STF_DPHY_RG_CDTX_L2N_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L2N_HSTX_RES_MASK);
228 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
229 STF_DPHY_RG_CDTX_L3N_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L3N_HSTX_RES_MASK);
230 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(16), 0x10,
231 STF_DPHY_RG_CDTX_L4N_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L4N_HSTX_RES_MASK);
232 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(8), 0x10,
233 STF_DPHY_RG_CDTX_L0P_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L0P_HSTX_RES_MASK);
234 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
235 STF_DPHY_RG_CDTX_L1P_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L1P_HSTX_RES_MASK);
236 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
237 STF_DPHY_RG_CDTX_L2P_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L2P_HSTX_RES_MASK);
238 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(12), 0x10,
239 STF_DPHY_RG_CDTX_L3P_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L3P_HSTX_RES_MASK);
240 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(16), 0x10,
241 STF_DPHY_RG_CDTX_L4P_HSTX_RES_SHIFT, STF_DPHY_RG_CDTX_L4P_HSTX_RES_MASK);
242
243 alignment = STF_DPHY_BITRATE_ALIGN;
244 if (bitrate % alignment)
245 bitrate += alignment - (bitrate % alignment);
246
247 p = m31_dphy_configs;
248 for (i = 0; i < ARRAY_SIZE(m31_dphy_configs); i++, p++) {
249 if (p->bitrate == bitrate) {
250 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(100),
251 STF_DPHY_REFCLK_12M, STF_DPHY_REFCLK_IN_SEL_SHIFT,
252 STF_DPHY_REFCLK_IN_SEL_MASK);
253
254 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0),
255 STF_DPHY_AON_POWER_READY_N_active,
256 STF_DPHY_AON_POWER_READY_N_SHIFT,
257 STF_DPHY_AON_POWER_READY_N_MASK);
258
259 /*Lane setting*/
260 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0), info->maps[0],
261 STF_DPHY_CFG_L0_SWAP_SEL_SHIFT,
262 STF_DPHY_CFG_L0_SWAP_SEL_MASK);
263 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0), info->maps[1],
264 STF_DPHY_CFG_L1_SWAP_SEL_SHIFT,
265 STF_DPHY_CFG_L1_SWAP_SEL_MASK);
266 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0), info->maps[2],
267 STF_DPHY_CFG_L2_SWAP_SEL_SHIFT,
268 STF_DPHY_CFG_L2_SWAP_SEL_MASK);
269 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0), info->maps[3],
270 STF_DPHY_CFG_L3_SWAP_SEL_SHIFT,
271 STF_DPHY_CFG_L3_SWAP_SEL_MASK);
272 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(0), info->maps[4],
273 STF_DPHY_CFG_L4_SWAP_SEL_SHIFT,
274 STF_DPHY_CFG_L4_SWAP_SEL_MASK);
275 /*PLL setting*/
276 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(28), 0x0,
277 STF_DPHY_RG_CDTX_PLL_SSC_EN_SHIFT,
278 STF_DPHY_RG_CDTX_PLL_SSC_EN_MASK);
279 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(24), 0x1,
280 STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_SHIFT,
281 STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_MASK);
282 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(24), 0x1,
283 STF_DPHY_RG_CDTX_PLL_FM_EN_SHIFT,
284 STF_DPHY_RG_CDTX_PLL_FM_EN_MASK);
285
286 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(24),
287 p->pll_prev_div, STF_DPHY_RG_CDTX_PLL_PRE_DIV_SHIFT,
288 STF_DPHY_RG_CDTX_PLL_PRE_DIV_MASK);
289 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(24),
290 p->pll_fbk_int, STF_DPHY_RG_CDTX_PLL_FBK_INT_SHIFT,
291 STF_DPHY_RG_CDTX_PLL_FBK_INT_MASK);
292 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(20),
293 p->pll_fbk_fra, STF_DPHY_RG_CDTX_PLL_FBK_FRA_SHIFT,
294 STF_DPHY_RG_CDTX_PLL_FBK_FRA_MASK);
295 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(40),
296 p->extd_cycle_sel, STF_DPHY_RG_EXTD_CYCLE_SEL_SHIFT,
297 STF_DPHY_RG_EXTD_CYCLE_SEL_MASK);
298 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(36),
299 p->dlane_hs_pre_time,
300 STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT,
301 STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK);
302 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(36),
303 p->dlane_hs_pre_time,
304 STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT,
305 STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK);
306 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(36),
307 p->dlane_hs_zero_time,
308 STF_DPHY_RG_DLANE_HS_ZERO_TIME_SHIFT,
309 STF_DPHY_RG_DLANE_HS_ZERO_TIME_MASK);
310 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(36),
311 p->dlane_hs_trail_time,
312 STF_DPHY_RG_DLANE_HS_TRAIL_TIME_SHIFT,
313 STF_DPHY_RG_DLANE_HS_TRAIL_TIME_MASK);
314 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(32),
315 p->clane_hs_pre_time,
316 STF_DPHY_RG_CLANE_HS_PRE_TIME_SHIFT,
317 STF_DPHY_RG_CLANE_HS_PRE_TIME_MASK);
318 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(36),
319 p->clane_hs_zero_time,
320 STF_DPHY_RG_CLANE_HS_ZERO_TIME_SHIFT,
321 STF_DPHY_RG_CLANE_HS_ZERO_TIME_MASK);
322 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(32),
323 p->clane_hs_trail_time,
324 STF_DPHY_RG_CLANE_HS_TRAIL_TIME_SHIFT,
325 STF_DPHY_RG_CLANE_HS_TRAIL_TIME_MASK);
326 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(32),
327 p->clane_hs_clk_pre_time,
328 STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_SHIFT,
329 STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_MASK);
330 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(32),
331 p->clane_hs_clk_post_time,
332 STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_SHIFT,
333 STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_MASK);
334
335 break;
336 }
337 }
338
339 return 0;
340 }
341
342 static int stf_dphy_init(struct phy *phy)
343 {
344 struct stf_dphy *dphy = phy_get_drvdata(phy);
345 int ret;
346
347 stf_dphy_hw_reset(dphy, 0);
> 348 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(48), 0,
349 STF_DPHY_SCFG_PPI_C_READY_SEL_SHIFT, STF_DPHY_SCFG_PPI_C_READY_SEL_MASK);
> 350 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(48), 0,
351 STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_SHIFT,
352 STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_MASK);
> 353 stf_dphy_set_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(44), 0x30, 354 STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_SHIFT,
355 STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_MASK);
356
357 ret = clk_prepare_enable(dphy->txesc_clk);
358 if (ret) {
359 dev_err(dphy->dev, "Failed to prepare/enable txesc_clk\n");
360 return ret;
361 }
362
363 ret = reset_control_deassert(dphy->sys_rst);
364 if (ret) {
365 dev_err(dphy->dev, "Failed to deassert sys_rst\n");
366 return ret;
367 }
368
369 ret = reset_control_deassert(dphy->txbytehs_rst);
370 if (ret < 0) {
371 dev_err(dphy->dev, "Failed to deassert txbytehs_rst\n");
372 return ret;
373 }
374
375 return 0;
376 }
377
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Re: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Vinod KoulHi Vinod,
Thanks for comment.
Quoted 7 lines · Vinod Koul
Quoted 2 lines · Shengyang Chen
Add mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data.
How different is this from RX driver? Cant the support be added in the TX driver with a new compatible?
They are different hardware and they play different role in system.
As I know,
'RX' means receive and 'TX' means transport.
Here, 'RX' is to receive CSI data while 'TX' is to transfer DSI data.
In the system:
The RX driver is a module to receive data from CSI interface like camera sensor, then transfer data to CSI driver. The TX driver is a module to receive data from DSI driver and transfer data to DSI interface like mipi screen. CSI driver will go find its PHY RX and DSI driver will go find its PHY TX during system registering or probing.
For example:
the whole data stream can be like
camera sensor--->PHY RX--->CSI--->ddr--->display controller--->DSI--->PHY TX--->mipi screen
So maybe it cannot be supported by adding the tx driver with a new compatible. It may need a separate driver.
I will discribe it in more detail in next patch version if it's necessarily.
Quoted 601 lines
Quoted 601 lines
Signed-off-by Shengyang Chen <[email protected]>--- MAINTAINERS | 7 + drivers/phy/starfive/Kconfig | 10 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-dphy-tx.c | 542 ++++++++++++++++++++++ 4 files changed, 560 insertions(+) create mode 100644 drivers/phy/starfive/phy-jh7110-dphy-tx.cMAINTAINERS +7
-0@@ -20677,6 +20677,13 @@ S: Supported F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml F: drivers/phy/starfive/phy-jh7110-dphy-rx.c +STARFIVE JH7110 DPHY TX DRIVER +M: Keith Zhao <[email protected]> +M: Shengyang Chen <[email protected]> +S: Supported +F: Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml +F: drivers/phy/starfive/phy-jh7110-dphy-tx.c + STARFIVE JH7110 MMC/SD/SDIO DRIVER M: William Qiu <[email protected]> S: Supporteddrivers/phy/starfive/Kconfig +10
-0@@ -15,6 +15,16 @@ config PHY_STARFIVE_JH7110_DPHY_RX system. If M is selected, the module will be called phy-jh7110-dphy-rx.ko. +config PHY_STARFIVE_JH7110_DPHY_TX + tristate "StarFive JH7110 D-PHY TX Support" + depends on HAS_IOMEM + select GENERIC_PHY + select GENERIC_PHY_MIPI_DPHY + help + Choose this option if you have a StarFive D-PHY TX in your + system. If M is selected, the module will be called + phy-jh7110-dphy-tx.ko. + config PHY_STARFIVE_JH7110_PCIE tristate "Starfive JH7110 PCIE 2.0/USB 3.0 PHY support" depends on HAS_IOMEMdrivers/phy/starfive/Makefile +1
-0@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o +obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX) += phy-jh7110-dphy-tx.o obj-$(CONFIG_PHY_STARFIVE_JH7110_PCIE) += phy-jh7110-pcie.o obj-$(CONFIG_PHY_STARFIVE_JH7110_USB) += phy-jh7110-usb.odrivers/phy/starfive/phy-jh7110-dphy-tx.c new file +536
-0@@ -0,0 +1,542 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* DPHY TX driver for the StarFive JH7110 SoC +* +* Copyright (C) 2023 StarFive Technology Co., Ltd. +* Author: Keith Zhao <[email protected]> +* Author: Shengyang Chen <[email protected]> +*/ + +#include <linux/clk.h> +#include <linux/io.h> +#include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_device.h> +#include <linux/phy/phy.h> +#include <linux/phy/phy-mipi-dphy.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <linux/regulator/consumer.h> +#include <linux/reset.h> + +#define STF_DPHY_APBIFSAIF_SYSCFG (x) (x) + +#define STF_DPHY_AON_POWER_READY_N_SHIFT 0x0U +#define STF_DPHY_AON_POWER_READY_N_MASK BIT(0) +#define STF_DPHY_CFG_L0_SWAP_SEL_SHIFT 0xCU +#define STF_DPHY_CFG_L0_SWAP_SEL_MASK GENMASK(14, 12) +#define STF_DPHY_CFG_L1_SWAP_SEL_SHIFT 0xFU +#define STF_DPHY_CFG_L1_SWAP_SEL_MASK GENMASK(17, 15) +#define STF_DPHY_CFG_L2_SWAP_SEL_SHIFT 0x12U +#define STF_DPHY_CFG_L2_SWAP_SEL_MASK GENMASK(20, 18) +#define STF_DPHY_CFG_L3_SWAP_SEL_SHIFT 0x15U +#define STF_DPHY_CFG_L3_SWAP_SEL_MASK GENMASK(23, 21) +#define STF_DPHY_CFG_L4_SWAP_SEL_SHIFT 0x18U +#define STF_DPHY_CFG_L4_SWAP_SEL_MASK GENMASK(26, 24) +#define STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT 0x12U +#define STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK BIT(18) +#define STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT 0x13U +#define STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK GENMASK(23, 19) +#define STF_DPHY_RG_CDTX_L0P_HSTX_RES_SHIFT 0x18U +#define STF_DPHY_RG_CDTX_L0P_HSTX_RES_MASK GENMASK(28, 24) + +#define STF_DPHY_RG_CDTX_L1P_HSTX_RES_SHIFT 0x5U +#define STF_DPHY_RG_CDTX_L1P_HSTX_RES_MASK GENMASK(9, 5) +#define STF_DPHY_RG_CDTX_L2N_HSTX_RES_SHIFT 0xAU +#define STF_DPHY_RG_CDTX_L2N_HSTX_RES_MASK GENMASK(14, 10) +#define STF_DPHY_RG_CDTX_L2P_HSTX_RES_SHIFT 0xFU +#define STF_DPHY_RG_CDTX_L2P_HSTX_RES_MASK GENMASK(19, 15) +#define STF_DPHY_RG_CDTX_L3N_HSTX_RES_SHIFT 0x14U +#define STF_DPHY_RG_CDTX_L3N_HSTX_RES_MASK GENMASK(24, 20) +#define STF_DPHY_RG_CDTX_L3P_HSTX_RES_SHIFT 0x19U +#define STF_DPHY_RG_CDTX_L3P_HSTX_RES_MASK GENMASK(29, 25) + +#define STF_DPHY_RG_CDTX_L4N_HSTX_RES_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_L4N_HSTX_RES_MASK GENMASK(4, 0) +#define STF_DPHY_RG_CDTX_L4P_HSTX_RES_SHIFT 0x5U +#define STF_DPHY_RG_CDTX_L4P_HSTX_RES_MASK GENMASK(9, 5) +#define STF_DPHY_RG_CDTX_PLL_FBK_FRA_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_PLL_FBK_FRA_MASK GENMASK(23, 0) + +#define STF_DPHY_RG_CDTX_PLL_FBK_INT_SHIFT 0x0U +#define STF_DPHY_RG_CDTX_PLL_FBK_INT_MASK GENMASK(8, 0) +#define STF_DPHY_RG_CDTX_PLL_FM_EN_SHIFT 0x9U +#define STF_DPHY_RG_CDTX_PLL_FM_EN_MASK BIT(9) +#define STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_SHIFT 0xAU +#define STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_MASK BIT(10) +#define STF_DPHY_RG_CDTX_PLL_PRE_DIV_SHIFT 0xBU +#define STF_DPHY_RG_CDTX_PLL_PRE_DIV_MASK GENMASK(12, 11) + +#define STF_DPHY_RG_CDTX_PLL_SSC_EN_SHIFT 0x12U +#define STF_DPHY_RG_CDTX_PLL_SSC_EN_MASK 0x40000U + +#define STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_SHIFT 0x0U +#define STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_MASK GENMASK(7, 0) +#define STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_SHIFT 0x8U +#define STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_MASK GENMASK(15, 8) +#define STF_DPHY_RG_CLANE_HS_PRE_TIME_SHIFT 0x10U +#define STF_DPHY_RG_CLANE_HS_PRE_TIME_MASK GENMASK(23, 16) +#define STF_DPHY_RG_CLANE_HS_TRAIL_TIME_SHIFT 0x18U +#define STF_DPHY_RG_CLANE_HS_TRAIL_TIME_MASK GENMASK(31, 24) + +#define STF_DPHY_RG_CLANE_HS_ZERO_TIME_SHIFT 0x0U +#define STF_DPHY_RG_CLANE_HS_ZERO_TIME_MASK GENMASK(7, 0) +#define STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT 0x8U +#define STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK GENMASK(15, 8) +#define STF_DPHY_RG_DLANE_HS_TRAIL_TIME_SHIFT 0x10U +#define STF_DPHY_RG_DLANE_HS_TRAIL_TIME_MASK GENMASK(23, 16) +#define STF_DPHY_RG_DLANE_HS_ZERO_TIME_SHIFT 0x18U +#define STF_DPHY_RG_DLANE_HS_ZERO_TIME_MASK GENMASK(31, 24) + +#define STF_DPHY_RG_EXTD_CYCLE_SEL_SHIFT 0x0U +#define STF_DPHY_RG_EXTD_CYCLE_SEL_MASK GENMASK(2, 0) +#define STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_SHIFT 0x0U +#define STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_MASK GENMASK(31, 0) + +#define STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_SHIFT 0x1U +#define STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_MASK GENMASK(2, 1) +#define STF_DPHY_SCFG_PPI_C_READY_SEL_SHIFT 0x3U +#define STF_DPHY_SCFG_PPI_C_READY_SEL_MASK GENMASK(4, 3) + +#define STF_DPHY_REFCLK_IN_SEL_SHIFT 0x1AU +#define STF_DPHY_REFCLK_IN_SEL_MASK GENMASK(28, 26) +#define STF_DPHY_RESETB_SHIFT 0x1DU +#define STF_DPHY_RESETB_MASK BIT(29) + +#define STF_DPHY_REFCLK_12M 1 +#define STF_DPHY_BITRATE_ALIGN 10000000 + +#define STF_MAP_LANES_NUM 5 + +struct m31_dphy_config { +int ref_clk; +unsigned long bitrate; +u32 pll_prev_div; +u32 pll_fbk_int; +u32 pll_fbk_fra; +u32 extd_cycle_sel; +u32 dlane_hs_pre_time; +u32 dlane_hs_zero_time; +u32 dlane_hs_trail_time; +u32 clane_hs_pre_time; +u32 clane_hs_zero_time; +u32 clane_hs_trail_time; +u32 clane_hs_clk_pre_time; +u32 clane_hs_clk_post_time; +}; + +static const struct m31_dphy_config m31_dphy_configs[] = { + {12000000 ,490000000 ,0x0 ,0xa3 ,0x55 <<16 |0x55 <<8 |0x55 , +0x2 ,0xc ,0x1d ,0x14 ,0x8 ,0x42 ,0x12 ,0x3 ,0x28 }, + {12000000 ,680000000 ,0x0 ,0x71 ,0x55 <<16 |0x55 <<8 |0x55 , +0x1 ,0x8 ,0x13 ,0xe ,0x5 ,0x2e ,0xd ,0x1 ,0x16 }, + {12000000 ,750000000 ,0x0 ,0x7d ,0x0 <<16 |0x0 <<8 |0x0 , +0x1 ,0x8 ,0x16 ,0xf ,0x6 ,0x32 ,0xe ,0x1 ,0x17 }, + {12000000 ,900000000 ,0x0 ,0x96 ,0x0 <<16 |0x0 <<8 |0x0 , +0x1 ,0xa ,0x19 ,0x12 ,0x8 ,0x3c ,0x10 ,0x1 ,0x19 }, +}; + +struct stf_dphy_info { +/** +* @maps: +* +* Physical lanes and logic lanes mapping table. +* +* The default order is: +* [data lane 0, data lane 1, data lane 2, date lane 3, clk lane] +*/ +u8 maps[STF_MAP_LANES_NUM ]; +}; + +struct stf_dphy { +struct device *dev; +void __iomem *topsys; +struct clk *txesc_clk; +struct reset_control *sys_rst; +struct reset_control *txbytehs_rst; + +struct phy_configure_opts_mipi_dphy config; + +struct regulator *mipitx_1p8; +struct regulator *mipitx_0p9; + +struct phy *phy; +const struct stf_dphy_info *info; +}; + +static inline u32 stf_dphy_get_reg (void *io_addr,u32 addr,u32 shift,u32 mask) +{ +u32 tmp; + + tmp =readl (io_addr); + tmp = (tmp & mask) >> shift; +return tmp; +} + +static inline void stf_dphy_set_reg (void *io_addr,u32 addr,u32 data,u32 shift,u32 mask) +{ +u32 tmp; + + tmp =readl (io_addr + addr); + tmp &= ~mask; + tmp |= (data << shift) & mask; +writel (tmp, (io_addr + addr)); +} + +static int is_pll_locked (struct stf_dphy *dphy) +{ +int tmp =stf_dphy_get_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ), +STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT , +STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK ); +return !tmp; +} + +static void stf_dphy_hw_reset (struct stf_dphy *dphy,int assert) +{ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (100 ), + !assert,STF_DPHY_RESETB_SHIFT ,STF_DPHY_RESETB_MASK ); + +if (!assert) { +/*the lock-in time of pll of M31 is 20us-50ms*/ +while ((!is_pll_locked (dphy)) &&msecs_to_jiffies (50 )) + ; +dev_err (dphy->dev,"MIPI dphy-tx # PLL Locked\n" ); + } +} + +static int stf_dphy_configure (struct phy *phy,union phy_configure_opts *opts) +{ +struct stf_dphy *dphy; +u32 bitrate; +unsigned long alignment; +int i; +const struct m31_dphy_config *p; +const u32 STF_DPHY_AON_POWER_READY_N_active =0 ; +const struct stf_dphy_info *info; + + dphy =phy_get_drvdata (phy); + info = dphy->info; + bitrate = opts->mipi_dphy.hs_clk_rate; + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ),0x10 , +STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L0N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L2N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L2N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L3N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L3N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (16 ),0x10 , +STF_DPHY_RG_CDTX_L4N_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L4N_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (8 ),0x10 , +STF_DPHY_RG_CDTX_L0P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L0P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L1P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L1P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L2P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L2P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (12 ),0x10 , +STF_DPHY_RG_CDTX_L3P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L3P_HSTX_RES_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (16 ),0x10 , +STF_DPHY_RG_CDTX_L4P_HSTX_RES_SHIFT ,STF_DPHY_RG_CDTX_L4P_HSTX_RES_MASK ); + + alignment =STF_DPHY_BITRATE_ALIGN ; +if (bitrate % alignment) + bitrate += alignment - (bitrate % alignment); + + p = m31_dphy_configs; +for (i =0 ; i <ARRAY_SIZE (m31_dphy_configs); i++, p++) { +if (p->bitrate == bitrate) { +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (100 ), +STF_DPHY_REFCLK_12M ,STF_DPHY_REFCLK_IN_SEL_SHIFT , +STF_DPHY_REFCLK_IN_SEL_MASK ); + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), + STF_DPHY_AON_POWER_READY_N_active, +STF_DPHY_AON_POWER_READY_N_SHIFT , +STF_DPHY_AON_POWER_READY_N_MASK ); + +/*Lane setting*/ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[0 ], +STF_DPHY_CFG_L0_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L0_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[1 ], +STF_DPHY_CFG_L1_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L1_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[2 ], +STF_DPHY_CFG_L2_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L2_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[3 ], +STF_DPHY_CFG_L3_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L3_SWAP_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (0 ), info->maps[4 ], +STF_DPHY_CFG_L4_SWAP_SEL_SHIFT , +STF_DPHY_CFG_L4_SWAP_SEL_MASK ); +/*PLL setting*/ +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (28 ),0x0 , +STF_DPHY_RG_CDTX_PLL_SSC_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_SSC_EN_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ),0x1 , +STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_LDO_STB_X2_EN_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ),0x1 , +STF_DPHY_RG_CDTX_PLL_FM_EN_SHIFT , +STF_DPHY_RG_CDTX_PLL_FM_EN_MASK ); + +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ), + p->pll_prev_div,STF_DPHY_RG_CDTX_PLL_PRE_DIV_SHIFT , +STF_DPHY_RG_CDTX_PLL_PRE_DIV_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (24 ), + p->pll_fbk_int,STF_DPHY_RG_CDTX_PLL_FBK_INT_SHIFT , +STF_DPHY_RG_CDTX_PLL_FBK_INT_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (20 ), + p->pll_fbk_fra,STF_DPHY_RG_CDTX_PLL_FBK_FRA_SHIFT , +STF_DPHY_RG_CDTX_PLL_FBK_FRA_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (40 ), + p->extd_cycle_sel,STF_DPHY_RG_EXTD_CYCLE_SEL_SHIFT , +STF_DPHY_RG_EXTD_CYCLE_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_pre_time, +STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_pre_time, +STF_DPHY_RG_DLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_zero_time, +STF_DPHY_RG_DLANE_HS_ZERO_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_ZERO_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->dlane_hs_trail_time, +STF_DPHY_RG_DLANE_HS_TRAIL_TIME_SHIFT , +STF_DPHY_RG_DLANE_HS_TRAIL_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_pre_time, +STF_DPHY_RG_CLANE_HS_PRE_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (36 ), + p->clane_hs_zero_time, +STF_DPHY_RG_CLANE_HS_ZERO_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_ZERO_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_trail_time, +STF_DPHY_RG_CLANE_HS_TRAIL_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_TRAIL_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_clk_pre_time, +STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_CLK_PRE_TIME_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (32 ), + p->clane_hs_clk_post_time, +STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_SHIFT , +STF_DPHY_RG_CLANE_HS_CLK_POST_TIME_MASK ); + +break ; + } + } + +return 0 ; +} + +static int stf_dphy_init (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + +stf_dphy_hw_reset (dphy,0 ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (48 ),0 , +STF_DPHY_SCFG_PPI_C_READY_SEL_SHIFT ,STF_DPHY_SCFG_PPI_C_READY_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (48 ),0 , +STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_SHIFT , +STF_DPHY_SCFG_DSI_TXREADY_ESC_SEL_MASK ); +stf_dphy_set_reg (dphy->topsys,STF_DPHY_APBIFSAIF_SYSCFG (44 ),0x30 , +STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_SHIFT , +STF_DPHY_SCFG_C_HS_PRE_ZERO_TIME_MASK ); + + ret =clk_prepare_enable (dphy->txesc_clk); +if (ret) { +dev_err (dphy->dev,"Failed to prepare/enable txesc_clk\n" ); +return ret; + } + + ret =reset_control_deassert (dphy->sys_rst); +if (ret) { +dev_err (dphy->dev,"Failed to deassert sys_rst\n" ); +return ret; + } + + ret =reset_control_deassert (dphy->txbytehs_rst); +if (ret <0 ) { +dev_err (dphy->dev,"Failed to deassert txbytehs_rst\n" ); +return ret; + } + +return 0 ; +} + +static int stf_dphy_exit (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + + ret =reset_control_assert (dphy->txbytehs_rst); +if (ret <0 ) { +dev_err (dphy->dev,"Failed to assert txbytehs_rst\n" ); +return ret; + } + + ret =reset_control_assert (dphy->sys_rst); +if (ret) { +dev_err (dphy->dev,"Failed to assert sys_rst\n" ); +return ret; + } + +clk_disable_unprepare (dphy->txesc_clk); + +stf_dphy_hw_reset (dphy,1 ); + +return 0 ; +} + +static int stf_dphy_power_on (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); +int ret; + + ret =pm_runtime_resume_and_get (dphy->dev); +if (ret <0 ) +return ret; + + ret =regulator_enable (dphy->mipitx_0p9); +if (ret) { +dev_err (dphy->dev,"Cannot enable mipitx_0p9 regulator\n" ); +return ret; + } + +return 0 ; +} + +static int stf_dphy_validate (struct phy *phy,enum phy_mode mode,int submode, +union phy_configure_opts *opts) +{ +if (mode !=PHY_MODE_MIPI_DPHY ) +return -EINVAL ; + +return 0 ; +} + +static int stf_dphy_power_off (struct phy *phy) +{ +struct stf_dphy *dphy =phy_get_drvdata (phy); + +regulator_disable (dphy->mipitx_0p9); + +pm_runtime_put_sync (dphy->dev); + +return 0 ; +} + +static const struct phy_ops stf_dphy_ops = { + .power_on = stf_dphy_power_on, + .power_off = stf_dphy_power_off, + .init = stf_dphy_init, + .exit = stf_dphy_exit, + .configure = stf_dphy_configure, + .validate = stf_dphy_validate, + .owner =THIS_MODULE , +}; + +static int stf_dphy_probe (struct platform_device *pdev) +{ +struct phy_provider *phy_provider; +struct stf_dphy *dphy; +int ret; + + dphy =devm_kzalloc (&pdev->dev,sizeof (*dphy),GFP_KERNEL ); +if (!dphy) +return -ENOMEM ; + + dphy->info =of_device_get_match_data (&pdev->dev); + + dphy->dev = &pdev->dev; +dev_set_drvdata (&pdev->dev, dphy); + + dphy->topsys =devm_platform_ioremap_resource (pdev,0 ); +if (IS_ERR (dphy->topsys)) { + ret =PTR_ERR (dphy->topsys); +return ret; + } + +pm_runtime_enable (&pdev->dev); + + dphy->mipitx_0p9 =devm_regulator_get (&pdev->dev,"mipi_0p9" ); +if (IS_ERR (dphy->mipitx_0p9)) { + ret =PTR_ERR (dphy->mipitx_0p9); +return ret; + } + + dphy->txesc_clk =devm_clk_get (&pdev->dev,"dphy_txesc" ); +if (IS_ERR (dphy->txesc_clk)) { + ret =PTR_ERR (dphy->txesc_clk); +dev_err (&pdev->dev,"txesc_clk get error\n" ); +return ret; + } + + dphy->sys_rst =reset_control_get_exclusive (&pdev->dev,"dphy_sys" ); +if (IS_ERR (dphy->sys_rst)) { + ret =PTR_ERR (dphy->sys_rst); +dev_err (&pdev->dev,"sys_rst get error\n" ); +return ret; + } + + dphy->txbytehs_rst =reset_control_get_exclusive (&pdev->dev,"dsi_txbytehs" ); +if (IS_ERR (dphy->txbytehs_rst)) { +dev_err (&pdev->dev,"Failed to get txbytehs_rst\n" ); +return PTR_ERR (dphy->txbytehs_rst); + } + + dphy->phy =devm_phy_create (&pdev->dev,NULL , &stf_dphy_ops); +if (IS_ERR (dphy->phy)) { + ret =PTR_ERR (dphy->phy); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } +phy_set_drvdata (dphy->phy, dphy); + + phy_provider =devm_of_phy_provider_register (&pdev->dev, of_phy_simple_xlate); +if (IS_ERR (phy_provider)) { + ret =PTR_ERR (phy_provider); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } + +return PTR_ERR_OR_ZERO (phy_provider); +} + +static const struct stf_dphy_info starfive_dphy_info = { + .maps = {0 ,1 ,2 ,3 ,4 }, +}; + +static const struct of_device_id stf_dphy_dt_ids[] = { + { + .compatible ="starfive,jh7110-dphy-tx" , + .data = &starfive_dphy_info, + }, + {/* sentinel */ }, +}; +MODULE_DEVICE_TABLE (of, stf_dphy_dt_ids); + +static struct platform_driver stf_dphy_driver = { + .driver = { + .name ="starfive-dphy-tx" , + .of_match_table = stf_dphy_dt_ids, + }, + .probe = stf_dphy_probe, +};
Quoted 9 lines
Quoted 8 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +6
-0+module_platform_driver (stf_dphy_driver); + +MODULE_AUTHOR ("Keith Zhao <[email protected]>" ); +MODULE_AUTHOR ("Shengyang Chen <[email protected]>" ); +MODULE_DESCRIPTION ("StarFive JH7110 DPHY TX driver" ); +MODULE_LICENSE ("GPL" );Signature · 1 line
2.17.1
thanks.
Best Regards,
Shengyang
Re: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Philipp ZabelHi Philipp,
Thanks for review and comment.
Quoted 17 lines · Philipp Zabel
Quoted 5 lines · Shengyang Chen
Add mipi dphy tx support for the StarFive JH7110 SoC. It is used to transfer DSI data.
Signed-off-by Shengyang Chen <[email protected]>---
[...]
Quoted 6 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +0
-0@@ -0,0 +1,542 @@[...]
Quoted 2 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +2
-0+static int stf_dphy_probe (struct platform_device *pdev) +{[...]
Quoted 9 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 468
Quoted 4 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +4
-0+ dphy->topsys =devm_platform_ioremap_resource (pdev,0 ); +if (IS_ERR (dphy->topsys)) { + ret =PTR_ERR (dphy->topsys); +return ret;This could be shortened to:
return PTR_ERR(dphy->topsys);
ok, will shortened to "return PTR_ERR(dphy->topsys);"
Quoted 11 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 476
Quoted 8 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +8
-0+ } + +pm_runtime_enable (&pdev->dev); + + dphy->mipitx_0p9 =devm_regulator_get (&pdev->dev,"mipi_0p9" ); +if (IS_ERR (dphy->mipitx_0p9)) { + ret =PTR_ERR (dphy->mipitx_0p9); +return ret;Same as above.
ok, will fix it.
Quoted 10 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 483
Quoted 7 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +7
-0+ } + + dphy->txesc_clk =devm_clk_get (&pdev->dev,"dphy_txesc" ); +if (IS_ERR (dphy->txesc_clk)) { + ret =PTR_ERR (dphy->txesc_clk); +dev_err (&pdev->dev,"txesc_clk get error\n" ); +return ret;Consider using
dev_err_probe():
Quoted 5 lines
return dev_err_probe(&pdev->dev, PTR_ERR(dphy->txesc_clk), "txesc_clk get error\n");And the same for the error paths below.
ok, it will be tried and verified. It will be used if no problem.
Quoted 6 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 486
Quoted 3 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +3
-0+ } + + dphy->sys_rst =reset_control_get_exclusive (&pdev->dev,"dphy_sys" );Why not
devm_reset_control_get_exclusive()?
ok, it will be tried and verified. It will be used if no problem.
Quoted 10 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c line 493
Quoted 7 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +7
-0+if (IS_ERR (dphy->sys_rst)) { + ret =PTR_ERR (dphy->sys_rst); +dev_err (&pdev->dev,"sys_rst get error\n" ); +return ret; + } + + dphy->txbytehs_rst =reset_control_get_exclusive (&pdev->dev,"dsi_txbytehs" );Same as above.
ok, I'll follow up on this.
Quoted 24 lines
Quoted 11 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +11
-0+if (IS_ERR (dphy->txbytehs_rst)) { +dev_err (&pdev->dev,"Failed to get txbytehs_rst\n" ); +return PTR_ERR (dphy->txbytehs_rst); + } + + dphy->phy =devm_phy_create (&pdev->dev,NULL , &stf_dphy_ops); +if (IS_ERR (dphy->phy)) { + ret =PTR_ERR (dphy->phy); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + }drivers/phy/starfive/phy-jh7110-dphy-tx.c line 514
Quoted 10 lines
drivers/phy/starfive/phy-jh7110-dphy-tx.c new file +10
-0+phy_set_drvdata (dphy->phy, dphy); + + phy_provider =devm_of_phy_provider_register (&pdev->dev, of_phy_simple_xlate); +if (IS_ERR (phy_provider)) { + ret =PTR_ERR (phy_provider); +dev_err (&pdev->dev,"Failed to create phy\n" ); +return ret; + } + +return PTR_ERR_OR_ZERO (phy_provider);This can not be reached in the error case, so just:
Quoted 4 lines
return 0;should suffice.
ok, will fix it.
Quoted 3 lines
regards
Philipp
thanks a lot.
Best Regards,
Shengyang
Re: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to kernel test robotHi kernel test robot,
Quoted 366 lines · kernel test robot
Hi Shengyang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7-rc3 next-20231130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/Shengyang-Chen/dt-bindings-phy-Add-starfive-jh7110-dphy-tx/20231117-210751 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20231117130421.79261-3-shengyang.chen%40starfivetech.com patch subject: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support config: mips-randconfig-r112-20231121 (https://download.01.org/0day-ci/archive/20231201/[email protected]/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20231201/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/sparse warnings: (new ones prefixed by >>)
drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: got void [noderef]__iomem*topsys
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void*io_addr@@ got void [noderef]__iomem*topsys @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: expected void*io_addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: got void [noderef]__iomem*topsysQuoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void*io_addr@@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:21: sparse: got void*io_addrQuoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: expected void const volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:29: sparse: got void *Quoted 1 line
Quoted 1 line
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef]__iomem*mem @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: expected void volatile [noderef]__iomem*mem
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:30: sparse: got void *vim +172
drivers/phy/starfive/phy-jh7110-dphy-tx.c167 168 static inline u32 stf_dphy_get_reg(void *io_addr, u32 addr, u32 shift, u32 mask) 169 { 170 u32 tmp; 171Quoted 1 line
172 tmp =
readl(io_addr);173 tmp = (tmp & mask) >> shift; 174 return tmp; 175 } 176 177 static inline void stf_dphy_set_reg(void *io_addr, u32 addr, u32 data, u32 shift, u32 mask) 178 { 179 u32 tmp; 180
Quoted 7 lines
Quoted 1 line
181 tmp =
readl(io_addr + addr);182 tmp &= ~mask; 183 tmp |= (data << shift) & mask;Quoted 1 line
184
writel(tmp, (io_addr + addr));185 }
186
The warning will be followed up.
thanks.
Best Regards,
Shengyang
kernel test robot
build botRe: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support
In reply to Shengyang Chenkernel test robot noticed the following build warnings:
Hi Shengyang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7-rc4 next-20231204] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Shengyang-Chen/dt-bindings-phy-Add-starfive-jh7110-dphy-tx/20231117-210751 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20231117130421.79261-3-shengyang.chen%40starfivetech.com patch subject: [PATCH v1 2/2] phy: starfive: Add mipi dphy tx support config: csky-randconfig-r111-20231118 (https://download.01.org/0day-ci/archive/20231204/[email protected]/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231204/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:189:40: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:197:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:222:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:224:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:226:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:228:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:230:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:232:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:234:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:236:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:238:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:240:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:250:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:254:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:260:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:263:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:266:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:269:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:272:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:276:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:279:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:282:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:286:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:289:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:292:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:295:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:298:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:302:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:306:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:310:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:314:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:318:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:322:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:326:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:330:46: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:348:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:350:30: sparse: got void [noderef] __iomem *topsys drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *io_addr @@ got void [noderef] __iomem *topsys @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: expected void *io_addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:353:30: sparse: got void [noderef] __iomem *topsys >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *io_addr @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:172:15: sparse: got void *io_addr >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: expected void const volatile [noderef] __iomem *addr drivers/phy/starfive/phy-jh7110-dphy-tx.c:181:15: sparse: got void * >> drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/phy/starfive/phy-jh7110-dphy-tx.c:184:9: sparse: got void *
vim +189 drivers/phy/starfive/phy-jh7110-dphy-tx.c
167
168 static inline u32 stf_dphy_get_reg(void *io_addr, u32 addr, u32 shift, u32 mask)
169 {
170 u32 tmp;
171
> 172 tmp = readl(io_addr);
173 tmp = (tmp & mask) >> shift;
174 return tmp;
175 }
176
177 static inline void stf_dphy_set_reg(void *io_addr, u32 addr, u32 data, u32 shift, u32 mask)
178 {
179 u32 tmp;
180
> 181 tmp = readl(io_addr + addr);
182 tmp &= ~mask;
183 tmp |= (data << shift) & mask;
> 184 writel(tmp, (io_addr + addr));
185 }
186
187 static int is_pll_locked(struct stf_dphy *dphy)
188 {
> 189 int tmp = stf_dphy_get_reg(dphy->topsys, STF_DPHY_APBIFSAIF_SYSCFG(8), 190 STF_DPHY_RGS_CDTX_PLL_UNLOCK_SHIFT,
191 STF_DPHY_RGS_CDTX_PLL_UNLOCK_MASK);
192 return !tmp;
193 }
194
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki