| b2b56de9 | 25-Nov-2021 |
Zou Wei <[email protected]> |
phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| 6153224b | 27-May-2020 |
Arnd Bergmann <[email protected]> |
phy: intel: fix enum type mismatch warning
clang points out that a local variable is initialized with an enum value of the wrong type:
drivers/phy/intel/phy-intel-combo.c:202:34: error: implicit co
phy: intel: fix enum type mismatch warning
clang points out that a local variable is initialized with an enum value of the wrong type:
drivers/phy/intel/phy-intel-combo.c:202:34: error: implicit conversion from enumeration type 'enum intel_phy_mode' to different enumeration type 'enum intel_combo_mode' [-Werror,-Wenum-conversion] enum intel_combo_mode cb_mode = PHY_PCIE_MODE; ~~~~~~~ ^~~~~~~~~~~~~
>From reading the code, it seems that this was not only the wrong type, but not even supposed to be a code path that can happen in practice.
Change the code to have no default phy mode but instead return an error for invalid input.
Fixes: ac0a95a3ea78 ("phy: intel: Add driver support for ComboPhy") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Dilip Kota <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
show more ...
|