summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Bus/Pci/Uhci
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-19 08:06:15 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-19 08:06:15 +0000
commit61fb1657e5b2b37a2ec5c879f6fa7689100f0d54 (patch)
treead1debff869454be6fdf84bc7528597931b57dcc /EdkModulePkg/Bus/Pci/Uhci
parent8b018de64f54b67f437c95bf0ed591b03a6cc63b (diff)
downloadedk2-61fb1657e5b2b37a2ec5c879f6fa7689100f0d54.zip
edk2-61fb1657e5b2b37a2ec5c879f6fa7689100f0d54.tar.gz
edk2-61fb1657e5b2b37a2ec5c879f6fa7689100f0d54.tar.bz2
Fix component name bugs when input Controller Name is invalid
Fix the driver binding version for platform/OEM specific drivers git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2274 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Bus/Pci/Uhci')
-rw-r--r--EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c11
-rw-r--r--EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c b/EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c
index 71d9339..909912f 100644
--- a/EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c
+++ b/EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c
@@ -162,6 +162,17 @@ UhciComponentNameGetControllerName (
return EFI_UNSUPPORTED;
}
//
+ // Make sure this driver is currently managing ControllerHandle
+ //
+ Status = EfiTestManagedDevice (
+ ControllerHandle,
+ gUhciDriverBinding.DriverBindingHandle,
+ &gEfiPciIoProtocolGuid
+ );
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+ //
// Get the device context
//
Status = gBS->OpenProtocol (
diff --git a/EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c b/EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c
index 14f8bf2..96c5be4 100644
--- a/EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c
+++ b/EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c
@@ -364,7 +364,7 @@ EFI_DRIVER_BINDING_PROTOCOL gUhciDriverBinding = {
UHCIDriverBindingSupported,
UHCIDriverBindingStart,
UHCIDriverBindingStop,
- 0x10,
+ 0xa,
NULL,
NULL
};