Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Scott Wood
Date: Monday, May 17, 2010 - 11:05 am

On 05/17/2010 03:27 AM, Richard Cochran wrote:

There's some stuff in there that isn't how we'd do it now, but is slow 
to change for compatibility reasons.


OK.  I'm not too familiar with PTP itself, was looking more at the 
device tree and similar structural bits.


If there's any possibility of needing to make a distinction (which 
probably can't be ruled out with future chips), the chip name could be 
made part of the compatible string, with a secondary compatible showing 
a canonical part name for that version of the PTP block.  E.g. p2020 
might have:

compatble = "fsl,p2020-etsec-ptp", "fsl,mpc8313-etsec-ptp";

The driver would bind only on the mpc8313 version.

There are several examples of this, such as the Freescale i2c driver and 
binding (ignore the legacy "fsl-i2c").


MPC8572 and P2020 have fiper3 as well.


It is not stripped; you have to change the code as well.


The device tree should still contain all of the interrupts, in case 
they're needed later -- and put a comment in the driver saying why the 
first interrupt seems sufficient.


Put .compatible = "fsl,etsec-ptp" (or "fsl,mpc8313-etsec-ptp") where you 
have .type = "ptp_clock".

-Scott
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 0/3] ptp: IEEE 1588 clock support, Richard Cochran, (Fri May 14, 9:44 am)
Re: [PATCH v3 1/3] ptp: Added a brand new class driver for ..., Wolfgang Grandegger, (Mon May 17, 8:41 am)
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC ..., Wolfgang Grandegger, (Mon May 17, 8:41 am)
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC ..., Scott Wood, (Mon May 17, 11:05 am)
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC ..., Richard Cochran, (Mon May 17, 11:36 pm)