Re: [PATCH v2 3/3] usb: dwc2: Make dwc2_readl/writel functions endianness-agnostic.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Gevorg Sahakyan <Gevorg.Sahakyan@xxxxxxxxxxxx> 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 :(

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux