Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754359AbbHFP6o (ORCPT ); Thu, 6 Aug 2015 11:58:44 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:36711 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753958AbbHFP6l (ORCPT ); Thu, 6 Aug 2015 11:58:41 -0400 MIME-Version: 1.0 In-Reply-To: <55C2E79E.3090809@roeck-us.net> References: <1438308908-12259-1-git-send-email-linux@roeck-us.net> <55C2C4F4.1040600@roeck-us.net> <55C2E79E.3090809@roeck-us.net> Date: Thu, 6 Aug 2015 08:58:40 -0700 X-Google-Sender-Auth: sccOyTgJ9myzUWEOj5xdMsoR19I Message-ID: Subject: Re: [PATCH v3] PCI: Only enable IO window if supported From: Yinghai Lu To: Guenter Roeck Cc: Bjorn Helgaas , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List , Lorenzo Pieralisi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 836 Lines: 23 On Wed, Aug 5, 2015 at 9:50 PM, Guenter Roeck wrote: > If I understand you correctly, we might need to change the code > in pci_read_bridge_io() as follows. > > From > > if (!(child->bus_flags & PCI_BUS_FLAGS_SUPPORTS_IO)) > return; > > to something like > > if (!(child->bus_flags & PCI_BUS_FLAGS_SUPPORTS_IO)) { > if (dev->transparent) > return; > child->bus_flags |= PCI_BUS_FLAGS_SUPPORTS_IO; > } > Then how about: the root bus really does not support IO PORT resource. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/