Commit 800f35d7 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman
Browse files

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: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8ec04a49
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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",