public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Oberritter <obi@saftware.de>
To: Gary Thomas <gary@mlbassoc.com>
Cc: ecos-patches@sources.redhat.com
Subject: Re: [PATCH 0/3] misc fixes for eCos 3.0
Date: Mon, 22 Feb 2010 12:51:00 -0000	[thread overview]
Message-ID: <4B827DCF.50702@saftware.de> (raw)
In-Reply-To: <4B82707E.2090701@mlbassoc.com>

Gary Thomas wrote:
> Not much use without some explanation of what they do.
> Accepted practice is to explain each change, so it can be
> properly understood and discussed.

I thought that the reason for these changes were pretty obvious. I'll
try to explain them now, though:

[PATCH 1/3] usbs_at91: call vendor_control_fn on USB_DEVREQ_TYPE_VENDOR:

For each type of USB control requests (USB_DEVREQ_TYPE_XXX), there is
a callback function called xxx_control_fn(). For vendor requests, the
wrong function was called. It looks like a copy and paste bug. The
function class_control_fn() should only be called for
USB_DEVREQ_TYPE_CLASS.

[PATCH 2/3] usbseth: compile fix: move misplaced #endif:

Compilation aborted, because HAL_DCACHE_LINE_SIZE was not defined. A
look at the code revealed, that the following code does not make sense:

#ifndef XXX
x = expr;
#else
#endif
x = expr using XXX;

[PATCH 3/3] tcpip: compile fix: remove unneeded cast to long in
TCPT_RANGESET:

Compilation aborted using the toolchain supplied by the eCos installer
(gcc 4.3.2), because of an invalid cast:

error: "lvalue required as left operand of assignment"

Therefore, TCPT_RANGESET was adjusted in two places to match the usage
pattern of other users of this macro, which simply omit the cast.

Regards,
Andreas

      reply	other threads:[~2010-02-22 12:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-21 17:10 Andreas Oberritter
2010-02-21 17:10 ` [PATCH 1/3] usbs_at91: call vendor_control_fn on USB_DEVREQ_TYPE_VENDOR Andreas Oberritter
2010-02-21 17:10   ` [PATCH 2/3] usbseth: compile fix: move misplaced #endif Andreas Oberritter
2010-02-21 17:10     ` [PATCH 3/3] tcpip: compile fix: remove unneeded cast to long in TCPT_RANGESET Andreas Oberritter
2010-02-22 11:54 ` [PATCH 0/3] misc fixes for eCos 3.0 Gary Thomas
2010-02-22 12:51   ` Andreas Oberritter [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=4B827DCF.50702@saftware.de \
    --to=obi@saftware.de \
    --cc=ecos-patches@sources.redhat.com \
    --cc=gary@mlbassoc.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).