]> git.baikalelectronics.ru Git - kernel.git/commit
pcmcia: handle anonymous cards by generating a fake CIS
authorAlan Cox <alan@linux.intel.com>
Wed, 10 Dec 2014 15:07:14 +0000 (15:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jan 2015 13:04:12 +0000 (05:04 -0800)
commitf7925f8078f248dc0d67c0e5408109e3cb292b35
tree5a6a4211df883f2891c9fd242d92ac96c87ae103
parentbad9d7e06c306edf65bddb07f7cbf9ab163b25c3
pcmcia: handle anonymous cards by generating a fake CIS

The core pcmcia code blows up all over the place if it allowed a card without
a valid CIS. We need to allow such cards as the CIS stuff is not on the older
flash, ROM and SRAM cards.

In order to minimise the risk of misidentifying junk and feeding it to the
wrong thing we only fix up apparently anonymous cards if the driver for them
has been enabled.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/cistpl.c