enigma2: add patch to fix friendly usb port name resolving
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.3.0r21 / 0001-Harddisk.py-fixed-dm520-dm900-friendly-usb-port-name.patch
1 From 01849973ee945b9b51db18a7cc0e46a0bfa296a9 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Sun, 13 Nov 2016 17:41:44 +0100
4 Subject: [PATCH] Harddisk.py: fixed dm520/dm900 friendly usb port name
5  resolving
6
7 ---
8  usr/lib/enigma2/python/Components/Harddisk.py | 16 ++++++++--------
9  1 file changed, 8 insertions(+), 8 deletions(-)
10
11 diff --git a/usr/lib/enigma2/python/Components/Harddisk.py b/usr/lib/enigma2/python/Components/Harddisk.py
12 index 46a24e0..4172cf6 100644
13 --- a/usr/lib/enigma2/python/Components/Harddisk.py
14 +++ b/usr/lib/enigma2/python/Components/Harddisk.py
15 @@ -662,21 +662,21 @@ DEVICEDB = \
16         "dm520":
17         {
18                 "/devices/platform/ehci-brcm.0/usb1/1-2/": _("Back, outer USB"),
19 -               "/devices/platform/ohci-brcm.0/usb1/1-2/": _("Back, outer USB"),
20 +               "/devices/platform/ohci-brcm.0/usb2/2-2/": _("Back, outer USB"),
21                 "/devices/platform/ehci-brcm.0/usb1/1-1/": _("Back, inner USB"),
22 -               "/devices/platform/ohci-brcm.0/usb1/1-1/": _("Back, inner USB"),
23 +               "/devices/platform/ohci-brcm.0/usb2/2-1/": _("Back, inner USB"),
24         },
25         "dm900":
26         {
27                 "/devices/platform/brcmstb-ahci.0/ata1/": _("SATA"),
28                 "/devices/rdb.4/f03e0000.sdhci/mmc_host/mmc0/": _("eMMC"),
29                 "/devices/rdb.4/f03e0200.sdhci/mmc_host/mmc1/": _("SD"),
30 -               "/devices/rdb.4/f0470300.ohci_v2/usb3/": _("Front USB"),
31 -               "/devices/rdb.4/f0470300.ehci_v2/usb3/": _("Front USB"),
32 -               "/devices/rdb.4/f0470300.xhci_v2/usb3/": _("Front USB"),
33 -               "/devices/rdb.4/f0470300.ohci_v2/usb4/": _("Back USB"),
34 -               "/devices/rdb.4/f0470300.ehci_v2/usb4/": _("Back USB"),
35 -               "/devices/rdb.4/f0470300.xhci_v2/usb4/": _("Back USB"),
36 +               "/devices/rdb.4/f0470600.ohci_v2/usb6/6-0:1.0/port1/": _("Front USB"),
37 +               "/devices/rdb.4/f0470300.ehci_v2/usb3/3-0:1.0/port1/": _("Front USB"),
38 +               "/devices/rdb.4/f0471000.xhci_v2/usb2/2-0:1.0/port1/": _("Front USB"),
39 +               "/devices/rdb.4/f0470400.ohci_v2/usb5/5-0:1.0/port1/": _("Back USB"),
40 +               "/devices/rdb.4/f0470500.ehci_v2/usb4/4-0:1.0/port1/": _("Back USB"),
41 +               "/devices/rdb.4/f0471000.xhci_v2/usb2/2-0:1.0/port2/": _("Back USB"),
42         },
43         "dm800se":
44         {
45 -- 
46 2.1.4
47