"Nori, Sekhar" <[email protected]> writes:

> Hi Cyril,
>
> On Wed, May 19, 2010 at 20:35:58, Chemparathy, Cyril wrote:
>> Hi Sekhar,
>>
>> [...]
>> >>> Also, can you keep this as a platform variable (with
>> >>> a 2.2 MHz default)? The frequency depends on the board,
>> >>> and although most boards work at 2.2 MHz, not having it
>> >>> as a platform variable will make adding a board with a
>> >>> different frequency requirement difficult.
>> >>
>> >> I am not quite convinced that you'll have too many boards deviate from
>> >> the 2MHz ballpark.  That seems to be a nice and safe frequency that
>> >> works well across phys, socs, and boards.
>> >>
>> >> That said, if we see the need to override the bus frequency in future, I
>> >> am all for a patch at that time.  As it stands, I don't see the value in
>> >> adding platform data definitions for a capability that is not going to
>> >> be used at present.
>> >
>> > Okay, but why regress on existing functionality?
>>
>> I don't quite think that the prior existence of a "knob" is reason
>> enough to keep it around, considering that the knob is essentially
>> unused (below).
>
> AFAIR, some boards in mach-omap2 use this driver as well. Hope
> you searched them as well before concluding that it is unused.

Also, there are many, many boards out there that have not been
submitted upstream (and whose maintainers do not read this list.)
While that is a problem in and of itself, I do not want to break those
boards on the assumption that some board-specific knob is unused.

>> In short, we currently have a knob for frequency control, but we don't
>> use board-specific numbers from characterization data (if available).
>> That said, what good is the knob?  All that it does at present, is muddy
>> up the code with identical definitions on every board.
>
> You can decide to default to 2.2 MHz if there is no platform data
> that way there wouldn't be any additional code in any of the board
> files.

Agreed.  

Feel free to drop the setting in the board files if it is just using
the default.  That will help avoid duplicating the redundant code when
board files are copy-pasted to create new boards.

Kevin

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to