Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 25, 2017 at 05:39:40PM +0300, Mika Westerberg wrote: > On Thu, May 25, 2017 at 03:28:34PM +0200, Greg Kroah-Hartman wrote: > > On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > > > +static int tb_switch_nvm_add(struct tb_switch *sw) > > > +{ > > > + struct nvmem_device

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 25, 2017 at 05:39:40PM +0300, Mika Westerberg wrote: > On Thu, May 25, 2017 at 03:28:34PM +0200, Greg Kroah-Hartman wrote: > > On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > > > +static int tb_switch_nvm_add(struct tb_switch *sw) > > > +{ > > > + struct nvmem_device

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Mika Westerberg
On Thu, May 25, 2017 at 03:28:34PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > > +static int tb_switch_nvm_add(struct tb_switch *sw) > > +{ > > + struct nvmem_device *nvm_dev; > > + struct tb_switch_nvm *nvm; > > + u32 val; > > +

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Mika Westerberg
On Thu, May 25, 2017 at 03:28:34PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > > +static int tb_switch_nvm_add(struct tb_switch *sw) > > +{ > > + struct nvmem_device *nvm_dev; > > + struct tb_switch_nvm *nvm; > > + u32 val; > > +

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > +static int tb_switch_nvm_add(struct tb_switch *sw) > +{ > + struct nvmem_device *nvm_dev; > + struct tb_switch_nvm *nvm; > + u32 val; > + int ret; > + > + if (!sw->dma_port) > + return 0; > + > +

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 18, 2017 at 05:39:12PM +0300, Mika Westerberg wrote: > +static int tb_switch_nvm_add(struct tb_switch *sw) > +{ > + struct nvmem_device *nvm_dev; > + struct tb_switch_nvm *nvm; > + u32 val; > + int ret; > + > + if (!sw->dma_port) > + return 0; > + > +

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 10:35:19PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg > wrote: > > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > > using DMA configuration based mailbox commands. If we detect

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 10:35:19PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg > wrote: > > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > > using DMA configuration based mailbox commands. If we detect that the > > host or device

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg wrote: > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > using DMA configuration based mailbox commands. If we detect that the > host or device (device support starts from Intel Alpine Ridge)

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg wrote: > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > using DMA configuration based mailbox commands. If we detect that the > host or device (device support starts from Intel Alpine Ridge) has the > DMA configuration based

[PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-18 Thread Mika Westerberg
Starting from Intel Falcon Ridge the NVM firmware can be upgraded by using DMA configuration based mailbox commands. If we detect that the host or device (device support starts from Intel Alpine Ridge) has the DMA configuration based mailbox we expose NVM information to the userspace as two

[PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-18 Thread Mika Westerberg
Starting from Intel Falcon Ridge the NVM firmware can be upgraded by using DMA configuration based mailbox commands. If we detect that the host or device (device support starts from Intel Alpine Ridge) has the DMA configuration based mailbox we expose NVM information to the userspace as two