mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-03-24 04:08:00 +08:00
staging: comedi: jr3_pci: Reset all DSPs
The various JR3 PCI models have from 1 to 4 DSPs, one per subdevice. Prior to loading the firmware to all the DSPs, the initialization code in `jr3_pci_auto_attach()` resets the first DSP. As far as I can tell, it should reset all of them. Change it to do so. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8ec04a4918
commit
800f35d773
@ -736,7 +736,8 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
|
||||
}
|
||||
|
||||
/* Reset DSP card */
|
||||
writel(0, &devpriv->iobase->channel[0].reset);
|
||||
for (i = 0; i < dev->n_subdevices; i++)
|
||||
writel(0, &devpriv->iobase->channel[i].reset);
|
||||
|
||||
ret = comedi_load_firmware(dev, &comedi_to_pci_dev(dev)->dev,
|
||||
"comedi/jr3pci.idm",
|
||||
|
Loading…
x
Reference in New Issue
Block a user