diff options
| author | Dave Airlie <airlied@redhat.com> | 2010-05-18 19:35:51 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 19:35:51 -0400 |
| commit | 05ea893c46805b2981ea8ba6df881e3d65edd63b (patch) | |
| tree | ea381e22d99f49bd2c95238f88491d48b797a17b /drivers/net/phy/mdio-octeon.c | |
| parent | 26481fb15644b5fd85d4cea020f74a234cdf6803 (diff) | |
| parent | a7c542782e92f9487c62a571565637be3d6b0ffd (diff) | |
Merge remote branch 'anholt/drm-intel-next' into drm-next
* anholt/drm-intel-next: (515 commits)
drm/i915: Fix out of tree builds
drm/i915: move fence lru to struct drm_i915_fence_reg
drm/i915: don't allow tiling changes on pinned buffers v2
drm/i915: Be extra careful about A/D matching for multifunction SDVO
drm/i915: Fix DDC bus selection for multifunction SDVO
drm/i915: cleanup mode setting before unmapping registers
drm/i915: Make fbc control wrapper functions
drm/i915: Wait for the GPU whilst shrinking, if truly desperate.
drm/i915: Use spatio-temporal dithering on PCH
[MTD] Remove zero-length files mtdbdi.c and internal.ho
pata_pcmcia / ide-cs: Fix bad hashes for Transcend and kingston IDs
libata: Fix several inaccuracies in developer's guide
slub: Fix bad boundary check in init_kmem_cache_nodes()
raid6: fix recovery performance regression
KEYS: call_sbin_request_key() must write lock keyrings before modifying them
KEYS: Use RCU dereference wrappers in keyring key type code
KEYS: find_keyring_by_name() can gain access to a freed keyring
ALSA: hda: Fix 0 dB for Packard Bell models using Conexant CX20549 (Venice)
ALSA: hda - Add quirk for Dell Inspiron 19T using a Conexant CX20582
ALSA: take tu->qlock with irqs disabled
...
Diffstat (limited to 'drivers/net/phy/mdio-octeon.c')
| -rw-r--r-- | drivers/net/phy/mdio-octeon.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c index a872aea4ed74..f443d43edd80 100644 --- a/drivers/net/phy/mdio-octeon.c +++ b/drivers/net/phy/mdio-octeon.c | |||
| @@ -88,6 +88,7 @@ static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id, | |||
| 88 | static int __init octeon_mdiobus_probe(struct platform_device *pdev) | 88 | static int __init octeon_mdiobus_probe(struct platform_device *pdev) |
| 89 | { | 89 | { |
| 90 | struct octeon_mdiobus *bus; | 90 | struct octeon_mdiobus *bus; |
| 91 | union cvmx_smix_en smi_en; | ||
| 91 | int i; | 92 | int i; |
| 92 | int err = -ENOENT; | 93 | int err = -ENOENT; |
| 93 | 94 | ||
| @@ -103,6 +104,10 @@ static int __init octeon_mdiobus_probe(struct platform_device *pdev) | |||
| 103 | if (!bus->mii_bus) | 104 | if (!bus->mii_bus) |
| 104 | goto err; | 105 | goto err; |
| 105 | 106 | ||
| 107 | smi_en.u64 = 0; | ||
| 108 | smi_en.s.en = 1; | ||
| 109 | cvmx_write_csr(CVMX_SMIX_EN(bus->unit), smi_en.u64); | ||
| 110 | |||
| 106 | /* | 111 | /* |
| 107 | * Standard Octeon evaluation boards don't support phy | 112 | * Standard Octeon evaluation boards don't support phy |
| 108 | * interrupts, we need to poll. | 113 | * interrupts, we need to poll. |
| @@ -133,17 +138,22 @@ err_register: | |||
| 133 | 138 | ||
| 134 | err: | 139 | err: |
| 135 | devm_kfree(&pdev->dev, bus); | 140 | devm_kfree(&pdev->dev, bus); |
| 141 | smi_en.u64 = 0; | ||
| 142 | cvmx_write_csr(CVMX_SMIX_EN(bus->unit), smi_en.u64); | ||
| 136 | return err; | 143 | return err; |
| 137 | } | 144 | } |
| 138 | 145 | ||
| 139 | static int __exit octeon_mdiobus_remove(struct platform_device *pdev) | 146 | static int __exit octeon_mdiobus_remove(struct platform_device *pdev) |
| 140 | { | 147 | { |
| 141 | struct octeon_mdiobus *bus; | 148 | struct octeon_mdiobus *bus; |
| 149 | union cvmx_smix_en smi_en; | ||
| 142 | 150 | ||
| 143 | bus = dev_get_drvdata(&pdev->dev); | 151 | bus = dev_get_drvdata(&pdev->dev); |
| 144 | 152 | ||
| 145 | mdiobus_unregister(bus->mii_bus); | 153 | mdiobus_unregister(bus->mii_bus); |
| 146 | mdiobus_free(bus->mii_bus); | 154 | mdiobus_free(bus->mii_bus); |
| 155 | smi_en.u64 = 0; | ||
| 156 | cvmx_write_csr(CVMX_SMIX_EN(bus->unit), smi_en.u64); | ||
| 147 | return 0; | 157 | return 0; |
| 148 | } | 158 | } |
| 149 | 159 | ||
