mdio-thunder.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) | mdio-thunder.c (93641ecbaa1f2602c455842ad0b0fe066f5f1344) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009-2016 Cavium, Inc. 4 */ 5 6#include <linux/acpi.h> 7#include <linux/gfp.h> 8#include <linux/io.h> --- 79 unchanged lines hidden (view full) --- 88 r.start - pci_resource_start(pdev, 0); 89 90 smi_en.u64 = 0; 91 smi_en.s.en = 1; 92 oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); 93 bus->mii_bus->name = KBUILD_MODNAME; 94 snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", r.start); 95 bus->mii_bus->parent = &pdev->dev; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009-2016 Cavium, Inc. 4 */ 5 6#include <linux/acpi.h> 7#include <linux/gfp.h> 8#include <linux/io.h> --- 79 unchanged lines hidden (view full) --- 88 r.start - pci_resource_start(pdev, 0); 89 90 smi_en.u64 = 0; 91 smi_en.s.en = 1; 92 oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); 93 bus->mii_bus->name = KBUILD_MODNAME; 94 snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", r.start); 95 bus->mii_bus->parent = &pdev->dev; |
96 bus->mii_bus->read = cavium_mdiobus_read; 97 bus->mii_bus->write = cavium_mdiobus_write; | 96 bus->mii_bus->read = cavium_mdiobus_read_c22; 97 bus->mii_bus->write = cavium_mdiobus_write_c22; 98 bus->mii_bus->read_c45 = cavium_mdiobus_read_c45; 99 bus->mii_bus->write_c45 = cavium_mdiobus_write_c45; |
98 99 err = of_mdiobus_register(bus->mii_bus, node); 100 if (err) 101 dev_err(&pdev->dev, "of_mdiobus_register failed\n"); 102 103 dev_info(&pdev->dev, "Added bus at %llx\n", r.start); 104 if (i >= ARRAY_SIZE(nexus->buses)) 105 break; --- 46 unchanged lines hidden --- | 100 101 err = of_mdiobus_register(bus->mii_bus, node); 102 if (err) 103 dev_err(&pdev->dev, "of_mdiobus_register failed\n"); 104 105 dev_info(&pdev->dev, "Added bus at %llx\n", r.start); 106 if (i >= ARRAY_SIZE(nexus->buses)) 107 break; --- 46 unchanged lines hidden --- |