fsi: core: Fix legacy minor numbering
authorEddie James <eajames@us.ibm.com>
Mon, 12 Jun 2023 19:56:52 +0000 (14:56 -0500)
committerJoel Stanley <joel@jms.id.au>
Wed, 9 Aug 2023 06:13:28 +0000 (15:43 +0930)
commit641511bfcc5e016e259131c53ae041ad3732b342
tree976e222b60653d947317df2b6609bb9235e7595c
parent02c8fec05bc74d3f50b23c20a54cb6cba3326eef
fsi: core: Fix legacy minor numbering

The legacy minor numbering shifts the chip id too much,
resulting in ids that overlap with regular ids. Since there
are only 2 bits for 4 types, only shift the chip id by 2
to fit the legacy ids in their reserved space.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230612195657.245125-10-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-core.c