15 Mar, 2018
1 commit
-
Some older PCI attached MEN FPGAs use an Altera PCI Vendor ID instead
of the MEN one. Add it to the PCI ID table so the driver automatically
attaches to it.Signed-off-by: Johannes Thumshirn
Reported-by: Ben Turner
Tested-by: Ben Turner
Cc: Andreas Geißler
Reviewed-by: Andy Shevchenko
Signed-off-by: Greg Kroah-Hartman
27 Sep, 2016
1 commit
-
In order to successfully perform DMA operations on PCI devices,
it is necessary to enble PCI bus mastering, so enable it by default.Signed-off-by: Michael Moese
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman
04 May, 2016
2 commits
-
The num_cells variable is only used in the dev_dbg print,
but we can directly use the ret variable which also includes the same
value.Signed-off-by: Andreas Werner
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman -
Replaced ioremap with devm_ioremap and request_mem_region with
devm_request_mem_region. This makes the code much more cleaner.Signed-off-by: Andreas Werner
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman
29 Oct, 2015
1 commit
-
There is an error path in mcb_pci_probe() where
it returns zero instead of error code.Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman
05 Oct, 2015
1 commit
-
If a MCB PCI Carrier device is IO mapped insted of memory-mapped,
the memory of the PCI device is still not unmapped.Also the patch adds deallocation of the bus
if chameleon_parse_cells() fails.Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman
03 Apr, 2015
1 commit
-
The code here is checking for IS_ERR() when request_mem_region() only
returns NULL on error and never an ERR_PTR.Signed-off-by: Dan Carpenter
Signed-off-by: Greg Kroah-Hartman
04 Feb, 2015
1 commit
-
If a MCB PCI Carrier device is IO mapped insted of memory-mapped (which is
currently unsupported by the upstream driver) the probe function bails out
with -ENOTSUPP.In this case the memory of the PCI device was not unmapped.
Also rename error label to reflect what will happen at the destination (suggested
by Julia Lawall .Signed-off-by: Johannes Thumshirn
Reported-by: kbuild test robot
Signed-off-by: Greg Kroah-Hartman
10 Jan, 2015
1 commit
-
Currently it is not possible to have a kernel with built-in MCB attached
devices. This results out of the fact that mcb-pci requests PCI BAR 0, then
parses the chameleon table and calls the driver's probe function before
releasing BAR 0 again. When building the kernel with modules this is not a
problem (and therefore it wasn't detected by my tests yet).A solution is to only remap the 1st 0x200 bytes of a Chameleon PCI device.
0x200 bytes is the maximum size of a Chameleon v2 Table.Also this patch stops disabling the PCI device on successful registration of MCB
devices.Signed-off-by: Johannes Thumshirn
Suggested-by: Bjorn Helgaas
Reviewed-by: Bjorn Helgaas
Signed-off-by: Greg Kroah-Hartman
28 May, 2014
1 commit
-
Add support for shared PCI IRQs to mcb and mcb-pci.
Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman
01 Mar, 2014
1 commit
-
Add support for MCB over PCI devices. Both PCI attached on-board Chameleon FPGAs
as well as CompactPCI based MCB carrier cards are supported with this driver.Signed-off-by: Johannes Thumshirn
Signed-off-by: Greg Kroah-Hartman