OpenCloudOS-Kernel/drivers/phy/broadcom
Florian Fainelli 0ed41b3388 phy: brcm-sata: Correct MDIO operations for 40nm platforms
The logic to write to MDIO registers on 40nm platforms was wrong
because it would use the port number as an offset from the base address
rather than the bank address of the PHY. This is hardly noticeable
because the only programming we do is enabling SSC or not, which is not
really causing an observable functional change.

Correct that mistake by passing down the struct brcm_sata_port structure
down to the brcm_sata_mdio_wr() and brcm_sata_mdio_rd() functions and do
the proper offsetting for 28nm, respectively 40nm platforms from there.
This means that brcm_sata_pcb_base() is now useless and is therefore
removed.

Fixes: c1602a1a0f ("phy: phy_brcmstb_sata: add support for MIPS-based platforms")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2020-02-21 14:01:47 +05:30
..
Kconfig phy: Enable compile testing for some of drivers 2020-01-14 10:50:19 +05:30
Makefile phy: usb: Add support for new Synopsys USB controller on the 7216 2020-01-08 12:58:06 +05:30
phy-bcm-cygnus-pcie.c phy: Convert to using %pOFn instead of device_node.name 2018-09-25 16:10:07 +05:30
phy-bcm-kona-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-bcm-ns-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-bcm-ns-usb3.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-bcm-ns2-pcie.c
phy-bcm-ns2-usbdrd.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
phy-bcm-sr-pcie.c phy: bcm-sr-pcie: Change operation when PIPEMUX=1 2019-02-07 11:11:06 +05:30
phy-bcm-sr-usb.c phy: sr-usb: Add Stingray USB PHY driver 2019-04-17 14:12:48 +05:30
phy-brcm-sata.c phy: brcm-sata: Correct MDIO operations for 40nm platforms 2020-02-21 14:01:47 +05:30
phy-brcm-usb-init-synopsys.c phy: usb: Add support for wake and USB low power mode for 7211 S2/S5 2020-01-08 12:58:06 +05:30
phy-brcm-usb-init.c phy: usb: Add support for wake and USB low power mode for 7211 S2/S5 2020-01-08 12:58:06 +05:30
phy-brcm-usb-init.h phy: usb: Add support for wake and USB low power mode for 7211 S2/S5 2020-01-08 12:58:06 +05:30
phy-brcm-usb.c phy: usb: Add support for wake and USB low power mode for 7211 S2/S5 2020-01-08 12:58:06 +05:30