From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: gem: Enable CTRL+C in wait_for_bit
Date: Tue, 1 Dec 2015 11:35:12 +0100 [thread overview]
Message-ID: <565D77E0.4010607@xilinx.com> (raw)
In-Reply-To: <CANr=Z=ZpTe+ZdLGTZnkc+pBZh2btbeFM2ezT12A1ba2F3o1Z4g@mail.gmail.com>
On 30.11.2015 21:36, Joe Hershberger wrote:
> Hi Michal,
>
> On Thu, Nov 26, 2015 at 3:46 AM, Michal Simek <michal.simek@xilinx.com> wrote:
>> Enable to break waiting loop at any time.
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>> drivers/net/zynq_gem.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
>> index 858093f0d7e2..ee4169107e5b 100644
>> --- a/drivers/net/zynq_gem.c
>> +++ b/drivers/net/zynq_gem.c
>> @@ -447,6 +447,11 @@ static int wait_for_bit(const char *func, u32 *reg, const u32 mask,
>> if (get_timer(start) > timeout)
>> break;
>>
>> + if (ctrlc()) {
>> + puts("Abort\n");
>> + return -1;
>
> Maybe this should return -EINTR?
No problem with this.
Thanks,
Michal
prev parent reply other threads:[~2015-12-01 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 9:46 [U-Boot] [PATCH] net: gem: Enable CTRL+C in wait_for_bit Michal Simek
2015-11-30 20:36 ` Joe Hershberger
2015-12-01 10:35 ` Michal Simek [this message]
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=565D77E0.4010607@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=u-boot@lists.denx.de \
/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