From 22f041e18df06f19d2df0d5ccc824424ffe003f9 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 8 Nov 2016 16:39:12 +0100 Subject: [PATCH] Extend StandardEject sequence to include LUN 1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this is for eject handling of dongles based on Mediatek's cellular baseband processors which has a TF/SD card reader on LUN 0 of the USB storage interface and the virtual cd-rom (which we want to eject) on LUN 1. The previous StandardEject sequence did only work for LUN 0, the new sequence will work for both LUN's. Signed-off-by: Benjamin Berg Signed-off-by: René van Weert Reviewed-by: Lars Melin --- switch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/switch.c b/switch.c index b283561..587a2af 100644 --- a/switch.c +++ b/switch.c @@ -161,6 +161,12 @@ static void handle_standardeject(struct usbdev_data *data, struct blob_attr **tb }, { "\x55\x53\x42\x43\x12\x34\x56\x79\x00\x00\x00\x00\x00\x00\x06\x1b" "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 31 + }, { + "\x55\x53\x42\x43\x12\x34\x56\x78\x00\x00\x00\x00\x00\x01\x06\x1e" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 31 + }, { + "\x55\x53\x42\x43\x12\x34\x56\x79\x00\x00\x00\x00\x00\x01\x06\x1b" + "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 31 } }; -- 2.25.1