From: Matt Sealey <matt@genesi-usa.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, domen.puncer@telargo.com
Subject: Re: [PATCH v2 4/7] bestcomm: core bestcomm support for Freescale MPC5200
Date: Mon, 15 Oct 2007 21:53:46 +0100 [thread overview]
Message-ID: <4713D35A.9080200@genesi-usa.com> (raw)
In-Reply-To: <fa686aa40710150704j15f3a511rf5924573282c966b@mail.gmail.com>
Grant Likely wrote:
> On 10/15/07, Matt Sealey <matt@genesi-usa.com> wrote:
>> My nits:
>>
>> Grant Likely wrote:
>>> From: Sylvain Munaut <tnt@246tNt.com>
>>> +static int __devinit
>>> +bcom_engine_init(void)
>> Why "bcom" and not "bestcomm"?
>
> I can type 'bcom' twice as fast. :-) bcom is a suitable shortening;
> I'm not concerned about it.
I hate acronyms and shortening for the sake of it.
My IDE highlights known symbols from includes and lets me tab complete them :D
After all once all these APIs are fixed and most of the drivers are implemented
(most of them are, already, anyway, and have been from TaskSomething to sdma_
to bcom_ changes and major API reworks), I wonder why we have to constantly
cut every function definition down to 4 characters rhp_bjz_ywh_moo_purr()
I'd level the same thing at bcom_eng (what's an Eng when it's at home? English?
Engraved? Surely Engine but.. come on :)
There's no real good need to shorten the names of things except when those
shortenings are also used in the documentation - after all, PSC is what Freescale
call a PSC, we wouldn't be making structures called mpc52xx_programmable_serial_controller,
that's redundant, I don't think calling it "bestcomm" (which is it's name) over
"bcom" (which isn't) works to anyone's advantage here.
>>> + /* Disable COMM Bus Prefetch, apparently it's not reliable yet */
>>> + /* FIXME: This should be done on 5200 and not 5200B ... */
>>> + out_be16(&bcom_eng->regs->PtdCntrl, in_be16(&bcom_eng->regs->PtdCntrl) | 1);
>> This really, really shouldn't even be here, could it be moved to a platform
>> init, or switched on a PVR/SVR here?
>
> I think I'd like to leave it here for getting this series merged; it
> may not be good to have it here; but it's not dangerous either. I'm
> trying to keep churn on this series down to a minimum.
Why not just accept the churn, and remove those two lines, and someone will
submit a patch to make it work on the 5200 in the appropriate place later?
I don't think "mainlining it" is a good excuse to leave FIXME comments
and little device-specific hacks in drivers.
> Please submit a patch to make this change once it's merged.
I'd rather submit a patch containing this fix somewhere else, without having
to touch this driver ever again.
My opinion is that this is a firmware thing, u-boot or openfirmware should
be configuring the system on boot so that they do not do crazy things like
enable the BTIC on a 7447, or leave comm bus prefetch turned on with a 5200 -
in the absense of good firmware, platform support should be used.
This is what Segher tells me we should be doing, but I see you guys "breaking
the rules" all the time.. it makes it hard to justify doing any Linux platform
support if we are beaten with the stick while you guys munch on the carrots..
So, I don't think "reducing churn" justifies leaving it in. Users of 5200
devices who need that fix, can patch their kernels.. users of 5200B and
5121E who do not need that fix, shouldn't be forced to.
--
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations
next prev parent reply other threads:[~2007-10-15 20:52 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-14 4:41 [PATCH v2 0/7] 2nd respin of bestcomm patches Grant Likely
2007-10-14 4:41 ` [PATCH v2 1/7] exports rheap symbol to modules Grant Likely
2007-10-14 4:41 ` [PATCH v2 2/7] rheap: Changes config mechanism Grant Likely
2007-10-15 13:43 ` Kumar Gala
2007-10-15 13:55 ` Grant Likely
2007-10-15 14:03 ` Kumar Gala
2007-10-15 14:06 ` Grant Likely
2007-10-15 14:53 ` Timur Tabi
2007-10-15 14:54 ` Kumar Gala
2007-10-15 14:54 ` Timur Tabi
2007-10-15 15:09 ` Grant Likely
2007-10-14 4:42 ` [PATCH v2 3/7] mpc52xx: Update mpc52xx_psc structure with B revision changes Grant Likely
2007-10-14 4:42 ` [PATCH v2 4/7] bestcomm: core bestcomm support for Freescale MPC5200 Grant Likely
2007-10-14 11:33 ` Sven Luther
2007-10-14 20:22 ` Grant Likely
2007-10-14 20:25 ` Sven Luther
2007-10-14 21:23 ` Grant Likely
2007-10-15 6:12 ` Sven Luther
2007-10-15 11:55 ` Matt Sealey
2007-10-15 14:04 ` Grant Likely
2007-10-15 20:53 ` Matt Sealey [this message]
2007-10-15 20:55 ` Matt Sealey
2007-10-15 21:06 ` Grant Likely
2007-10-16 13:21 ` tnt
2007-10-15 14:06 ` Kumar Gala
2007-10-15 14:20 ` Grant Likely
2007-10-15 14:39 ` Matt Sealey
2007-10-14 4:42 ` [PATCH v2 5/7] bestcomm: ATA task support Grant Likely
2007-10-14 4:42 ` [PATCH v2 6/7] bestcomm: FEC " Grant Likely
2007-10-14 4:42 ` [PATCH v2 7/7] bestcomm: GenBD " Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4713D35A.9080200@genesi-usa.com \
--to=matt@genesi-usa.com \
--cc=domen.puncer@telargo.com \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.