Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-14 Thread Sergio Paracuellos
On Sat, Jul 14, 2018 at 10:04:32AM +1000, NeilBrown wrote: > On Tue, Jul 10 2018, Sergio Paracuellos wrote: > > > map_bus callback is called before every .read/.write operation. > > Implement it and change custom read write operations for the > > pci subsystem generics. Make the probe function to

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-13 Thread NeilBrown
On Tue, Jul 10 2018, Sergio Paracuellos wrote: > map_bus callback is called before every .read/.write operation. > Implement it and change custom read write operations for the > pci subsystem generics. Make the probe function to assign data > for controller data and get pci register base from

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Sergio Paracuellos
On Wed, Jul 11, 2018 at 10:29:43AM +0300, Dan Carpenter wrote: > On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > > +static int mt7621_pcie_parse_dt(struct mt7621_pcie_port *port) > > +{ > > + struct device *dev = port->dev; > > + struct device_node *node = dev->of_node; >

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Sergio Paracuellos
On Wed, Jul 11, 2018 at 11:16:14AM +0200, Greg KH wrote: > On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > > map_bus callback is called before every .read/.write operation. > > Implement it and change custom read write operations for the > > pci subsystem generics. Make the

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Sergio Paracuellos
On Wed, Jul 11, 2018 at 07:51:05PM +1000, NeilBrown wrote: > On Wed, Jul 11 2018, Greg KH wrote: > > > On Wed, Jul 11, 2018 at 10:29:43AM +0300, Dan Carpenter wrote: > >> On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > >> > +static int mt7621_pcie_parse_dt(struct

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread NeilBrown
On Wed, Jul 11 2018, Greg KH wrote: > On Wed, Jul 11, 2018 at 10:29:43AM +0300, Dan Carpenter wrote: >> On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: >> > +static int mt7621_pcie_parse_dt(struct mt7621_pcie_port *port) >> > +{ >> > + struct device *dev = port->dev; >> > +

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Greg KH
On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > map_bus callback is called before every .read/.write operation. > Implement it and change custom read write operations for the > pci subsystem generics. Make the probe function to assign data > for controller data and get pci

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Greg KH
On Wed, Jul 11, 2018 at 10:29:43AM +0300, Dan Carpenter wrote: > On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > > +static int mt7621_pcie_parse_dt(struct mt7621_pcie_port *port) > > +{ > > + struct device *dev = port->dev; > > + struct device_node *node = dev->of_node; >

Re: [PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-11 Thread Dan Carpenter
On Tue, Jul 10, 2018 at 09:33:47PM +0200, Sergio Paracuellos wrote: > +static int mt7621_pcie_parse_dt(struct mt7621_pcie_port *port) > +{ > + struct device *dev = port->dev; > + struct device_node *node = dev->of_node; > + struct resource regs; > + const char *type; > + int

[PATCH 2/3] staging: mt7621-pci: use generic kernel pci subsystem read and write

2018-07-10 Thread Sergio Paracuellos
map_bus callback is called before every .read/.write operation. Implement it and change custom read write operations for the pci subsystem generics. Make the probe function to assign data for controller data and get pci register base from device tree. Signed-off-by: Sergio Paracuellos ---