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: Friday, May 14, 2010 - 10:46 am

On 05/14/2010 11:46 AM, Richard Cochran wrote:

Device_type is deprecated in most contexts for flat device trees.


Model, while abused by the current gianfar binding code, is not supposed 
to be something that is ordinarily used to bind on.  It is supposed to 
be a freeform field for indicating the specific model of hardware, 
mainly for human consumption or as a last resort for working around 
problems.

Get rid of both device_type and model, and specify a compatible string 
instead (e.g. "fsl,etsec-ptp").  Or perhaps this should just be some 
additional properties on the existing gianfar nodes, rather than 
presenting it as a separate device?  How do you associate a given ptp 
block with the corresponding gianfar node?  If there are differences in 
ptp implementation between different versions of etsec, can the ptp 
driver see the etsec version register?


Dashes are more typical in OF names than underscores, and it's generally 
better to be a little more verbose -- these aren't local loop iterators.

They should probably have an "fsl,ptp-" prefix as well.


Do these values describe the way the hardware is, or how it's been 
configured by firmware, or a set of values that are clearly optimal for 
this particular board?  If it's just configuration for the Linux driver, 
that could reasonably differ based on what a given user or OS will want, 
the device tree probably isn't the right place for it.


This one has 3 interrupts?  The driver supports only two.


Do you not support more than one of these?


"The" clock?  As oppsed to the "other" clock one line above? :-)


Should only return IRQ_HANDLED if you found an event.


Might want to print an error so the user knows what's missing.


You've got two IRQs, with the same handler, and the same dev_id?  From 
the manual it looks like there's one PTP interrupt per eTSEC (which 
would explain 3 interrupts on p2020).


This driver controls every possible PTP implementation?

-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 3/3] ptp: Added a clock that uses the eTSEC ..., Scott Wood, (Fri May 14, 10:46 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 ..., Richard Cochran, (Mon May 17, 11:36 pm)