Kamal Dasu
2cbd27267f
spi: bcm-qspi: check for valid cs before applying chip select
...
Apply only valid chip select value. This change fixes case where chip
select is set to initial value of '-1' during probe and PM supend and
subsequent resume can try to use the value with undefined behaviour.
Also in case where gpio based chip select, the check in
bcm_qspi_chip_select() shall prevent undefined behaviour on resume.
Fixes: fa236a7ef240 ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220127185359.27322-1-kdasu.kdev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-01-28 13:05:20 +00:00
..
2021-09-20 13:38:18 +01:00
2021-11-15 13:27:17 +00:00
2021-09-27 13:02:33 +01:00
2021-04-20 17:26:40 +01:00
2021-10-20 01:53:15 +01:00
2021-10-20 01:53:15 +01:00
2021-09-13 02:00:32 +01:00
2022-01-04 14:59:40 +00:00
2022-01-26 12:58:14 +00:00
2021-10-20 00:23:21 +01:00
2021-05-24 09:51:38 +01:00
2022-01-07 13:36:37 +00:00
2021-01-22 16:26:21 +00:00
2021-03-12 14:30:42 +00:00
2021-03-10 12:25:12 +00:00
2021-03-12 14:30:43 +00:00
2021-07-20 13:34:05 +01:00
2021-08-03 18:27:25 +01:00
2022-01-28 13:05:20 +00:00
2019-06-19 17:09:09 +02:00
2021-06-01 14:03:12 +01:00
2019-06-19 17:09:09 +02:00
2021-03-10 12:46:05 +00:00
2021-11-12 18:17:59 +00:00
2021-10-15 16:11:00 +01:00
2021-07-19 12:58:44 +01:00
2019-09-04 17:17:27 +01:00
2020-06-16 00:38:39 +01:00
2019-10-15 11:51:57 +01:00
2021-02-04 18:45:59 +00:00
2021-08-19 18:20:10 +01:00
2021-08-24 20:53:24 +01:00
2021-12-23 13:38:38 +00:00
2021-11-16 14:30:05 +00:00
2021-12-23 13:38:39 +00:00
2021-11-16 14:30:05 +00:00
2021-11-16 14:30:09 +00:00
2021-11-16 14:30:05 +00:00
2021-11-16 14:30:10 +00:00
2021-08-03 18:27:24 +01:00
2021-03-12 14:30:48 +00:00
2021-10-27 11:31:27 +01:00
2020-08-23 17:36:59 -05:00
2019-05-30 11:26:32 -07:00
2021-08-10 13:22:19 +01:00
2021-03-12 14:30:49 +00:00
2019-05-30 11:26:32 -07:00
2019-08-28 14:10:41 +01:00
2021-11-15 13:27:16 +00:00
2020-07-17 00:55:25 +01:00
2021-06-01 14:03:12 +01:00
2019-05-30 11:26:32 -07:00
2022-01-06 16:16:44 +00:00
2020-12-07 14:18:54 +00:00
2021-11-17 13:04:54 +00:00
2021-04-12 17:07:38 +01:00
2020-11-02 15:53:25 +00:00
2021-09-01 15:25:28 -07:00
2021-09-13 02:00:26 +01:00
2019-05-30 11:26:41 -07:00
2021-03-24 19:51:09 +00:00
2020-09-17 19:56:02 +01:00
2021-05-20 18:00:34 +01:00
2021-05-10 13:07:53 +01:00
2019-09-04 17:18:35 +01:00
2021-06-14 15:05:00 +01:00
2022-01-26 13:32:36 +00:00
2022-01-07 13:36:38 +00:00
2021-05-20 18:00:37 +01:00
2021-05-20 18:00:36 +01:00
2021-05-20 18:00:35 +01:00
2021-10-01 19:34:56 +01:00
2020-12-07 14:18:59 +00:00
2021-09-20 13:38:18 +01:00
2021-10-14 13:32:19 +01:00
2021-08-12 12:19:19 +01:00
2020-11-18 18:00:26 +00:00
2020-12-07 14:19:00 +00:00
2021-05-11 15:42:48 +01:00
2021-10-02 01:31:49 +01:00
2021-05-11 15:42:49 +01:00
2021-06-01 18:33:33 +01:00
2021-05-20 17:58:33 +01:00
2021-06-01 18:33:33 +01:00
2021-10-15 16:10:59 +01:00
2019-09-04 17:20:52 +01:00
2021-08-10 13:22:20 +01:00
2021-10-26 11:53:57 +01:00
2021-05-20 18:00:40 +01:00
2021-05-18 14:05:35 +01:00
2021-05-21 13:13:42 +01:00
2021-12-23 13:38:40 +00:00
2021-11-29 12:19:59 +00:00
2021-03-16 10:14:11 +05:30
2021-04-09 13:44:03 +01:00
2020-12-07 14:18:55 +00:00
2021-02-04 18:45:57 +00:00
2021-08-23 16:41:08 +01:00
2021-09-03 13:31:49 +01:00
2021-10-26 20:04:00 +01:00
2021-11-18 13:57:55 +00:00
2020-08-19 21:40:14 +02:00
2020-10-24 10:33:08 -07:00
2021-04-15 16:07:58 +01:00
2021-05-21 13:13:33 +01:00
2019-10-15 11:51:57 +01:00
2021-09-17 13:17:50 +01:00
2019-06-19 17:09:55 +02:00
2021-03-12 14:30:45 +00:00
2019-11-04 13:26:11 +00:00
2021-03-23 17:19:45 +00:00
2021-08-26 12:09:38 +01:00
2021-05-12 13:01:43 +01:00
2020-11-12 15:16:35 +00:00
2022-01-19 16:47:41 +00:00
2022-01-19 16:47:43 +00:00
2020-07-27 14:55:21 +01:00
2021-06-23 11:48:36 +01:00
2021-02-03 16:23:07 +00:00
2021-03-12 14:30:46 +00:00
2021-11-01 19:09:04 -07:00
2021-08-05 16:42:54 +01:00
2021-11-26 13:24:39 +00:00
2019-05-30 11:26:37 -07:00
2021-03-10 12:25:09 +00:00
2021-10-15 16:11:01 +01:00
2021-05-10 13:17:16 +01:00
2022-01-26 15:52:05 +00:00
2019-10-15 11:51:57 +01:00
2020-09-17 19:56:01 +01:00
2021-11-15 13:27:17 +00:00
2019-10-01 12:35:18 +01:00
2021-08-26 13:42:44 +01:00
2021-04-16 13:44:15 +01:00
2022-01-07 17:14:30 +00:00
2021-11-24 12:57:40 +00:00