mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Robert Karszniewicz <r.karszniewicz@phytec.de>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] usb: storage: Increase retries for usb_stor_transport()
Date: Mon, 4 Nov 2019 15:52:37 +0100	[thread overview]
Message-ID: <0ed26947-c690-72a9-2e24-8d00f444cab6@phytec.de> (raw)
In-Reply-To: <20191104094250.wn2ib2fs7hspacou@pengutronix.de>

On 11/4/19 10:42 AM, Sascha Hauer wrote:
> On Fri, Oct 25, 2019 at 05:56:08PM +0200, Robert Karszniewicz wrote:
>> This should make writing and reading more reliable.
>>
>> Also:
>> - change loop condition to make "retries" semantically correct
>> - add a debug message in case of fatal failure
>> ---
>> We've had problems writing (and even reading) a 10 MiB file from barebox
>> to multiple USB flash drives.
>> The 10 MiB file copy failed with "write: I/O error" almost every time.
>> Increasing the retry count made 100 MiB file copies succeed every time.
>>
> 
> Doing this doesn't hurt, so I applied this patch. I wonder though if
> there's something else wrong which makes increasing the retry counts
> necessary.
> 
> Sascha
> 
> 

Thanks, yes, so I thought, too; it doesn't hurt, so I sent it in.

 From when I looked at the problem, it seemed to me that the whole USB 
flash drives thing is fickle. I glanced at the USB storage drivers of 
Linux and saw that they have a bunch of workarounds and per-device 
quirks. So Linux' drivers simply seem more mature and tolerant than 
those in barebox.

Robert

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-11-04 14:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 15:56 Robert Karszniewicz
2019-10-25 16:07 ` [PATCH] test: " Robert Karszniewicz
2019-11-04  9:42 ` [PATCH] " Sascha Hauer
2019-11-04 14:52   ` Robert Karszniewicz [this message]
2019-11-04 14:54   ` Marco Felsch
2019-11-04 14:59     ` Robert Karszniewicz
2019-11-04 15:21       ` Marco Felsch
2019-11-04 15:28         ` Robert Karszniewicz
2019-11-04 15:04     ` [PATCH v2] " Robert Karszniewicz

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=0ed26947-c690-72a9-2e24-8d00f444cab6@phytec.de \
    --to=r.karszniewicz@phytec.de \
    --cc=barebox@lists.infradead.org \
    /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