Commit b5daf93
firmware: arm_scmi: Avoid notifier registration for unsupported events
Some platforms may be configured to not support notification events from
certain sources. This scenario is already handled gracefully by avoiding
any attempt to send a notification enable request for those sources, as
such requests would inevitably fail.
However, in a more extreme case, a platform might not support even a
single source for a given event type. In this situation, allowing
notifier registration is meaningless. Attempting to register a notifier
would serve no purpose and only result in unnecessary overhead.
To address this, we now detect such conditions during the protocol
initialization. When identified, we flag the unsupported event types and
reject any subsequent notifier registration attempts for them with
-ENOTSUPP. This early rejection avoids redundant processing and
simplifies runtime logic.
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20250707144220.485365-1-cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>1 parent 9a0658d commit b5daf93
1 file changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
321 | 324 | | |
322 | 325 | | |
323 | 326 | | |
| |||
334 | 337 | | |
335 | 338 | | |
336 | 339 | | |
| 340 | + | |
337 | 341 | | |
338 | 342 | | |
339 | 343 | | |
| |||
811 | 815 | | |
812 | 816 | | |
813 | 817 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
818 | 831 | | |
819 | 832 | | |
820 | 833 | | |
| |||
936 | 949 | | |
937 | 950 | | |
938 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
939 | 957 | | |
940 | 958 | | |
941 | 959 | | |
| |||
1060 | 1078 | | |
1061 | 1079 | | |
1062 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1063 | 1084 | | |
1064 | 1085 | | |
1065 | 1086 | | |
| |||
1087 | 1108 | | |
1088 | 1109 | | |
1089 | 1110 | | |
1090 | | - | |
| 1111 | + | |
1091 | 1112 | | |
1092 | 1113 | | |
1093 | 1114 | | |
| |||
1370 | 1391 | | |
1371 | 1392 | | |
1372 | 1393 | | |
1373 | | - | |
1374 | | - | |
| 1394 | + | |
| 1395 | + | |
1375 | 1396 | | |
1376 | 1397 | | |
1377 | 1398 | | |
| |||
1416 | 1437 | | |
1417 | 1438 | | |
1418 | 1439 | | |
1419 | | - | |
1420 | | - | |
| 1440 | + | |
| 1441 | + | |
1421 | 1442 | | |
1422 | 1443 | | |
1423 | 1444 | | |
| |||
0 commit comments