Duoming Zhou 70fae37a09 Revert "char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol"
This reverts commit be826ada52f1fcabed5b5217c94609ebf5967211.

The function monitor_card() is a timer handler that runs in an
atomic context, but it calls usleep_range() that can sleep.
As a result, the sleep-in-atomic-context bugs will happen.
The process is shown below:

    (atomic context)
monitor_card()
  set_protocol()
    usleep_range() //sleep

The origin commit c1986ee9bea3 ("[PATCH] New Omnikey Cardman
4000 driver") works fine.

Fixes: be826ada52f1 ("char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol")
Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
Link: https://lore.kernel.org/r/20230118141000.5580-1-duoming@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-19 17:22:38 +01:00
..
2022-12-13 15:22:14 -08:00
2023-01-14 07:38:48 +09:00
2022-12-19 12:33:32 -06:00
2023-01-12 17:02:20 -06:00
2022-12-16 03:49:24 -08:00
2022-12-19 07:13:33 -06:00
2023-01-12 05:56:06 -06:00
2022-12-08 13:03:47 -08:00
2022-12-19 08:54:17 -06:00
2022-12-16 03:49:24 -08:00
2023-01-13 07:18:59 -06:00
2022-12-13 15:47:48 -08:00
2022-12-13 13:09:38 -08:00
2022-12-11 21:25:58 +01:00
2022-12-16 03:49:24 -08:00
2023-01-12 17:02:20 -06:00
2022-12-13 15:22:14 -08:00
2022-12-21 09:19:24 -08:00
2022-12-23 12:00:24 -08:00
2022-12-13 13:41:26 -08:00
2023-01-12 18:20:44 -06:00
2023-01-13 17:41:19 -06:00
2023-01-13 17:32:22 -06:00
2022-12-19 08:40:58 -06:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2022-12-21 09:19:24 -08:00
2023-01-06 13:12:42 -08:00
2023-01-14 07:57:25 -06:00
2022-12-19 16:07:59 -06:00
2022-12-19 08:47:33 -06:00
2022-12-14 08:58:51 -08:00
2022-12-12 10:17:08 -08:00
2023-01-12 17:02:20 -06:00
2023-01-12 17:02:20 -06:00
2022-12-16 03:54:54 -08:00
2023-01-12 17:02:20 -06:00
2022-12-16 03:49:24 -08:00
2022-12-17 08:34:01 -06:00
2023-01-12 17:02:20 -06:00