i2c: designware_i2c: Correct the selection of speed mode
authorSimon Glass <sjg@chromium.org>
Thu, 13 Feb 2020 20:24:55 +0000 (13:24 -0700)
committerHeiko Schocher <hs@denx.de>
Tue, 18 Feb 2020 07:16:45 +0000 (08:16 +0100)
commit64d44c4e9f4fe048aca69db7b6a208ab9e55f9b2
treeab51d2e21217e4a56847d09e186796815f05a943
parentf2a73d6867ef973fbb8471cc87058205999b5e5c
i2c: designware_i2c: Correct the selection of speed mode

Unfortunately a recent change adjusted the order of the checks here such
that 400MHz now shows up as fast-plus speed (1Mbps). Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: d96440d1e3 ("i2c: designware_i2c: Add support for fast-plus speed")
drivers/i2c/designware_i2c.c