• Vojtech Pavlik's avatar
    Fix DMA resource allocation in ACPIPnP · ccc4c7bb
    Vojtech Pavlik authored
    The ACPIPnP implementation had the understanding of Linux resource flags very
    wrong, resulting in a nonfunctional implementation of DMA resource
    allocation.
    
    This was usually not a problem, since almost no on-board PnP devices use ISA
    DMA, with the exception of ECP parallel ports. Even with that, parallel port
    DMA is preconfigured by the BIOS, so this routine isn't normally called.
    
    Except in the case where somebody does 'rmmod parport_pc; modprobe
    parport_pc', where the rmmod case disables the ECP parallel port resources,
    and they need to be enabled again to initialize the module. This didn't
    work, resulting in a non-printing printer.
    
    The application doing exactly the above to force reprobing of printers is
    the YaST printer module. Thus without this fix YaST wedged the printer when
    configuring it, and was not able to print a test page.
    Reported-by: default avatarRalf Flaxa <rf@suse.de>
    Reproduced-by: default avatarJiri Dluhos <jdluhos@suse.cz>
    Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    ccc4c7bb
rsparser.c 24.1 KB