2
0

870-hifn795x_byteswap.patch 539 B

1234567891011121314151617
  1. --- a/drivers/crypto/hifn_795x.c
  2. +++ b/drivers/crypto/hifn_795x.c
  3. @@ -682,12 +682,12 @@ static inline u32 hifn_read_1(struct hif
  4. static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val)
  5. {
  6. - writel((__force u32)cpu_to_le32(val), dev->bar[0] + reg);
  7. + writel(val, dev->bar[0] + reg);
  8. }
  9. static inline void hifn_write_1(struct hifn_device *dev, u32 reg, u32 val)
  10. {
  11. - writel((__force u32)cpu_to_le32(val), dev->bar[1] + reg);
  12. + writel(val, dev->bar[1] + reg);
  13. }
  14. static void hifn_wait_puc(struct hifn_device *dev)