public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] gunzip.c: use block layer for writes
@ 2016-04-11 22:21 Eric Nelson
  2016-04-12 16:45 ` Stephen Warren
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Eric Nelson @ 2016-04-11 22:21 UTC (permalink / raw)
  To: u-boot

Call blk_dwrite to ensure that the block cache is notified
if enabled and remove build breakage when CONFIG_BLK is enabled.

Signed-off-by: Eric Nelson <eric@nelint.com>
---
 lib/gunzip.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/gunzip.c b/lib/gunzip.c
index 6d65ccc..bc746d6 100644
--- a/lib/gunzip.c
+++ b/lib/gunzip.c
@@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len,
 			gzwrite_progress(iteration++,
 					 totalfilled,
 					 szexpected);
-			blocks_written = dev->block_write(dev, outblock,
-							  writeblocks,
-							  writebuf);
+			blocks_written = blk_dwrite(dev, outblock,
+						    writeblocks, writebuf);
 			outblock += blocks_written;
 			if (ctrlc()) {
 				puts("abort\n");
-- 
2.6.2

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

* [U-Boot] [PATCH] gunzip.c: use block layer for writes
  2016-04-11 22:21 [U-Boot] [PATCH] gunzip.c: use block layer for writes Eric Nelson
@ 2016-04-12 16:45 ` Stephen Warren
  2016-04-12 17:18   ` Eric Nelson
  2016-04-20 14:40 ` Simon Glass
  2016-04-21 11:22 ` [U-Boot] " Tom Rini
  2 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2016-04-12 16:45 UTC (permalink / raw)
  To: u-boot

On 04/11/2016 04:21 PM, Eric Nelson wrote:
> Call blk_dwrite to ensure that the block cache is notified
> if enabled and remove build breakage when CONFIG_BLK is enabled.

Reviewed-by: Stephen Warren <swarren@nvidia.com>

You probably wanted to Cc whichever maintainer will apply this though. 
Hopefully they'll see it in patchwork.

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

* [U-Boot] [PATCH] gunzip.c: use block layer for writes
  2016-04-12 16:45 ` Stephen Warren
@ 2016-04-12 17:18   ` Eric Nelson
  2016-04-12 17:21     ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Nelson @ 2016-04-12 17:18 UTC (permalink / raw)
  To: u-boot

Thanks Stephen,

On 04/12/2016 09:45 AM, Stephen Warren wrote:
> On 04/11/2016 04:21 PM, Eric Nelson wrote:
>> Call blk_dwrite to ensure that the block cache is notified
>> if enabled and remove build breakage when CONFIG_BLK is enabled.
> 
> Reviewed-by: Stephen Warren <swarren@nvidia.com>
> 
> You probably wanted to Cc whichever maintainer will apply this though.
> Hopefully they'll see it in patchwork.

I'm not sure who that might be and I included everyone on
the output of get_maintainer.pl.

Tom's the last one to commit and comment on the gzwrite piece
of code, so perhaps it's him.

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

* [U-Boot] [PATCH] gunzip.c: use block layer for writes
  2016-04-12 17:18   ` Eric Nelson
@ 2016-04-12 17:21     ` Tom Rini
  2016-04-12 17:32       ` Stephen Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2016-04-12 17:21 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 12, 2016 at 10:18:39AM -0700, Eric Nelson wrote:
> Thanks Stephen,
> 
> On 04/12/2016 09:45 AM, Stephen Warren wrote:
> > On 04/11/2016 04:21 PM, Eric Nelson wrote:
> >> Call blk_dwrite to ensure that the block cache is notified
> >> if enabled and remove build breakage when CONFIG_BLK is enabled.
> > 
> > Reviewed-by: Stephen Warren <swarren@nvidia.com>
> > 
> > You probably wanted to Cc whichever maintainer will apply this though.
> > Hopefully they'll see it in patchwork.
> 
> I'm not sure who that might be and I included everyone on
> the output of get_maintainer.pl.
> 
> Tom's the last one to commit and comment on the gzwrite piece
> of code, so perhaps it's him.

Indeed, last resort is me :)  I suppose the top of my head question is,
do we have some gunzip tests that test.py will kick off?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160412/579a2d7b/attachment-0001.sig>

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

* [U-Boot] [PATCH] gunzip.c: use block layer for writes
  2016-04-12 17:21     ` Tom Rini
@ 2016-04-12 17:32       ` Stephen Warren
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Warren @ 2016-04-12 17:32 UTC (permalink / raw)
  To: u-boot

On 04/12/2016 11:21 AM, Tom Rini wrote:
> On Tue, Apr 12, 2016 at 10:18:39AM -0700, Eric Nelson wrote:
>> Thanks Stephen,
>>
>> On 04/12/2016 09:45 AM, Stephen Warren wrote:
>>> On 04/11/2016 04:21 PM, Eric Nelson wrote:
>>>> Call blk_dwrite to ensure that the block cache is notified
>>>> if enabled and remove build breakage when CONFIG_BLK is enabled.
>>>
>>> Reviewed-by: Stephen Warren <swarren@nvidia.com>
>>>
>>> You probably wanted to Cc whichever maintainer will apply this though.
>>> Hopefully they'll see it in patchwork.
>>
>> I'm not sure who that might be and I included everyone on
>> the output of get_maintainer.pl.
>>
>> Tom's the last one to commit and comment on the gzwrite piece
>> of code, so perhaps it's him.
>
> Indeed, last resort is me :)  I suppose the top of my head question is,
> do we have some gunzip tests that test.py will kick off?

I don't believe we do for the command. IIRC there's a sandbox test for 
the core gunzip routine itself, but not the gzwrite command that uses it.

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

* [U-Boot] [PATCH] gunzip.c: use block layer for writes
  2016-04-11 22:21 [U-Boot] [PATCH] gunzip.c: use block layer for writes Eric Nelson
  2016-04-12 16:45 ` Stephen Warren
@ 2016-04-20 14:40 ` Simon Glass
  2016-04-21 11:22 ` [U-Boot] " Tom Rini
  2 siblings, 0 replies; 7+ messages in thread
From: Simon Glass @ 2016-04-20 14:40 UTC (permalink / raw)
  To: u-boot

On 11 April 2016 at 16:21, Eric Nelson <eric@nelint.com> wrote:
> Call blk_dwrite to ensure that the block cache is notified
> if enabled and remove build breakage when CONFIG_BLK is enabled.
>
> Signed-off-by: Eric Nelson <eric@nelint.com>
> ---
>  lib/gunzip.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] gunzip.c: use block layer for writes
  2016-04-11 22:21 [U-Boot] [PATCH] gunzip.c: use block layer for writes Eric Nelson
  2016-04-12 16:45 ` Stephen Warren
  2016-04-20 14:40 ` Simon Glass
@ 2016-04-21 11:22 ` Tom Rini
  2 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2016-04-21 11:22 UTC (permalink / raw)
  To: u-boot

On Mon, Apr 11, 2016 at 03:21:37PM -0700, Eric Nelson wrote:

> Call blk_dwrite to ensure that the block cache is notified
> if enabled and remove build breakage when CONFIG_BLK is enabled.
> 
> Signed-off-by: Eric Nelson <eric@nelint.com>
> Reviewed-by: Stephen Warren <swarren@nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160421/153f3eed/attachment.sig>

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

end of thread, other threads:[~2016-04-21 11:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 22:21 [U-Boot] [PATCH] gunzip.c: use block layer for writes Eric Nelson
2016-04-12 16:45 ` Stephen Warren
2016-04-12 17:18   ` Eric Nelson
2016-04-12 17:21     ` Tom Rini
2016-04-12 17:32       ` Stephen Warren
2016-04-20 14:40 ` Simon Glass
2016-04-21 11:22 ` [U-Boot] " Tom Rini

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