public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen.5i5j@gmail•com>
To: Ralf Baechle <ralf@linux-mips•org>
Cc: linux-m32r-ja@ml•linux-m32r.org, linux-mips@linux-mips•org,
	linux-m68k@vger•kernel.org, a-jacquiot@ti•com,
	catalin.marinas@arm•com, linux@openrisc•net, will.deacon@arm•com,
	dhowells@redhat•com, jcmvbkbc@gmail•com, paulus@samba•org,
	hpa@zytor•com, sparclinux@vger•kernel.org,
	linux-hexagon@vger•kernel.org, linux-s390@vger•kernel.org,
	gxt@mprc•pku.edu.cn, Jean Delvare <jdelvare@suse•de>,
	egtvedt@samfundet•no, jonas@southpole•se,
	Liqin Chen <liqin.linux@gmail•com>,
	jesper.nilsson@axis•com, linux-am33-list@redhat•com,
	linux@arm•linux.org.uk, linux-c6x-dev@linux-c6x•org,
	"David S. Miller" <davem@davemloft•net>,
	linux-xtensa@linux-xtensa•org, takata@linux-m32r•org,
	x86@kernel•org, jejb@parisc-linux•org, mingo@redhat•com,
	Geert Uytterhoeven <geert@linux-m68k•org>,
	Lennox Wu <lennox.wu@gmail•com>,
	msalter@redhat•com, mattst88@gmail•com, hskinnemoen@gmail•com,
	fenghua.yu@intel•com, james.hogan@imgtec•com,
	Arnd Bergmann <arnd@arndb•de>,
	realmz6@gmail•com, heiko.carstens@de•ibm.com, jdike@addtoit•com,
	linux-alpha@vger•kernel.org,
	adi-buildroot-devel@lists•sourceforge.net, cmetcalf@tilera•com,
	starvik@axis•com, linux-m32r@ml•linux-m32r.org,
	ink@jurassic•park.msu.ru,
	user-mode-linux-user@lists•sourceforge.net, tglx@linutronix•de,
	linux-metag@vger•kernel.org,
	linux-arm-kernel@lists•infradead.org, rth@twiddle•net,
	chris@zankel•net, Michal Simek <monstr@monstr•eu>,
	tony.luck@intel•com, linux-ia64@vger•kernel.org,
	linux-parisc@vger•kernel.org, linux-cris-kernel@axis•com,
	vgupta@synopsys•com,
	"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>,
	rkuo@codeaurora•org, user-mode-linux-devel@lists•sourceforge.net,
	Richard Weinberger <richard@nod•at>,
	Martin Schwidefsky <schwidefsky@de•ibm.com>,
	linux390@de•ibm.com, akpm@linux-foundation•org,
	yasutake.koichi@jp•panasonic.com, linuxppc-dev@lists•ozlabs.org,
	deller@gmx•de
Subject: Re: [PATCH v3] arch: Kconfig: Let all architectures set endian explicitly
Date: Fri, 15 Aug 2014 06:14:38 +0800	[thread overview]
Message-ID: <53ED34CE.3040001@gmail.com> (raw)
In-Reply-To: <20140814180418.GA20777@linux-mips.org>

On 08/15/2014 02:04 AM, Ralf Baechle wrote:
> On Fri, Aug 15, 2014 at 12:54:53AM +0800, Chen Gang wrote:
> 
>> Normal architectures:
>>
>>  - Big endian: avr32, frv, m68k, openrisc, parisc, s390, sparc
>>
>>  - Little endian: alpha, blackfin, cris, hexagon, ia64, metag, mn10300,
>>                   score, unicore32, x86
>>
>>  - Choose in config time: arc, arm, arm64, c6x, m32r, mips, powerpc, sh
> 
> Nak for MIPS.  On MIPS Kconfig already always sets one of CPU_BIG_ENDIAN
> and CPU_LITTLE_ENDIAN depending on platforms and where both endianess are
> supported by a platform, user choice:
> 
> config FOO
> 	bool "foo"
> 	select SYS_SUPPORTS_LITTLE_ENDIAN
> 
> config FOO
> 	bool "foo"
> 	select SYS_SUPPORTS_BIG_ENDIAN
> 	select SYS_SUPPORTS_LITTLE_ENDIAN
> [...]
> choice
>         prompt "Endianess selection"
>         help
>           Some MIPS machines can be configured for either little or big endian
>           byte order. These modes require different kernels and a different
>           Linux distribution.  In general there is one preferred byteorder for a
>           particular system but some systems are just as commonly used in the
>           one or the other endianness.
> 
> config CPU_BIG_ENDIAN
>         bool "Big endian"
>         depends on SYS_SUPPORTS_BIG_ENDIAN
> 
> config CPU_LITTLE_ENDIAN
>         bool "Little endian"
>         depends on SYS_SUPPORTS_LITTLE_ENDIAN
>         help
> 
> endchoice
> 

OK, thanks, I assumes when support both endian, the default choice is
CPU_BIG_ENDIAN, although no default value for choice (originally, I did
worry about it).

> So I think you can just drop the MIPS segment from your patch.
> 

If what I assumes is correct, what you said sounds reasonable to me.


Thanks.
-- 
Chen Gang

Open share and attitude like air water and life which God blessed

  reply	other threads:[~2014-08-14 22:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14 16:54 [PATCH v3] arch: Kconfig: Let all architectures set endian explicitly Chen Gang
2014-08-14 18:04 ` Ralf Baechle
2014-08-14 22:14   ` Chen Gang [this message]
2014-08-15  9:01     ` Chen Gang
2014-08-24  8:38       ` Chen Gang
2014-08-25 12:26         ` Chen Gang
2014-08-14 18:21 ` Vineet Gupta
2014-08-14 18:27   ` Lennox Wu
2014-08-14 22:22     ` Chen Gang
2014-08-14 23:12       ` Vineet Gupta
2014-08-15  1:29         ` Chen Gang
2014-08-15  1:47 ` Max Filippov
2014-08-15  1:52   ` Max Filippov
2014-08-15  2:06     ` Chen Gang

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=53ED34CE.3040001@gmail.com \
    --to=gang.chen.5i5j@gmail$(echo .)com \
    --cc=a-jacquiot@ti$(echo .)com \
    --cc=adi-buildroot-devel@lists$(echo .)sourceforge.net \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=arnd@arndb$(echo .)de \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=chris@zankel$(echo .)net \
    --cc=cmetcalf@tilera$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=deller@gmx$(echo .)de \
    --cc=dhowells@redhat$(echo .)com \
    --cc=egtvedt@samfundet$(echo .)no \
    --cc=fenghua.yu@intel$(echo .)com \
    --cc=geert@linux-m68k$(echo .)org \
    --cc=gxt@mprc$(echo .)pku.edu.cn \
    --cc=heiko.carstens@de$(echo .)ibm.com \
    --cc=hpa@zytor$(echo .)com \
    --cc=hskinnemoen@gmail$(echo .)com \
    --cc=ink@jurassic$(echo .)park.msu.ru \
    --cc=james.hogan@imgtec$(echo .)com \
    --cc=jcmvbkbc@gmail$(echo .)com \
    --cc=jdelvare@suse$(echo .)de \
    --cc=jdike@addtoit$(echo .)com \
    --cc=jejb@parisc-linux$(echo .)org \
    --cc=jesper.nilsson@axis$(echo .)com \
    --cc=jonas@southpole$(echo .)se \
    --cc=lennox.wu@gmail$(echo .)com \
    --cc=linux-alpha@vger$(echo .)kernel.org \
    --cc=linux-am33-list@redhat$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-c6x-dev@linux-c6x$(echo .)org \
    --cc=linux-cris-kernel@axis$(echo .)com \
    --cc=linux-hexagon@vger$(echo .)kernel.org \
    --cc=linux-ia64@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-m32r-ja@ml$(echo .)linux-m32r.org \
    --cc=linux-m32r@ml$(echo .)linux-m32r.org \
    --cc=linux-m68k@vger$(echo .)kernel.org \
    --cc=linux-metag@vger$(echo .)kernel.org \
    --cc=linux-mips@linux-mips$(echo .)org \
    --cc=linux-parisc@vger$(echo .)kernel.org \
    --cc=linux-s390@vger$(echo .)kernel.org \
    --cc=linux-xtensa@linux-xtensa$(echo .)org \
    --cc=linux390@de$(echo .)ibm.com \
    --cc=linux@arm$(echo .)linux.org.uk \
    --cc=linux@openrisc$(echo .)net \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=liqin.linux@gmail$(echo .)com \
    --cc=mattst88@gmail$(echo .)com \
    --cc=mingo@redhat$(echo .)com \
    --cc=monstr@monstr$(echo .)eu \
    --cc=msalter@redhat$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=ralf@linux-mips$(echo .)org \
    --cc=realmz6@gmail$(echo .)com \
    --cc=richard@nod$(echo .)at \
    --cc=rkuo@codeaurora$(echo .)org \
    --cc=rth@twiddle$(echo .)net \
    --cc=schwidefsky@de$(echo .)ibm.com \
    --cc=sparclinux@vger$(echo .)kernel.org \
    --cc=starvik@axis$(echo .)com \
    --cc=takata@linux-m32r$(echo .)org \
    --cc=tglx@linutronix$(echo .)de \
    --cc=tony.luck@intel$(echo .)com \
    --cc=user-mode-linux-devel@lists$(echo .)sourceforge.net \
    --cc=user-mode-linux-user@lists$(echo .)sourceforge.net \
    --cc=vgupta@synopsys$(echo .)com \
    --cc=will.deacon@arm$(echo .)com \
    --cc=x86@kernel$(echo .)org \
    --cc=yasutake.koichi@jp$(echo .)panasonic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox