Re: [PATCH v9 11/11] crypto: qce - Switch to using BAM DMA for crypto I/O

From: Konrad Dybcio

Date: Fri Nov 28 2025 - 07:57:23 EST


On 11/28/25 1:11 PM, Bartosz Golaszewski wrote:
> On Fri, Nov 28, 2025 at 1:08 PM Konrad Dybcio
> <konrad.dybcio@xxxxxxxxxxxxxxxx> wrote:
>>
>> On 11/28/25 12:44 PM, Bartosz Golaszewski wrote:
>>> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>>>
>>> With everything else in place, we can now switch to actually using the
>>> BAM DMA for register I/O with DMA engine locking.
>>>
>>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>>> ---
>>
>> [...]
>>
>>> @@ -25,7 +26,7 @@ static inline u32 qce_read(struct qce_device *qce, u32 offset)
>>>
>>> static inline void qce_write(struct qce_device *qce, u32 offset, u32 val)
>>> {
>>> - writel(val, qce->base + offset);
>>> + qce_write_dma(qce, offset, val);
>>> }
>>
>> qce_write() seems no longer useful now
>>
>
> I prefer to leave it like this if there are no strong objections. It
> reduces the size of the final patch and also - if for any reason in
> the future - we need to go back to supporting both DMA and CPU, we
> could handle it here.

alright

Konrad