public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] net: pcnet: Fix init on big endian 64 bit
Date: Fri, 27 May 2016 12:58:18 +0200	[thread overview]
Message-ID: <5748284A.2040402@gmail.com> (raw)
In-Reply-To: <20160526163229.7738-1-paul.burton@imgtec.com>



Am 26.05.2016 um 18:32 schrieb Paul Burton:
> If dev->iobase is 64 bits wide then writing the value of the BAR into a
> pointer to iobase will not work on big endian systems, where the BAR
> value will incorrectly get written to the upper 32 bits of the 64 bit
> variable. Fix this by reading the BAR into a u32, matching the type
> expected by pci_read_config_dword.
> 
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>
> 
> ---
> 
> Changes in v2:
> - Drop useless cast of &bar.
> 
>  drivers/net/pcnet.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

applied to u-boot-mips, thanks.

-- 
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160527/b14f4609/attachment.sig>

      reply	other threads:[~2016-05-27 10:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-26 16:32 [U-Boot] [PATCH v2] net: pcnet: Fix init on big endian 64 bit Paul Burton
2016-05-27 10:58 ` Daniel Schwierzeck [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=5748284A.2040402@gmail.com \
    --to=daniel.schwierzeck@gmail.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