Re: [PATCH] drm/imx/dcss: fix resource size calculation

2024-02-28 Thread Laurentiu Palcu
Hi Dan, On Tue, Feb 13, 2024 at 09:05:01PM +0300, Dan Carpenter wrote: > The resource is inclusive of the ->start and ->end addresses so this > calculation is not correct. It should be "res->end - res->start + 1". > Use the resource_size() to do the calculation. > > Fixes: 90393c9b5408 ("drm/imx

[PATCH] drm/imx/dcss: fix resource size calculation

2024-02-13 Thread Dan Carpenter
The resource is inclusive of the ->start and ->end addresses so this calculation is not correct. It should be "res->end - res->start + 1". Use the resource_size() to do the calculation. Fixes: 90393c9b5408 ("drm/imx/dcss: request memory region") Signed-off-by: Dan Carpenter --- >From static anal