summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Isa
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-16 03:05:46 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-16 03:05:46 +0000
commit9be29006683dd5fa6c02059691735715d28070c7 (patch)
tree0e49d52b592e181c7876b26b4f2adbda3a0c8b2a /IntelFrameworkModulePkg/Bus/Isa
parent919df8e6d2b8d9c9c2438c73676b8224eecc1d4b (diff)
downloadedk2-platforms-9be29006683dd5fa6c02059691735715d28070c7.tar.xz
1. updated "the Bus Driver that creates all of its child handles on the first call to Start()" not to create any child handle if RemainingDeviepath is the End of Device Path Node, per UEFI 2.3.
The others changes include: a. Check RemainingDevicePath at beginning of Supported(), make sure it has been verified before Start() is called. b. Check IO protocol firstly rather than EfiDevicePathProtocolGuid, reduce the times entering into Start() function because EfiDevicePathProtocolGuid existed on most of handle. 2. roll back serial drivers not to create child device, if the device speicifed by remainingdevicepath cannot find in the created devices list. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9267 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Isa')
-rw-r--r--IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c
index a5ee00049e..d5b5cfbbc7 100644
--- a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c
+++ b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c
@@ -385,18 +385,9 @@ SerialControllerDriverStart (
break;
}
}
- FreePool (OpenInfoBuffer);
- if (Index < EntryCount) {
- //
- // If gEfiSerialIoProtocolGuid is opened by one child device, return
- //
- return Status;
- }
- //
- // If gEfiSerialIoProtocolGuid is not opened by any child device,
- // go further to create child device handle based on RemainingDevicePath
- //
+ FreePool (OpenInfoBuffer);
+ return Status;
}
if (RemainingDevicePath != NULL) {