linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@kernel.org>
To: Gevorg Sahakyan <Gevorg.Sahakyan@synopsys.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>Gevorg Sahakyan
	<Gevorg.Sahakyan@synopsys.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>,
	USB <linux-usb@vger.kernel.org>,
	John Youn <John.Youn@synopsys.com>
Subject: [v2,3/3] usb: dwc2: Make dwc2_readl/writel functions endianness-agnostic.
Date: Fri, 27 Jul 2018 11:19:29 +0300	[thread overview]
Message-ID: <878t5xytta.fsf@linux.intel.com> (raw)

Hi,

Gevorg Sahakyan <Gevorg.Sahakyan@synopsys.com> writes:
> @@ -1164,12 +1166,21 @@ struct dwc2_hsotg {
>  /* Normal architectures just use readl/write */
>  static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset)
>  {
> -       return readl(hsotg->regs + offset);
> +       u32 val;
> +
> +       val = readl(hsotg->regs + offset);
> +       if (hsotg->needs_byte_swap)
> +               return swab32(val);
> +       else
> +               return val;
>  }
>
>  static inline void dwc2_writel(struct dwc2_hsotg *hsotg, u32 value, u32
> offset)

patch is mangled :(

             reply	other threads:[~2018-07-27  8:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27  8:19 Felipe Balbi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-27 10:00 [v2,3/3] usb: dwc2: Make dwc2_readl/writel functions endianness-agnostic Felipe Balbi
2018-07-27  8:41 Grigor Tovmasyan
2018-07-27  8:26 Gevorg Sahakyan
2018-07-27  8:19 Gevorg Sahakyan
2018-07-27  7:05 Felipe Balbi
2018-07-26 15:29 Andy Shevchenko
2018-07-26 14:01 Gevorg Sahakyan

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=878t5xytta.fsf@linux.intel.com \
    --to=balbi@kernel.org \
    --cc=Gevorg.Sahakyan@synopsys.com \
    --cc=John.Youn@synopsys.com \
    --cc=Minas.Harutyunyan@synopsys.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).