From: Chen Changcheng <
chencha...@kylinos.cn>
[ Upstream commit 955a48a5353f4fe009704a9a4272a3adf627cd35 ]
Link:
https://patch.msgid.link/20251121064020.293...@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <
gre...@linuxfoundation.org>
Signed-off-by: Sasha Levin <
sas...@kernel.org>
---
LLM Generated explanations, may be completely bogus:
## Summary
**What the commit does:**
This commit fixes a device conflict where the EL-R12 optical drive (HL-
DT-ST DVD+-RW GT80N) with firmware revision 3.10 incorrectly receives
USB quirks intended for the INIC-3069 controller because they share the
same VID:PID (0x13fd:0x3940). The fix narrows the firmware revision
range from "all revisions" (0x0000-0x9999) to only revision 3.09
(0x0309-0x0309).
**History context:**
- Original quirk added in 2015 (commit bda13e35d584d) - was marked `Cc:
sta...@vger.kernel.org # 3.16`
- IGNORE_RESIDUE added in 2017 (commit 89f23d51defcb) - also marked for
stable
- The quirk entry has existed in stable trees for years
## Meets Stable Criteria Assessment
| Criterion | Assessment |
|-----------|------------|
| Obviously correct | ✅ Yes - simple revision range narrowing |
| Fixes real bug | ✅ Yes - disc erase operations fail completely |
| Small and contained | ✅ Yes - 1 line change |
| No new features | ✅ Yes - just fixes quirk scope |
| Important issue | ✅ Yes - device operations completely fail |
## Risk vs Benefit
**Benefits:**
- Fixes real functional failure (disc erase operations)
- Users with EL-R12 optical drives can use them properly
- Minimal change, low regression risk
**Risks:**
- Could theoretically affect INIC-3069 devices with firmware versions
other than 3.09 if they exist and need these quirks
- However, the original report was from a specific device/tester, and no
evidence suggests other firmware versions need the quirks
**Mitigating factors:**
- The quirk was originally based on a single reporter's device (Benjamin
Tissoires)
- If multiple firmware versions needed quirks, we'd likely have seen
additional reports over the ~10 years since the original quirk was
added
- The commit author thoroughly tested the EL-R12 without the quirks
## Concerns
1. **No explicit Cc: stable tag** - The maintainer didn't explicitly
request stable backport
2. **No Fixes: tag** - No specific commit is pointed to as introducing
the bug
3. **Revision specificity** - We don't have absolute confirmation that
0x0309 was the original reporter's exact firmware revision
## Conclusion
This is a standard USB quirk adjustment that fixes a real user-facing
bug (optical drive operations failing). USB device quirks are routinely
backported to stable. The change is minimal (single line), surgical, and
addresses documented hardware compatibility issues. The risk of
regression is low since the original quirk was based on a single
reporter's device, and narrowing the scope shouldn't affect other users.
While the lack of a Cc: stable tag is notable, USB quirk fixes of this
nature are commonly backported because they enable proper hardware
operation. The fix allows the EL-R12 optical drive to work correctly
without impacting the original INIC-3069 devices that need the quirks.
**YES**
drivers/usb/storage/unusual_uas.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h
index 1477e31d77632..b695f5ba9a409 100644
--- a/drivers/usb/storage/unusual_uas.h
+++ b/drivers/usb/storage/unusual_uas.h
@@ -98,7 +98,7 @@ UNUSUAL_DEV(0x125f, 0xa94a, 0x0160, 0x0160,
US_FL_NO_ATA_1X),
/* Reported-by: Benjamin Tissoires <
benjamin....@redhat.com> */
-UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999,
+UNUSUAL_DEV(0x13fd, 0x3940, 0x0309, 0x0309,
"Initio Corporation",
"INIC-3069",
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
--
2.51.0