public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] arm: kzm9g: Update to new I2C framework
Date: Thu, 17 Oct 2013 09:37:21 +0200	[thread overview]
Message-ID: <525F93B1.5080207@denx.de> (raw)
In-Reply-To: <1381994312-10728-2-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>

Hello Nobuhiro,

Am 17.10.2013 09:18, schrieb Nobuhiro Iwamatsu:
> Kzm9g uses sh_i2c driver. sh_i2c driver updated to new I2C framwork.
> This updates kzm9g to this change.
>
> Signed-off-by: Nobuhiro Iwamatsu<nobuhiro.iwamatsu.yj@renesas.com>
>
> ---
>   board/kmc/kzm9g/kzm9g.c |  2 +-
>   include/configs/kzm9g.h | 31 ++++++++++++++++---------------
>   2 files changed, 17 insertions(+), 16 deletions(-)

Could you sqash this patch into http://patchwork.ozlabs.org/patch/284106
so we get no problems with "git bisect".

Beside of that only one comment:

> diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
> index b669ffe..0ec5e8e 100644
> --- a/board/kmc/kzm9g/kzm9g.c
> +++ b/board/kmc/kzm9g/kzm9g.c
> @@ -289,7 +289,7 @@ void adjust_core_voltage(void)
>   {
>   	u8 data;
>
> -	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
> +	i2c_init(CONFIG_SYS_I2C_SH_SPEED0, CONFIG_SYS_I2C_SLAVE);

You no longer need to call i2c_init, as this does i2c_set_bus_num()
for you. Please remove this and test, thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2013-10-17  7:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17  7:18 [U-Boot] [PATCH 1/3] i2c: sh_i2c: Update to new CONFIG_SYS_I2C framework Nobuhiro Iwamatsu
2013-10-17  7:18 ` [U-Boot] [PATCH 2/3] arm: kzm9g: Update to new I2C framework Nobuhiro Iwamatsu
2013-10-17  7:37   ` Heiko Schocher [this message]
2013-10-21  9:36     ` Nobuhiro Iwamatsu
2013-10-17  7:18 ` [U-Boot] [PATCH 3/3] sh: ecovec: " Nobuhiro Iwamatsu
2013-10-17  7:37   ` Heiko Schocher
2013-10-21  9:40     ` Nobuhiro Iwamatsu

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=525F93B1.5080207@denx.de \
    --to=hs@denx.de \
    --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