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

    Johannes Thumshirn
     

27 Sep, 2016

1 commit


04 May, 2016

2 commits


29 Oct, 2015

1 commit


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

    Alexey Khoroshilov
     

03 Apr, 2015

1 commit


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

    Johannes Thumshirn
     

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

    Johannes Thumshirn
     

28 May, 2014

1 commit


01 Mar, 2014

1 commit