]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-microchip-common-spi-probe'
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:31:44 +0000 (11:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:31:44 +0000 (11:31 +0100)
commitdc0f9cae18686c943b79988875a59057cb9f53a7
tree95f9438d10fdc27344332f38378f6444d2a5bb66
parent1ae3e5c8d770290b79bef16468bd5dd9fcb7f44e
parent3b8c7d10bce88a243183d54b485fbf6c6e60b044
Merge branch 'dsa-microchip-common-spi-probe'

Arun Ramadoss says:

====================
net: dsa: microchip: common spi probe for the ksz series switches - part 2

This patch series aims to refactor the ksz_switch_register routine to have the
common flow for the ksz series switch. And this is the follow up patch series.

First, it tries moves the common implementation in the setup from individual
files to ksz_setup. Then implements the common dsa_switch_ops structure instead
of independent registration. And then moves the ksz_dev_ops to ksz_common.c,
it allows the dynamic detection of which ksz_dev_ops to be used based on
the switch detection function.

Finally, the patch updates the ksz_spi probe function to be same for all the
ksz_switches.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>