Commit bfddd34
spi: fsl-dspi: Avoid using -EINPROGRESS error code
Refactor dspi_rxtx() and dspi_poll() to not return -EINPROGRESS because
this isn't actually a status that is ever returned to the core layer but
some internal state. Use true/false return value on dspi_rxtx() for this
instead.
This will help separate internal vs external status for the later change
to store the external status directly in cur_msg->status.
No functional changes intended.
Co-developed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-ID: <20250902-james-nxp-spi-dma-v6-1-f7aa2c5e56e2@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 431f6c8 commit bfddd34
1 file changed
Lines changed: 24 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
989 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
990 | 996 | | |
991 | 997 | | |
992 | 998 | | |
993 | 999 | | |
994 | 1000 | | |
995 | | - | |
| 1001 | + | |
996 | 1002 | | |
997 | 1003 | | |
998 | 1004 | | |
999 | | - | |
| 1005 | + | |
1000 | 1006 | | |
1001 | 1007 | | |
1002 | 1008 | | |
1003 | 1009 | | |
1004 | | - | |
| 1010 | + | |
| 1011 | + | |
1005 | 1012 | | |
1006 | 1013 | | |
1007 | 1014 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1012 | 1023 | | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
| 1024 | + | |
| 1025 | + | |
1017 | 1026 | | |
1018 | | - | |
| 1027 | + | |
1019 | 1028 | | |
1020 | 1029 | | |
1021 | 1030 | | |
| |||
1029 | 1038 | | |
1030 | 1039 | | |
1031 | 1040 | | |
1032 | | - | |
| 1041 | + | |
1033 | 1042 | | |
1034 | 1043 | | |
1035 | 1044 | | |
| |||
1137 | 1146 | | |
1138 | 1147 | | |
1139 | 1148 | | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
| 1149 | + | |
1143 | 1150 | | |
1144 | 1151 | | |
1145 | 1152 | | |
| |||
0 commit comments