Re: [PATCH 1/4] drm/gma500: Remove in_atomic() usage.

2021-02-09 Thread Daniel Vetter
On Tue, Feb 09, 2021 at 12:31:16AM +0100, Sebastian Andrzej Siewior wrote: > The driver is using msleep() if it is safe to use based on in_atomic(). > This is not needed this macro is only used from > i2c_algorithm::master_xfer() which is always invoked from preemptible > context. > > Remove in_at

[PATCH 1/4] drm/gma500: Remove in_atomic() usage.

2021-02-08 Thread Sebastian Andrzej Siewior
The driver is using msleep() if it is safe to use based on in_atomic(). This is not needed this macro is only used from i2c_algorithm::master_xfer() which is always invoked from preemptible context. Remove in_atomic() because it is superfluous. Remove wait_for_atomic() because it has no users. Si