Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Yijing Wang
>> struct pci_scan_info { >> int bus; >> struct device *parent; >> struct pci_ops *ops; >> void *sysdata; >> struct list_head *resource; >> int domain; >> struct pci_host_bridge_ops; >> } >> >> Do you like this one or keep it like now ? >> >>

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Bjorn Helgaas
On Thu, Mar 12, 2015 at 08:14:40PM +0800, Yijing Wang wrote: > On 2015/3/12 9:29, Bjorn Helgaas wrote: > > On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: > >> Currently, we use int type for bus number in > >> pci_create_root_bus(), pci_scan_root_bus() and > >> pci_scan_bus_legacy.

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Yijing Wang
On 2015/3/12 9:29, Bjorn Helgaas wrote: > On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: >> Currently, we use int type for bus number in >> pci_create_root_bus(), pci_scan_root_bus() and >> pci_scan_bus_legacy. Because PCI bus number >> always <= 255, so we could change the bus

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Yijing Wang
On 2015/3/12 9:29, Bjorn Helgaas wrote: On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always = 255, so we could change the bus number

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Yijing Wang
struct pci_scan_info { int bus; struct device *parent; struct pci_ops *ops; void *sysdata; struct list_head *resource; int domain; struct pci_host_bridge_ops; } Do you like this one or keep it like now ? pci_scan_root_bus(struct device *parent, int

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-12 Thread Bjorn Helgaas
On Thu, Mar 12, 2015 at 08:14:40PM +0800, Yijing Wang wrote: On 2015/3/12 9:29, Bjorn Helgaas wrote: On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-11 Thread Bjorn Helgaas
On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: > Currently, we use int type for bus number in > pci_create_root_bus(), pci_scan_root_bus() and > pci_scan_bus_legacy. Because PCI bus number > always <= 255, so we could change the bus number > argument type to u32, and combine PCI

Re: [PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-11 Thread Bjorn Helgaas
On Mon, Mar 09, 2015 at 10:34:03AM +0800, Yijing Wang wrote: Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always = 255, so we could change the bus number argument type to u32, and combine PCI domain and

[PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-08 Thread Yijing Wang
Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always <= 255, so we could change the bus number argument type to u32, and combine PCI domain and bus number in one. Also add a domain member in pci_host_bridge

[PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-08 Thread Yijing Wang
Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always = 255, so we could change the bus number argument type to u32, and combine PCI domain and bus number in one. Also add a domain member in pci_host_bridge to