Commit 9f7dea8
serial: sh-sci: Do not probe the serial port if its slot in sci_ports[] is in use
In the sh-sci driver, sci_ports[0] is used by earlycon. If the earlycon is
still active when sci_probe() is called and the new serial port is supposed
to map to sci_ports[0], return -EBUSY to prevent breaking the earlycon.
This situation should occurs in debug scenarios, and users should be
aware of the potential conflict.
Fixes: 0b0cced ("serial: sh-sci: Add CONFIG_SERIAL_EARLYCON support")
Cc: [email protected]
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 239f112 commit 9f7dea8
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
3438 | 3439 | | |
3439 | 3440 | | |
3440 | 3441 | | |
| 3442 | + | |
3441 | 3443 | | |
3442 | 3444 | | |
3443 | 3445 | | |
| |||
3467 | 3469 | | |
3468 | 3470 | | |
3469 | 3471 | | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
3470 | 3492 | | |
3471 | 3493 | | |
3472 | 3494 | | |
| |||
3563 | 3585 | | |
3564 | 3586 | | |
3565 | 3587 | | |
| 3588 | + | |
3566 | 3589 | | |
3567 | 3590 | | |
3568 | 3591 | | |
| |||
0 commit comments