From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Zhang Le <r0bertz@gentoo.org>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org,
Yan Hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>,
Zhang Fuxin <zhangfx@lemote.com>,
loongson-dev <loongson-dev@googlegroups.com>,
Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>
Subject: Re: [loongson-PATCH-v3 00/25] loongson-based machines support
Date: Tue, 09 Jun 2009 02:18:27 +0800 [thread overview]
Message-ID: <1244485107.26004.164.camel@falcon> (raw)
In-Reply-To: <20090608163821.GC16785@adriano.hkcable.com.hk>
Hi,
On Tue, 2009-06-09 at 00:38 +0800, Zhang Le wrote:
> First of all, sorry for late comment and thanks to Zhangjin for the great work.
>
> However, I have some suggestions.
>
> On 20:58 Thu 04 Jun , wuzhangjin@gmail.com wrote:
> > Wu Zhangjin (25):
> > add vmlinux.32 in .gitignore
> > fix-warning: incompatible argument type of pci_fixup_irqs
> > fix-warning: incompatible argument type of virt_to_phys
>
> I think these 3 patch could be submitted separately, since they are not quite
> related to Loongson.
>
Yeap, I will split all of the non-loongson-specific patches out in the
coming -v4 patch series and also split the immature ones out too.
> > change the naming methods
>
> In this patch, I found function get_system_type() still returns wrong name,
> "lemote-fulong". In later patches, I found this string was changed to a macro,
> MACH_NAME. Then, the function becomes more complicated and/or sophisticated,
> because of the addition of machname array.
the MACH_NAME macro method is originally picked from lm2e-fixes branch
of Philippe's git://git.linux-cisco.org/linux-mips.git, this method is
used to share the get_system_type() function between different machines.
and the machtype with machname array is only used to share the same
kernel image file between yeeloong-7inch(menglong?) and yeeloong-8.9inch
source code.
I think it will be "bad" to add a new kernel option named MENGLONG or
something else, and add a new yeeloong-7inch directory in
arch/mips/loongson/ for it, because the difference between
yeeloong-7inch and yeeloong-8.0 inch is very small(the shutdown logic
and screen size). and also, simply add two new kernel options like
YEELOONG-7INCH and YEELOONG-89INCH with #ifdef..#else...#endif is also
not that good, is that?
so, i just added a machtype kernel command line(perhaps we can use the
systype or machtype variable in pmon instead as Arnaud Patard
suggested). and perhaps this machtype can also be used to share the the
kernel image file among the future machines.
what about your suggestion here? is there another good solution? or just
keep it simple: just define the get_system_type() function for every
machine and add a new kernel option for yeeloong-7inch?
> I don't know if this is an established or widely accepted policy, but
> intuitively, at the very least IMHO, a series of patches should only provide
> one correct implementation of a particular function, not provide one wrong
> function then override it with a correct one.
>
> If I were you, I would do a 'git reset' first.
> Then 'git add' and/or 'git rm' some files which contain similar changes.
> Then 'git commit'.
> Repeat the last two steps, until all the changes have been committed.
>
I will try to rebase and merge some of the similar patches, if not work,
then did as you suggested, thanks a lot!
thanks!
Wu Zhangjin
next prev parent reply other threads:[~2009-06-08 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 12:58 [loongson-PATCH-v3 00/25] loongson-based machines support wuzhangjin
2009-06-08 16:38 ` Zhang Le
2009-06-08 18:18 ` Wu Zhangjin [this message]
2009-06-08 19:23 ` Zhang Le
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=1244485107.26004.164.camel@falcon \
--to=wuzhangjin@gmail.com \
--cc=erwan@thiscow.com \
--cc=linux-mips@linux-mips.org \
--cc=liujl@lemote.com \
--cc=loongson-dev@googlegroups.com \
--cc=philippe@cowpig.ca \
--cc=r0bertz@gentoo.org \
--cc=ralf@linux-mips.org \
--cc=yanh@lemote.com \
--cc=zhangfx@lemote.com \
/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.