diff mbox

arm: shmobile: r8a7790: Fix I2C controller names

Message ID 1387379302-20223-1-git-send-email-valentine.barshak@cogentembedded.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Valentine Barshak Dec. 18, 2013, 3:08 p.m. UTC
The R8A7790 is an R-Car Gen2 SoC. The clock division factor
(CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
Fix the device names for R8A7790 SoC to make the R-Car I2C
driver configure the hardware properly.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
---
 arch/arm/mach-shmobile/clock-r8a7790.c | 8 ++++----
 arch/arm/mach-shmobile/setup-r8a7790.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

Comments

Kuninori Morimoto Dec. 19, 2013, 5:17 a.m. UTC | #1
Hi

> The R8A7790 is an R-Car Gen2 SoC. The clock division factor
> (CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
> Fix the device names for R8A7790 SoC to make the R-Car I2C
> driver configure the hardware properly.
> 
> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> ---

Grr... this is correct
sorry my fault.

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Simon, this patch is based on below patch

043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
(i2c: rcar: fixup rcar type naming)


Best regards
---
Kuninori Morimoto
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Dec. 19, 2013, 8:58 a.m. UTC | #2
On Wed, Dec 18, 2013 at 09:17:05PM -0800, Kuninori Morimoto wrote:
> 
> Hi
> 
> > The R8A7790 is an R-Car Gen2 SoC. The clock division factor
> > (CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
> > Fix the device names for R8A7790 SoC to make the R-Car I2C
> > driver configure the hardware properly.
> > 
> > Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> > ---
> 
> Grr... this is correct
> sorry my fault.
> 
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Simon, this patch is based on below patch
> 
> 043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
> (i2c: rcar: fixup rcar type naming)

Thanks.

Valentine could you please:

1. Rebase this on the fixes-for-v3.13 branch in the renesas tree and;
2. Include something like this in the following.

This resolves a regression which was introduced by
043a3f113ce41e3 ("i2c: rcar: fixup rcar type naming") in v3.12-rc4.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Valentine Barshak Dec. 19, 2013, 12:24 p.m. UTC | #3
On 12/19/2013 12:58 PM, Simon Horman wrote:
> On Wed, Dec 18, 2013 at 09:17:05PM -0800, Kuninori Morimoto wrote:
>>
>> Hi
>>
>>> The R8A7790 is an R-Car Gen2 SoC. The clock division factor
>>> (CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
>>> Fix the device names for R8A7790 SoC to make the R-Car I2C
>>> driver configure the hardware properly.
>>>
>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>>> ---
>>
>> Grr... this is correct
>> sorry my fault.
>>
>> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>>
>> Simon, this patch is based on below patch
>>
>> 043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
>> (i2c: rcar: fixup rcar type naming)
>
> Thanks.
>
> Valentine could you please:
>
> 1. Rebase this on the fixes-for-v3.13 branch in the renesas tree and;
> 2. Include something like this in the following.
>
> This resolves a regression which was introduced by
> 043a3f113ce41e3 ("i2c: rcar: fixup rcar type naming") in v3.12-rc4.
>

Sure, I'll rebase, but I think the comment is not needed since the issue here is not really related to 043a3f113ce41e3.
That patch changed the device name from "i2c-rcar_h2" to "i2c-rcar_gen2" in the driver, while the patch that adds i2c to
the r8a7790 platform (b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support") uses a wrong ("i2c-rcar") name anyways.

> Thanks.
>

Thanks,
Val.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Valentine Barshak Dec. 19, 2013, 12:35 p.m. UTC | #4
On 12/19/2013 04:24 PM, Valentine wrote:
> On 12/19/2013 12:58 PM, Simon Horman wrote:
>> On Wed, Dec 18, 2013 at 09:17:05PM -0800, Kuninori Morimoto wrote:
>>>
>>> Hi
>>>
>>>> The R8A7790 is an R-Car Gen2 SoC. The clock division factor
>>>> (CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
>>>> Fix the device names for R8A7790 SoC to make the R-Car I2C
>>>> driver configure the hardware properly.
>>>>
>>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>>>> ---
>>>
>>> Grr... this is correct
>>> sorry my fault.
>>>
>>> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>>>
>>> Simon, this patch is based on below patch
>>>
>>> 043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
>>> (i2c: rcar: fixup rcar type naming)
>>
>> Thanks.
>>
>> Valentine could you please:
>>
>> 1. Rebase this on the fixes-for-v3.13 branch in the renesas tree and;
>> 2. Include something like this in the following.
>>
>> This resolves a regression which was introduced by
>> 043a3f113ce41e3 ("i2c: rcar: fixup rcar type naming") in v3.12-rc4.
>>
>
> Sure, I'll rebase, but I think the comment is not needed since the issue here is not really related to 043a3f113ce41e3.
> That patch changed the device name from "i2c-rcar_h2" to "i2c-rcar_gen2" in the driver, while the patch that adds i2c to
> the r8a7790 platform (b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support") uses a wrong ("i2c-rcar") name anyways.
>

In fact there's nothing to rebase to. I've just looked at fixes-for-v3.13. The branch doesn't have commit
b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support" which in fact follows v3.13-rc1 (Linux 3.13-rc1)

>> Thanks.
>>
>
> Thanks,
> Val.

Thanks,
Val.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Dec. 27, 2013, 2:10 a.m. UTC | #5
On Thu, Dec 19, 2013 at 04:35:37PM +0400, Valentine wrote:
> On 12/19/2013 04:24 PM, Valentine wrote:
> >On 12/19/2013 12:58 PM, Simon Horman wrote:
> >>On Wed, Dec 18, 2013 at 09:17:05PM -0800, Kuninori Morimoto wrote:
> >>>
> >>>Hi
> >>>
> >>>>The R8A7790 is an R-Car Gen2 SoC. The clock division factor
> >>>>(CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
> >>>>Fix the device names for R8A7790 SoC to make the R-Car I2C
> >>>>driver configure the hardware properly.
> >>>>
> >>>>Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> >>>>---
> >>>
> >>>Grr... this is correct
> >>>sorry my fault.
> >>>
> >>>Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> >>>
> >>>Simon, this patch is based on below patch
> >>>
> >>>043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
> >>>(i2c: rcar: fixup rcar type naming)
> >>
> >>Thanks.
> >>
> >>Valentine could you please:
> >>
> >>1. Rebase this on the fixes-for-v3.13 branch in the renesas tree and;
> >>2. Include something like this in the following.
> >>
> >>This resolves a regression which was introduced by
> >>043a3f113ce41e3 ("i2c: rcar: fixup rcar type naming") in v3.12-rc4.
> >>
> >
> >Sure, I'll rebase, but I think the comment is not needed since the issue here is not really related to 043a3f113ce41e3.
> >That patch changed the device name from "i2c-rcar_h2" to "i2c-rcar_gen2" in the driver, while the patch that adds i2c to
> >the r8a7790 platform (b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support") uses a wrong ("i2c-rcar") name anyways.
> >
> 
> In fact there's nothing to rebase to. I've just looked at fixes-for-v3.13. The branch doesn't have commit
> b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support" which in fact follows v3.13-rc1 (Linux 3.13-rc1)

Sorry, I assumed this was a fix for v3.13, but its actually a fix
for code that has been queued up for v3.14.

Could you please do the following:

1. Note which patch caused the problem in the changelog.
2. Rebase on top of the latest devel tag,
   currently renesas-devel-v3.13-rc5-20131226.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Valentine Barshak Dec. 27, 2013, 10:59 a.m. UTC | #6
On 12/27/2013 06:10 AM, Simon Horman wrote:
> On Thu, Dec 19, 2013 at 04:35:37PM +0400, Valentine wrote:
>> On 12/19/2013 04:24 PM, Valentine wrote:
>>> On 12/19/2013 12:58 PM, Simon Horman wrote:
>>>> On Wed, Dec 18, 2013 at 09:17:05PM -0800, Kuninori Morimoto wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>>> The R8A7790 is an R-Car Gen2 SoC. The clock division factor
>>>>>> (CDF) width is 3 bits on Gen2 as opposed to 2 bits on Gen1.
>>>>>> Fix the device names for R8A7790 SoC to make the R-Car I2C
>>>>>> driver configure the hardware properly.
>>>>>>
>>>>>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>>>>>> ---
>>>>>
>>>>> Grr... this is correct
>>>>> sorry my fault.
>>>>>
>>>>> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>>>>>
>>>>> Simon, this patch is based on below patch
>>>>>
>>>>> 043a3f113ce41e3e6fdbb49551df75e82e8c4ae7
>>>>> (i2c: rcar: fixup rcar type naming)
>>>>
>>>> Thanks.
>>>>
>>>> Valentine could you please:
>>>>
>>>> 1. Rebase this on the fixes-for-v3.13 branch in the renesas tree and;
>>>> 2. Include something like this in the following.
>>>>
>>>> This resolves a regression which was introduced by
>>>> 043a3f113ce41e3 ("i2c: rcar: fixup rcar type naming") in v3.12-rc4.
>>>>
>>>
>>> Sure, I'll rebase, but I think the comment is not needed since the issue here is not really related to 043a3f113ce41e3.
>>> That patch changed the device name from "i2c-rcar_h2" to "i2c-rcar_gen2" in the driver, while the patch that adds i2c to
>>> the r8a7790 platform (b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support") uses a wrong ("i2c-rcar") name anyways.
>>>
>>
>> In fact there's nothing to rebase to. I've just looked at fixes-for-v3.13. The branch doesn't have commit
>> b448c904f5058b6c "ARM: shmobile: r8a7790: add I2C support" which in fact follows v3.13-rc1 (Linux 3.13-rc1)
>
> Sorry, I assumed this was a fix for v3.13, but its actually a fix
> for code that has been queued up for v3.14.
>
> Could you please do the following:
>
> 1. Note which patch caused the problem in the changelog.
> 2. Rebase on top of the latest devel tag,
>     currently renesas-devel-v3.13-rc5-20131226.
>
> Thanks
>

Just send the V2 version.

Thanks,
Val.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c
index 81f45a0..18d836b 100644
--- a/arch/arm/mach-shmobile/clock-r8a7790.c
+++ b/arch/arm/mach-shmobile/clock-r8a7790.c
@@ -297,13 +297,13 @@  static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]),
 	CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]),
 	CLKDEV_DEV_ID("e6508000.i2c", &mstp_clks[MSTP931]),
-	CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP931]),
+	CLKDEV_DEV_ID("i2c-rcar_gen2.0", &mstp_clks[MSTP931]),
 	CLKDEV_DEV_ID("e6518000.i2c", &mstp_clks[MSTP930]),
-	CLKDEV_DEV_ID("i2c-rcar.1", &mstp_clks[MSTP930]),
+	CLKDEV_DEV_ID("i2c-rcar_gen2.1", &mstp_clks[MSTP930]),
 	CLKDEV_DEV_ID("e6530000.i2c", &mstp_clks[MSTP929]),
-	CLKDEV_DEV_ID("i2c-rcar.2", &mstp_clks[MSTP929]),
+	CLKDEV_DEV_ID("i2c-rcar_gen2.2", &mstp_clks[MSTP929]),
 	CLKDEV_DEV_ID("e6540000.i2c", &mstp_clks[MSTP928]),
-	CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP928]),
+	CLKDEV_DEV_ID("i2c-rcar_gen2.3", &mstp_clks[MSTP928]),
 	CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
 	CLKDEV_DEV_ID("r8a7790-vin.0", &mstp_clks[MSTP811]),
 	CLKDEV_DEV_ID("r8a7790-vin.1", &mstp_clks[MSTP810]),
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index 8474818..77fd7ed 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -85,7 +85,7 @@  static struct resource i2c_resources[] __initdata = {
 
 #define r8a7790_register_i2c(idx)		\
 	platform_device_register_simple(	\
-		"i2c-rcar", idx,		\
+		"i2c-rcar_gen2", idx,		\
 		i2c_resources + (2 * idx), 2);	\
 
 void __init r8a7790_pinmux_init(void)