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

2024-10-02 Thread neil . armstrong
On 01/10/2024 17:47, Marek Vasut wrote: On 10/1/24 5:32 PM, Neil Armstrong wrote: On 01/10/2024 17:21, Marek Vasut wrote: On 7/24/24 5:48 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 al

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

2024-10-01 Thread Marek Vasut
On 10/1/24 5:32 PM, Neil Armstrong wrote: On 01/10/2024 17:21, Marek Vasut wrote: On 7/24/24 5:48 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 v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-01 Thread Neil Armstrong
On 01/10/2024 17:21, Marek Vasut wrote: On 7/24/24 5:48 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 v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-01 Thread Marek Vasut
On 7/24/24 5:48 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 v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-07-24 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