Message ID | 1409016665-3824-5-git-send-email-cw00.choi@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Dear Eduardo, This patch is wrong. It is my mistake. Please ignore only this patch because the offset calculation of 'case 0' is different from 'case 2'. Best Regards, Chanwoo Choi On 08/26/2014 10:31 AM, Chanwoo Choi wrote: > This patch remove simply duplicate code when reading triminfo register of Exynos5440. > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > Acked-by: Kyungmin Park <kyungmin.park@samsung.com> > Cc: Zhang Rui <rui.zhang@intel.com> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Amit Daniel Kachhap <amit.daniel@samsung.com> > Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com> > --- > drivers/thermal/samsung/exynos_tmu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > index 64c702a..5888467 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) > */ > switch (data->id) { > case 0: > + case 2: > trim_info = readl(data->base + > EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > break; > case 1: > trim_info = readl(data->base + reg->triminfo_data); > break; > - case 2: > - trim_info = readl(data->base - > - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > } > } else { > /* On exynos5420 the triminfo register is in the shared space */ > -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Aug 28, 2014 at 01:25:14PM +0900, Chanwoo Choi wrote: > Dear Eduardo, > > This patch is wrong. It is my mistake. > > Please ignore only this patch because > the offset calculation of 'case 0' is different from 'case 2'. Do patches 1 - 3 are still correct? Patch 1, from Barlomiej, seams to be a common agreement. > > Best Regards, > Chanwoo Choi > > On 08/26/2014 10:31 AM, Chanwoo Choi wrote: > > This patch remove simply duplicate code when reading triminfo register of Exynos5440. > > > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > > Acked-by: Kyungmin Park <kyungmin.park@samsung.com> > > Cc: Zhang Rui <rui.zhang@intel.com> > > Cc: Eduardo Valentin <edubezval@gmail.com> > > Cc: Amit Daniel Kachhap <amit.daniel@samsung.com> > > Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com> > > --- > > drivers/thermal/samsung/exynos_tmu.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > > index 64c702a..5888467 100644 > > --- a/drivers/thermal/samsung/exynos_tmu.c > > +++ b/drivers/thermal/samsung/exynos_tmu.c > > @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) > > */ > > switch (data->id) { > > case 0: > > + case 2: > > trim_info = readl(data->base + > > EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > > break; > > case 1: > > trim_info = readl(data->base + reg->triminfo_data); > > break; > > - case 2: > > - trim_info = readl(data->base - > > - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > > } > > } else { > > /* On exynos5420 the triminfo register is in the shared space */ > > > -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Dear Eduardo, On 08/28/2014 11:53 PM, Eduardo Valentin wrote: > On Thu, Aug 28, 2014 at 01:25:14PM +0900, Chanwoo Choi wrote: >> Dear Eduardo, >> >> This patch is wrong. It is my mistake. >> >> Please ignore only this patch because >> the offset calculation of 'case 0' is different from 'case 2'. > > > Do patches 1 - 3 are still correct? Patch 1, from Barlomiej, seams to be > a common agreement. Yes, patches 1 - 3 are correct. Best Regards, Chanwoo Choi > >> >> Best Regards, >> Chanwoo Choi >> >> On 08/26/2014 10:31 AM, Chanwoo Choi wrote: >>> This patch remove simply duplicate code when reading triminfo register of Exynos5440. >>> >>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >>> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> >>> Cc: Zhang Rui <rui.zhang@intel.com> >>> Cc: Eduardo Valentin <edubezval@gmail.com> >>> Cc: Amit Daniel Kachhap <amit.daniel@samsung.com> >>> Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com> >>> --- >>> drivers/thermal/samsung/exynos_tmu.c | 4 +--- >>> 1 file changed, 1 insertion(+), 3 deletions(-) >>> >>> diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c >>> index 64c702a..5888467 100644 >>> --- a/drivers/thermal/samsung/exynos_tmu.c >>> +++ b/drivers/thermal/samsung/exynos_tmu.c >>> @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) >>> */ >>> switch (data->id) { >>> case 0: >>> + case 2: >>> trim_info = readl(data->base + >>> EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); >>> break; >>> case 1: >>> trim_info = readl(data->base + reg->triminfo_data); >>> break; >>> - case 2: >>> - trim_info = readl(data->base - >>> - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); >>> } >>> } else { >>> /* On exynos5420 the triminfo register is in the shared space */ >>> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Chanwoo, On Fri, Aug 29, 2014 at 08:50:41AM +0900, Chanwoo Choi wrote: > Dear Eduardo, > > On 08/28/2014 11:53 PM, Eduardo Valentin wrote: > > On Thu, Aug 28, 2014 at 01:25:14PM +0900, Chanwoo Choi wrote: > >> Dear Eduardo, > >> > >> This patch is wrong. It is my mistake. > >> > >> Please ignore only this patch because > >> the offset calculation of 'case 0' is different from 'case 2'. > > > > > > Do patches 1 - 3 are still correct? Patch 1, from Barlomiej, seams to be > > a common agreement. > > Yes, patches 1 - 3 are correct. > OK. I pulled patch 01 into my next branch. Can you please update patches 02 and 03 based on my next brach? They are conflicting with the massive cleanups done by Bartlomiej (Thanks Bartlomiej). So, please, resend patches 02 and 03 only, refreshed onto my next branch. Cheers. > Best Regards, > Chanwoo Choi > > > > >> > >> Best Regards, > >> Chanwoo Choi > >> > >> On 08/26/2014 10:31 AM, Chanwoo Choi wrote: > >>> This patch remove simply duplicate code when reading triminfo register of Exynos5440. > >>> > >>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > >>> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> > >>> Cc: Zhang Rui <rui.zhang@intel.com> > >>> Cc: Eduardo Valentin <edubezval@gmail.com> > >>> Cc: Amit Daniel Kachhap <amit.daniel@samsung.com> > >>> Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com> > >>> --- > >>> drivers/thermal/samsung/exynos_tmu.c | 4 +--- > >>> 1 file changed, 1 insertion(+), 3 deletions(-) > >>> > >>> diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > >>> index 64c702a..5888467 100644 > >>> --- a/drivers/thermal/samsung/exynos_tmu.c > >>> +++ b/drivers/thermal/samsung/exynos_tmu.c > >>> @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) > >>> */ > >>> switch (data->id) { > >>> case 0: > >>> + case 2: > >>> trim_info = readl(data->base + > >>> EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > >>> break; > >>> case 1: > >>> trim_info = readl(data->base + reg->triminfo_data); > >>> break; > >>> - case 2: > >>> - trim_info = readl(data->base - > >>> - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); > >>> } > >>> } else { > >>> /* On exynos5420 the triminfo register is in the shared space */ > >>> > >> > > > -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Dear Eduardo, On 08/30/2014 04:28 AM, Eduardo Valentin wrote: > Chanwoo, > > On Fri, Aug 29, 2014 at 08:50:41AM +0900, Chanwoo Choi wrote: >> Dear Eduardo, >> >> On 08/28/2014 11:53 PM, Eduardo Valentin wrote: >>> On Thu, Aug 28, 2014 at 01:25:14PM +0900, Chanwoo Choi wrote: >>>> Dear Eduardo, >>>> >>>> This patch is wrong. It is my mistake. >>>> >>>> Please ignore only this patch because >>>> the offset calculation of 'case 0' is different from 'case 2'. >>> >>> >>> Do patches 1 - 3 are still correct? Patch 1, from Barlomiej, seams to be >>> a common agreement. > >> >> Yes, patches 1 - 3 are correct. >> > > OK. I pulled patch 01 into my next branch. > > Can you please update patches 02 and 03 based on my next brach? They are > conflicting with the massive cleanups done by Bartlomiej (Thanks > Bartlomiej). So, please, resend patches 02 and 03 only, refreshed onto > my next branch. OK, I'll send new patchset after rebase it. Best Regards, Chanwoo Choi > > Cheers. > >> Best Regards, >> Chanwoo Choi >> >>> >>>> >>>> Best Regards, >>>> Chanwoo Choi >>>> >>>> On 08/26/2014 10:31 AM, Chanwoo Choi wrote: >>>>> This patch remove simply duplicate code when reading triminfo register of Exynos5440. >>>>> >>>>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >>>>> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> >>>>> Cc: Zhang Rui <rui.zhang@intel.com> >>>>> Cc: Eduardo Valentin <edubezval@gmail.com> >>>>> Cc: Amit Daniel Kachhap <amit.daniel@samsung.com> >>>>> Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com> >>>>> --- >>>>> drivers/thermal/samsung/exynos_tmu.c | 4 +--- >>>>> 1 file changed, 1 insertion(+), 3 deletions(-) >>>>> >>>>> diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c >>>>> index 64c702a..5888467 100644 >>>>> --- a/drivers/thermal/samsung/exynos_tmu.c >>>>> +++ b/drivers/thermal/samsung/exynos_tmu.c >>>>> @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) >>>>> */ >>>>> switch (data->id) { >>>>> case 0: >>>>> + case 2: >>>>> trim_info = readl(data->base + >>>>> EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); >>>>> break; >>>>> case 1: >>>>> trim_info = readl(data->base + reg->triminfo_data); >>>>> break; >>>>> - case 2: >>>>> - trim_info = readl(data->base - >>>>> - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); >>>>> } >>>>> } else { >>>>> /* On exynos5420 the triminfo register is in the shared space */ >>>>> >>>> >>> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 64c702a..5888467 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -187,15 +187,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) */ switch (data->id) { case 0: + case 2: trim_info = readl(data->base + EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); break; case 1: trim_info = readl(data->base + reg->triminfo_data); break; - case 2: - trim_info = readl(data->base - - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); } } else { /* On exynos5420 the triminfo register is in the shared space */