]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Support-programmable-pins-for-Ocelot-PTP-driver'
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:34 +0000 (15:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:34 +0000 (15:38 -0700)
commitca7df2fca0072920b61257ae6091c13e3565426b
tree85f67d18b3f50b388671603df0556fe0a4d8ac68
parent0bfda774c9e0b3a4e0a10af9aa05295b8c72d7ea
parentf1c97cb283a187514ece21bdcff3b8ca414a0afd
Merge branch 'Support-programmable-pins-for-Ocelot-PTP-driver'

Yangbo Lu says:

====================
Support programmable pins for Ocelot PTP driver

The Ocelot PTP clock driver had been embedded into ocelot.c driver.
It had supported basic gettime64/settime64/adjtime/adjfine functions
by now which were used by both Ocelot switch and Felix switch.

This patch-set is to move current ptp clock code out of ocelot.c driver
maintaining as a single ocelot_ptp.c driver, and to implement 4
programmable pins with only PTP_PF_PEROUT function for now.
The PTP_PF_EXTTS function will be supported in the future, and it should
be implemented separately for Felix and Ocelot, because of different
hardware interrupt implementation in them.

Changes for v2:
- Put PTP driver under drivers/net/ethernet/mscc/.
- Dropped MAINTAINERS patch. Kept original maintaining.
- Initialized PTP separately in ocelot/felix platforms.
- Supported PPS case in programmable pin.
- Supported disabling pin function since deadlock is fixed by Richard.
- Returned -EBUSY if not finding pin available.
Changes for v3:
- Re-sent.
====================

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