public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] s5-mfc: remove meaningless memory bank assignment
       [not found] <187b01cf385bb9b4510$%debski@samsung.com>
@ 2014-03-05 11:08 ` Seung-Woo Kim
  2014-03-05 11:42   ` Sachin Kamat
  0 siblings, 1 reply; 7+ messages in thread
From: Seung-Woo Kim @ 2014-03-05 11:08 UTC (permalink / raw)
  To: linux-media, k.debski, m.chehab; +Cc: m.szyprowski, sw0312.kim

There was assignment of memory bank with dma address converted
from physical address. But allocation has been changed with dma
function, so the assignment is not necessary.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---
change from v1
- fixes subject and adds proper description
---
 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
index 2475a3c..ee05f2d 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
@@ -44,8 +44,6 @@ int s5p_mfc_alloc_firmware(struct s5p_mfc_dev *dev)
 		return -ENOMEM;
 	}
 
-	dev->bank1 = dev->bank1;
-
 	if (HAS_PORTNUM(dev) && IS_TWOPORT(dev)) {
 		bank2_virt = dma_alloc_coherent(dev->mem_dev_r, 1 << MFC_BASE_ALIGN_ORDER,
 					&bank2_dma_addr, GFP_KERNEL);
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] [media] s5-mfc: remove meaningless memory bank assignment
  2014-03-05 11:08 ` [PATCH] [media] s5-mfc: remove meaningless memory bank assignment Seung-Woo Kim
@ 2014-03-05 11:42   ` Sachin Kamat
  2014-03-06  2:13     ` Seung-Woo Kim
  0 siblings, 1 reply; 7+ messages in thread
From: Sachin Kamat @ 2014-03-05 11:42 UTC (permalink / raw)
  To: Seung-Woo Kim
  Cc: linux-media, Kamil Debski, Mauro Carvalho Chehab,
	Marek Szyprowski

On 5 March 2014 16:38, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
> There was assignment of memory bank with dma address converted
> from physical address. But allocation has been changed with dma
> function, so the assignment is not necessary.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> ---
> change from v1
> - fixes subject and adds proper description
> ---
>  drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
> index 2475a3c..ee05f2d 100644
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
> @@ -44,8 +44,6 @@ int s5p_mfc_alloc_firmware(struct s5p_mfc_dev *dev)
>                 return -ENOMEM;
>         }
>
> -       dev->bank1 = dev->bank1;

Are you sure this isn't some kind of typo? If not then your commit
description is too verbose
to actually say that the code is redundant and could be removed. The
code here is something like

 a = a;

which does not make sense nor add any value and hence redundant and
could be removed.

-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [media] s5-mfc: remove meaningless memory bank assignment
  2014-03-05 11:42   ` Sachin Kamat
@ 2014-03-06  2:13     ` Seung-Woo Kim
  2014-03-06  3:28       ` Sachin Kamat
  0 siblings, 1 reply; 7+ messages in thread
From: Seung-Woo Kim @ 2014-03-06  2:13 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-media, Kamil Debski, Mauro Carvalho Chehab,
	Marek Szyprowski, Seung-Woo Kim

Hello Sachin,

On 2014년 03월 05일 20:42, Sachin Kamat wrote:
> On 5 March 2014 16:38, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:

(...)

>> -       dev->bank1 = dev->bank1;
> 
> Are you sure this isn't some kind of typo? If not then your commit
> description is too verbose
> to actually say that the code is redundant and could be removed. The
> code here is something like
> 
>  a = a;
> 
> which does not make sense nor add any value and hence redundant and
> could be removed.

Right, this meaningless code can be simply removed as like the first
version. Anyway this redundant made from change of address type in
earlier patch. So I tried to describe that.

Regards,
- Seung-Woo Kim

-- 
Seung-Woo Kim
Samsung Software R&D Center
--


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [media] s5-mfc: remove meaningless memory bank assignment
  2014-03-06  2:13     ` Seung-Woo Kim
@ 2014-03-06  3:28       ` Sachin Kamat
  2014-03-06  4:35         ` Seung-Woo Kim
  2014-03-06  4:55         ` [PATCH v3] [media] s5p-mfc: " Seung-Woo Kim
  0 siblings, 2 replies; 7+ messages in thread
From: Sachin Kamat @ 2014-03-06  3:28 UTC (permalink / raw)
  To: Seung-Woo Kim
  Cc: linux-media, Kamil Debski, Mauro Carvalho Chehab,
	Marek Szyprowski

Hi Seung-Woo,

On 6 March 2014 07:43, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
> Hello Sachin,
>
> On 2014년 03월 05일 20:42, Sachin Kamat wrote:
>> On 5 March 2014 16:38, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
>
> (...)
>
>>> -       dev->bank1 = dev->bank1;
>>
>> Are you sure this isn't some kind of typo? If not then your commit
>> description is too verbose
>> to actually say that the code is redundant and could be removed. The
>> code here is something like
>>
>>  a = a;
>>
>> which does not make sense nor add any value and hence redundant and
>> could be removed.
>
> Right, this meaningless code can be simply removed as like the first
> version. Anyway this redundant made from change of address type in
> earlier patch. So I tried to describe that.

What Kamil meant was that it is not a good practice to leave the
commit description
blank however trivial the patch might be. So a single line stating the
obvious should
be sufficient in this case.

-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [media] s5-mfc: remove meaningless memory bank assignment
  2014-03-06  3:28       ` Sachin Kamat
@ 2014-03-06  4:35         ` Seung-Woo Kim
  2014-03-06  4:55         ` [PATCH v3] [media] s5p-mfc: " Seung-Woo Kim
  1 sibling, 0 replies; 7+ messages in thread
From: Seung-Woo Kim @ 2014-03-06  4:35 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-media, Kamil Debski, Mauro Carvalho Chehab,
	Marek Szyprowski, Seung-Woo Kim

Hello Sachin,

On 2014년 03월 06일 12:28, Sachin Kamat wrote:
> Hi Seung-Woo,
> 
> On 6 March 2014 07:43, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
>> Hello Sachin,
>>
>> On 2014년 03월 05일 20:42, Sachin Kamat wrote:
>>> On 5 March 2014 16:38, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
>>
>> (...)
>>
>>>> -       dev->bank1 = dev->bank1;
>>>
>>> Are you sure this isn't some kind of typo? If not then your commit
>>> description is too verbose
>>> to actually say that the code is redundant and could be removed. The
>>> code here is something like
>>>
>>>  a = a;
>>>
>>> which does not make sense nor add any value and hence redundant and
>>> could be removed.
>>
>> Right, this meaningless code can be simply removed as like the first
>> version. Anyway this redundant made from change of address type in
>> earlier patch. So I tried to describe that.
> 
> What Kamil meant was that it is not a good practice to leave the
> commit description
> blank however trivial the patch might be. So a single line stating the
> obvious should
> be sufficient in this case.
> 

Ok, I will re-send with just simple statement.

Thanks,
- Seung-Woo Kim

-- 
Seung-Woo Kim
Samsung Software R&D Center
--


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v3] [media] s5p-mfc: remove meaningless memory bank assignment
  2014-03-06  3:28       ` Sachin Kamat
  2014-03-06  4:35         ` Seung-Woo Kim
@ 2014-03-06  4:55         ` Seung-Woo Kim
  2014-03-06  4:59           ` Sachin Kamat
  1 sibling, 1 reply; 7+ messages in thread
From: Seung-Woo Kim @ 2014-03-06  4:55 UTC (permalink / raw)
  To: linux-media, k.debski, m.chehab, sachin.kamat; +Cc: m.szyprowski, sw0312.kim

This patch removes meaningless assignment of memory bank to itself.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---
change from v2
- simplify description and change typo in subject
change from v1
- fixes subject and adds proper description
---
 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
index 2475a3c..ee05f2d 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
@@ -44,8 +44,6 @@ int s5p_mfc_alloc_firmware(struct s5p_mfc_dev *dev)
 		return -ENOMEM;
 	}
 
-	dev->bank1 = dev->bank1;
-
 	if (HAS_PORTNUM(dev) && IS_TWOPORT(dev)) {
 		bank2_virt = dma_alloc_coherent(dev->mem_dev_r, 1 << MFC_BASE_ALIGN_ORDER,
 					&bank2_dma_addr, GFP_KERNEL);
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] [media] s5p-mfc: remove meaningless memory bank assignment
  2014-03-06  4:55         ` [PATCH v3] [media] s5p-mfc: " Seung-Woo Kim
@ 2014-03-06  4:59           ` Sachin Kamat
  0 siblings, 0 replies; 7+ messages in thread
From: Sachin Kamat @ 2014-03-06  4:59 UTC (permalink / raw)
  To: Seung-Woo Kim
  Cc: linux-media, Kamil Debski, Mauro Carvalho Chehab,
	Marek Szyprowski

Hi Seung-Woo,

On 6 March 2014 10:25, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
> This patch removes meaningless assignment of memory bank to itself.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> ---

Thanks for re-doing this.

Acked-by: Sachin Kamat <sachin.kamat@linaro.org>

-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-06  4:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <187b01cf385bb9b4510$%debski@samsung.com>
2014-03-05 11:08 ` [PATCH] [media] s5-mfc: remove meaningless memory bank assignment Seung-Woo Kim
2014-03-05 11:42   ` Sachin Kamat
2014-03-06  2:13     ` Seung-Woo Kim
2014-03-06  3:28       ` Sachin Kamat
2014-03-06  4:35         ` Seung-Woo Kim
2014-03-06  4:55         ` [PATCH v3] [media] s5p-mfc: " Seung-Woo Kim
2014-03-06  4:59           ` Sachin Kamat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox