mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
46558d601c
Add basic SPI regmap support into the driver. Previous patches unconver that ksz_spi_write() is always ever called with len = 1, 2 or 4. We can thus drop the if (len > SPI_TX_BUF_LEN) check and we can also drop the allocation of the txbuf which is part of the driver data and wastes 256 bytes for no reason. Regmap covers the whole thing now. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Tristram Ha <Tristram.Ha@microchip.com> Cc: Woojung Huh <Woojung.Huh@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
19 lines
571 B
Plaintext
19 lines
571 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config NET_DSA_MICROCHIP_KSZ_COMMON
|
|
tristate
|
|
|
|
menuconfig NET_DSA_MICROCHIP_KSZ9477
|
|
tristate "Microchip KSZ9477 series switch support"
|
|
depends on NET_DSA
|
|
select NET_DSA_TAG_KSZ9477
|
|
select NET_DSA_MICROCHIP_KSZ_COMMON
|
|
help
|
|
This driver adds support for Microchip KSZ9477 switch chips.
|
|
|
|
config NET_DSA_MICROCHIP_KSZ9477_SPI
|
|
tristate "KSZ9477 series SPI connected switch driver"
|
|
depends on NET_DSA_MICROCHIP_KSZ9477 && SPI
|
|
select REGMAP_SPI
|
|
help
|
|
Select to enable support for registering switches configured through SPI.
|