ksz9477.c (e30f33a5f5c74f278feaa57517d851874dfc640f) ksz9477.c (71d7920fb2d1d6cdaa6db58426783be02c9cb7bb)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Microchip KSZ9477 switch driver main logic
4 *
5 * Copyright (C) 2017-2019 Microchip Technology Inc.
6 */
7
8#include <linux/kernel.h>

--- 1170 unchanged lines hidden (view full) ---

1179 return 0;
1180}
1181
1182u32 ksz9477_get_port_addr(int port, int offset)
1183{
1184 return PORT_CTRL_ADDR(port, offset);
1185}
1186
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Microchip KSZ9477 switch driver main logic
4 *
5 * Copyright (C) 2017-2019 Microchip Technology Inc.
6 */
7
8#include <linux/kernel.h>

--- 1170 unchanged lines hidden (view full) ---

1179 return 0;
1180}
1181
1182u32 ksz9477_get_port_addr(int port, int offset)
1183{
1184 return PORT_CTRL_ADDR(port, offset);
1185}
1186
1187int ksz9477_tc_cbs_set_cinc(struct ksz_device *dev, int port, u32 val)
1188{
1189 val = val >> 8;
1190
1191 return ksz_pwrite16(dev, port, REG_PORT_MTI_CREDIT_INCREMENT, val);
1192}
1193
1187int ksz9477_switch_init(struct ksz_device *dev)
1188{
1189 u8 data8;
1190 int ret;
1191
1192 dev->port_mask = (1 << dev->info->port_cnt) - 1;
1193
1194 /* turn off SPI DO Edge select */

--- 20 unchanged lines hidden ---
1194int ksz9477_switch_init(struct ksz_device *dev)
1195{
1196 u8 data8;
1197 int ret;
1198
1199 dev->port_mask = (1 << dev->info->port_cnt) - 1;
1200
1201 /* turn off SPI DO Edge select */

--- 20 unchanged lines hidden ---