Maxime Ripard
8450b1cd7c
i2c: brcmstb: Fix brcmstd_send_i2c_cmd condition
...
[ Upstream commit a1858ce0cfe31368b23ba55794e409fb57ced4a4 ]
The brcmstb_send_i2c_cmd currently has a condition that is (CMD_RD ||
CMD_WR) which always evaluates to true, while the obvious fix is to test
whether the cmd variable passed as parameter holds one of these two
values.
Fixes: dd1aa2524bc5 ("i2c: brcmstb: Add Broadcom settop SoC i2c controller driver")
Reported-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 10:26:39 +01:00
..
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:16 +02:00
2020-06-07 13:18:50 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:10 +02:00
2020-05-06 08:15:08 +02:00
2019-03-25 15:21:17 +01:00
2019-03-25 15:21:17 +01:00
2020-10-01 13:18:14 +02:00
2019-08-01 22:24:16 +02:00
2019-08-01 22:24:16 +02:00
2019-03-24 22:41:51 +01:00
2019-03-27 14:09:53 +01:00
2019-05-30 11:26:37 -07:00
2019-08-29 21:07:30 +02:00
2020-01-17 19:48:17 +01:00
2021-03-04 10:26:27 +01:00
2016-10-07 14:12:21 -07:00
2021-03-04 10:26:39 +01:00
2020-08-05 09:59:50 +02:00
2019-02-08 22:18:51 +01:00
2019-09-04 23:11:26 +02:00
2020-10-07 08:01:29 +02:00
2019-09-02 11:33:42 +01:00
2019-05-30 11:26:37 -07:00
2018-10-30 09:15:31 -07:00
2019-03-20 17:57:18 +01:00
2019-03-20 17:57:18 +01:00
2019-08-06 22:23:24 +02:00
2020-03-18 07:17:53 +01:00
2020-04-21 09:05:02 +02:00
2019-08-29 20:47:42 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:37:10 +02:00
2019-06-19 17:09:55 +02:00
2020-07-22 09:32:53 +02:00
2019-05-30 11:26:37 -07:00
2019-08-14 14:49:43 +02:00
2019-09-04 23:13:16 +02:00
2020-06-30 15:37:02 -04:00
2020-03-18 07:17:56 +01:00
2018-08-24 14:49:36 +02:00
2020-04-01 11:01:56 +02:00
2019-05-30 11:26:37 -07:00
2021-01-17 14:05:36 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-06-24 17:50:41 +02:00
2019-06-19 17:09:55 +02:00
2019-08-01 14:49:52 +02:00
2020-12-11 13:23:31 +01:00
2020-01-23 08:22:47 +01:00
2019-07-15 21:10:39 -07:00
2019-05-30 11:26:41 -07:00
2019-08-01 14:48:55 +02:00
2020-03-05 16:43:45 +01:00
2019-06-05 17:36:38 +02:00
2019-05-30 11:26:32 -07:00
2020-10-14 10:33:01 +02:00
2020-07-09 09:37:54 +02:00
2018-01-15 19:19:55 +01:00
2021-02-13 13:52:56 +01:00
2019-07-06 17:04:32 +02:00
2018-03-17 21:20:04 +01:00
2020-09-23 12:40:43 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2020-04-01 11:02:10 +02:00
2019-08-29 22:12:19 +02:00
2021-01-27 11:47:47 +01:00
2018-03-02 11:11:15 +01:00
2017-08-29 22:26:08 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:39:01 +02:00
2020-10-14 10:33:01 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2020-04-17 10:49:59 +02:00
2020-06-24 17:50:08 +02:00
2018-08-04 23:25:06 +02:00
2018-05-17 16:27:59 +02:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:10 +02:00
2020-06-24 17:50:24 +02:00
2021-03-04 10:26:32 +01:00
2020-12-11 13:23:33 +01:00
2020-09-03 11:26:55 +02:00
2019-09-28 20:44:12 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:10 +02:00
2019-08-01 22:24:16 +02:00
2019-06-05 17:37:10 +02:00
2016-08-22 08:19:55 +02:00
2020-11-18 19:20:25 +01:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:07 +02:00
2019-05-21 11:28:40 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-01-17 14:05:35 +01:00
2020-04-17 10:49:59 +02:00
2020-01-26 10:01:06 +01:00
2019-08-14 14:56:54 +02:00
2018-02-27 13:51:05 +01:00
2021-02-17 10:35:18 +01:00
2019-05-30 11:29:22 -07:00
2017-08-14 21:40:21 +02:00
2019-09-03 20:17:27 +02:00
2019-09-24 16:48:02 -07:00
2021-01-27 11:47:39 +01:00
2020-10-01 13:17:59 +02:00
2017-11-02 00:01:31 +01:00
2019-06-05 17:37:10 +02:00
2019-09-05 22:34:37 +02:00
2019-09-05 22:34:37 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-24 17:36:47 +02:00
2019-05-21 11:28:45 +02:00
2019-06-08 00:24:07 +02:00
2018-08-09 17:41:13 +02:00
2018-08-04 23:25:08 +02:00
2019-06-19 17:09:55 +02:00
2020-10-29 09:57:53 +01:00
2019-08-29 21:04:11 +02:00
2019-05-30 11:26:37 -07:00