public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/13] imx-common: use simpler runtime cpu dection macros
Date: Fri, 20 May 2016 16:41:29 +0800	[thread overview]
Message-ID: <20160520084127.GB23014@linux-7smt.suse> (raw)
In-Reply-To: <CA+sos7-BHw=YC5znZgDrE8vfH8R0wmfCuUwykdE2Oy=QA4p5LQ@mail.gmail.com>

Hi Beno?t,

On Fri, May 20, 2016 at 01:02:10AM +0200, Beno?t Th?baudeau wrote:
>Dear Peng Fan,
>
>On Wed, May 18, 2016 at 9:53 AM, Peng Fan <van.freenix@gmail.com> wrote:
>> Use simpler runtime cpu dection macros.
>>
>> Signed-off-by: Peng Fan <van.freenix@gmail.com>
>> Cc: Stefano Babic <sbabic@denx.de>
>> Cc: Ulises Cardenas <Ulises.Cardenas@freescale.com>
>> Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
>> Cc: "Beno?t Th?baudeau" <benoit.thebaudeau.dev@gmail.com>
>> ---
>>  arch/arm/imx-common/hab.c      | 43 +++++++++++++-----------------------------
>>  arch/arm/imx-common/init.c     |  5 ++---
>>  arch/arm/imx-common/iomux-v3.c |  2 +-
>>  arch/arm/imx-common/sata.c     |  2 +-
>>  arch/arm/imx-common/timer.c    | 11 +++--------
>>  5 files changed, 20 insertions(+), 43 deletions(-)
>>
>> diff --git a/arch/arm/imx-common/hab.c b/arch/arm/imx-common/hab.c
>> index 8bbcc22..a980688 100644
>> --- a/arch/arm/imx-common/hab.c
>> +++ b/arch/arm/imx-common/hab.c
>> @@ -17,60 +17,45 @@
>>
>>  #define hab_rvt_report_event_p                                 \
>>  (                                                              \
>> -       ((is_cpu_type(MXC_CPU_MX6Q) ||                          \
>> -         is_cpu_type(MXC_CPU_MX6D)) &&                         \
>> -         (soc_rev() >= CHIP_REV_1_5)) ?                        \
>> +       (is_mx6dq() && (soc_rev() >= CHIP_REV_1_5)) ?           \
>>         ((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_NEW) :  \
>> -       (is_cpu_type(MXC_CPU_MX6DL) &&                          \
>> -        (soc_rev() >= CHIP_REV_1_2)) ?                         \
>> +       (is_mx6sdl() && (soc_rev() >= CHIP_REV_1_2)) ?          \
>
>This change silently introduces the possibility of MXC_CPU_MX6SOLO. Is
>this on purpose? If so, then it means that there was something

Yeah. on purpose.

>unrelated to this patch that was wrong in this code for
>MXC_CPU_MX6SOLO, so this should be fixed in a separate patch before
>this one. If not, then an is_mx6dl() macro should be introduced.

6solo and 6dl works the same. I do not plan to add a is_mx6dl here.
I can refine the commit log to note this in V2.

Stefano, do you have any comments on this?

Thanks,
Peng.

  reply	other threads:[~2016-05-20  8:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18  7:53 [U-Boot] [PATCH 01/13] imx-common: introduce simpler macros for runtime dection Peng Fan
2016-05-18  7:53 ` [U-Boot] [PATCH 02/13] imx: mx6: use simpler runtime cpu dection macros Peng Fan
2016-05-18  7:53 ` [U-Boot] [PATCH 03/13] imx-common: " Peng Fan
2016-05-19 23:02   ` Benoît Thébaudeau
2016-05-20  8:41     ` Peng Fan [this message]
2016-05-20 20:39       ` Benoît Thébaudeau
2016-05-18  7:54 ` [U-Boot] [PATCH 04/13] imx: mx6: ddr: support i.MX6D/QPlus Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 05/13] imx: mx6: correct get_cpu_speed_grade_hz for i.MX6DQP Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 06/13] imx-common: hab: support i.MX6DQPlus Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 07/13] imx-common: sata: return failure if not i.MX6DQPlus Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 08/13] imx-common: timer: support i.MX6DQPlus Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 09/13] mtd: nand: mxs: use simpler runtime cpu dection macros Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 10/13] ocotp: mxc: " Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 11/13] net: fec_mxc: " Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 12/13] block: dwc_ahsata: support i.MX6DQPlus Peng Fan
2016-05-18  7:54 ` [U-Boot] [PATCH 13/13] board: mx6sabresd/auto: use simpler runtime cpu dection macros Peng Fan

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=20160520084127.GB23014@linux-7smt.suse \
    --to=van.freenix@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox