From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E9CB881FAC for ; Thu, 15 Dec 2016 03:15:09 -0800 (PST) Received: by mail-wm0-x22c.google.com with SMTP id g23so158668139wme.1 for ; Thu, 15 Dec 2016 03:15:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dcZeMm3yhIyXSs0EzVWg7tG4Uhr/UVyyIoVUOrfGPec=; b=dTc5oMXqrgA/wBn7Rb7nKmkC2o97F6O6OvSxjSTkaszhYwawkdHPTRZ/FpqcLeRAr0 H8SbRN57gYLIM9wQxZfZ6ZW35LdEO0tttTFADQoHAWRDAszR2R335crnzqTC/e4NRlJs HIEfRvkNLqbj5mov5rRqJpqY+h8kM12dmtvwCTFdPGakgXrymieXr70sP+O70XBgV+5G APJboxRd3xmD40dcU5xsIYr4ECUPDDl0bdDxTkd58nnwhAfBVh1Cn/VZ26qOvpq8CaD/ covWshkf9mvetfHtJuTVFO4SeP2L3ucQWQWjSgON2vWX29IfDhOEPyMwZkFFZRlAXliA qf1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dcZeMm3yhIyXSs0EzVWg7tG4Uhr/UVyyIoVUOrfGPec=; b=jUI6VK6qSqEE3/uOjaqR7s4/Ii9twrosgqu5DjClL50HDHDRR72NdadkbQ6gI1K69F iLPA4aSZindXc9zO0GT16TIEi35jZh+W90bKpQ1GWiakT/weFTeX70HNYIdyk0yiH/L/ kDeenXh+9c5ZRjrIkoZW5lqH+CUWyISTw4P0yG0DGZ3T1rmBhzlDCLjHmzV1HgHV3Em5 k3Lv/s5G4bmTbPXNJs9/Ne2fWRJhOPBYvm+E4x14YYi+Q0UIJW1YJH2uDYy4qadb9Jxp fG0VDAYwSDwp8qvXMjSh6pwyNgKhh2l/vH79I2jZbSkrG1DlK5FsJ0mJvikV1fwc/YAJ 0xLw== X-Gm-Message-State: AKaTC021MK8N8DtzY6JJtEshIHA543bEI+FX1uHJkQxn3KzT5UXgijFUZfkDQt1HZ5IsJE26+RyLbbMtpOt1NQ== X-Received: by 10.25.196.88 with SMTP id u85mr276195lff.69.1481800507309; Thu, 15 Dec 2016 03:15:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.196.129 with HTTP; Thu, 15 Dec 2016 03:15:06 -0800 (PST) From: Arka Sharma Date: Thu, 15 Dec 2016 16:45:06 +0530 Message-ID: To: edk2-devel@lists.01.org Subject: Closing PciIo protocol inside Stop() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 11:15:10 -0000 Content-Type: text/plain; charset=UTF-8 I am wondering if the PciIo protocol instance for a PCI driver, is opened with _BY_DRIVER | EXCLUSIVE in Start() function, is not closed in the Stop() will the instance be uninstalled and the ControllerHandle removed ? Also is it possible to Close() the PciIo in Stop() and reopen the PciIo instance on the same controller handle from some other driver image with _BY_DRIVER attribute and accessing Pci resources on the ControllerHandle even after Stop() is called. I know it is not recommended way but curious about it. Or it could be specific to the implementation ? Thanks & Regards,