Commit 4d0c8d0
mmc: core: Use mrq.sbc in close-ended ffu
Field Firmware Update (ffu) may use close-ended or open ended sequence.
Each such sequence is comprised of a write commands enclosed between 2
switch commands - to and from ffu mode. So for the close-ended case, it
will be: cmd6->cmd23-cmd25-cmd6.
Some host controllers however, get confused when multi-block rw is sent
without sbc, and may generate auto-cmd12 which breaks the ffu sequence.
I encountered this issue while testing fwupd (github.com/fwupd/fwupd)
on HP Chromebook x2, a qualcomm based QC-7c, code name - strongbad.
Instead of a quirk, or hooking the request function of the msm ops,
it would be better to fix the ioctl handling and make it use mrq.sbc
instead of issuing SET_BLOCK_COUNT separately.
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231129092535.3278-1-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent 5cb2f92 commit 4d0c8d0
1 file changed
+43
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
| |||
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
468 | | - | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
| 482 | + | |
| 483 | + | |
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
482 | 494 | | |
483 | 495 | | |
484 | 496 | | |
| |||
532 | 544 | | |
533 | 545 | | |
534 | 546 | | |
535 | | - | |
| 547 | + | |
536 | 548 | | |
537 | 549 | | |
538 | 550 | | |
539 | 551 | | |
540 | 552 | | |
541 | 553 | | |
542 | 554 | | |
| 555 | + | |
| 556 | + | |
543 | 557 | | |
544 | 558 | | |
545 | 559 | | |
| |||
557 | 571 | | |
558 | 572 | | |
559 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
560 | 583 | | |
561 | 584 | | |
562 | 585 | | |
| |||
1032 | 1055 | | |
1033 | 1056 | | |
1034 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1035 | 1072 | | |
1036 | 1073 | | |
1037 | 1074 | | |
| |||
1059 | 1096 | | |
1060 | 1097 | | |
1061 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1062 | 1102 | | |
1063 | 1103 | | |
1064 | 1104 | | |
1065 | 1105 | | |
1066 | | - | |
| 1106 | + | |
1067 | 1107 | | |
1068 | 1108 | | |
1069 | 1109 | | |
| |||
0 commit comments