Re: [PATCH v3 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-03 Thread Marek Vasut
On 10/3/24 2:49 PM, Neil Armstrong wrote: On 02/10/2024 16:55, Marek Vasut wrote: On 10/2/24 4:39 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes ope

Re: [PATCH v3 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-03 Thread Neil Armstrong
On 02/10/2024 16:55, Marek Vasut wrote: On 10/2/24 4:39 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes operation failures Qualcomm platforms. Take i

Re: [PATCH v3 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-02 Thread Marek Vasut
On 10/2/24 4:39 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes operation failures Qualcomm platforms. Take in account the alignment and size of the b

[PATCH v3 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-02 Thread Neil Armstrong
The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes operation failures Qualcomm platforms. Take in account the alignment and size of the buffer and also flush the previous and last c