Thread (30 messages) flat view 30 messages, 6 authors, 2007-10-16

Re: [PATCH v2 4/7] bestcomm: core bestcomm support for Freescale MPC5200

From: Matt Sealey <hidden>
Date: 2007-10-15 14:37:12

Grant Likely wrote:
On 10/15/07, Kumar Gala [off-list ref] wrote:
quoted
(Comments just on SRAM code)

I think this should be made generic and be utility functionality to
rheap.

CPM, CPM2, QE, L2 SRAM, etc can all use this.  I'd rather we didn't
have 3 ways to do the exact same functionality.  (cpm_dpalloc,
cpm_dpfree, qe_muram_alloc, qe_muram_free)
Fair enough; but not in this patch set.  This series is working
support for bestcomm.  To go to the more generic level of being used
by multiple parts should be done in a separate series.
I suggested this a couple months ago and a couple people here said a
generic SRAM driver would be a bad idea.. (even the tsi1xx and Marvell
chips could use a generic SRAM driver)?

Module probe order comes into play, which is why it was a bad idea; how
do you make sure that SRAM and all it's finer points (which may not be
handled by a generic rheap library - after all, the address, size,
alignment needs to be *passed* to rheap init) is there and probed before
bestcomm, qe ethernet units or cryptography, axe on the 5121e, gigabit
on the marvell, deep sleep code on the 5200b (just listing users atm)
or something or other, without turning the drivers into a hard
dependency of the sram subsystem?

-- 
Matt Sealey [off-list ref]
Genesi, Manager, Developer Relations
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help