Re: [RFC 13/13] scsi: megaraid: Make use of dev_64bit_mmio_supported()

2021-02-26 Thread Arnd Bergmann
On Fri, Feb 26, 2021 at 3:30 PM Arnd Bergmann wrote: > > On Fri, Feb 26, 2021 at 3:03 PM Nicolas Saenz Julienne > wrote: > > > unsigned long flags; > > - spin_lock_irqsave(>hba_lock, flags); > > - writel(le32_to_cpu(req_desc->u.low), > > -

Re: [RFC 13/13] scsi: megaraid: Make use of dev_64bit_mmio_supported()

2021-02-26 Thread Arnd Bergmann
On Fri, Feb 26, 2021 at 3:03 PM Nicolas Saenz Julienne wrote: > unsigned long flags; > - spin_lock_irqsave(>hba_lock, flags); > - writel(le32_to_cpu(req_desc->u.low), > - >reg_set->inbound_low_queue_port); > - writel(le32_to_cpu(req_desc->u.high), > -

[RFC 13/13] scsi: megaraid: Make use of dev_64bit_mmio_supported()

2021-02-26 Thread Nicolas Saenz Julienne
Instead of relying on defines use dev_64bit_mmio_supported(), which provides the same functionality. On top of that convert the implementation to lo_hi_writeq(), for a cleaner end result. Signed-off-by: Nicolas Saenz Julienne --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 23