patch-2.4.14 linux/drivers/pcmcia/sa1100_generic.c
Next file: linux/drivers/pcmcia/sa1100_neponset.c
Previous file: linux/drivers/pcmcia/sa1100_cerf.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Thu Oct 25 13:53:48 2001
- Orig file:
v2.4.13/linux/drivers/pcmcia/sa1100_generic.c
- Orig date:
Tue Oct 23 22:48:51 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/pcmcia/sa1100_generic.c linux/drivers/pcmcia/sa1100_generic.c
@@ -54,6 +54,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/system.h>
+#include <asm/arch/assabet.h>
#include "sa1100.h"
@@ -375,11 +376,26 @@
*
* Returns: 0
*/
-static int sa1100_pcmcia_suspend(unsigned int sock){
+static int sa1100_pcmcia_suspend(unsigned int sock)
+{
+ struct pcmcia_configure conf;
+ int ret;
DEBUG(2, "%s(): suspending socket %u\n", __FUNCTION__, sock);
- return 0;
+ conf.sock = sock;
+ conf.vcc = 0;
+ conf.vpp = 0;
+ conf.output = 0;
+ conf.speaker = 0;
+ conf.reset = 1;
+
+ ret = pcmcia_low_level->configure_socket(&conf);
+
+ if (ret == 0)
+ sa1100_pcmcia_socket[sock].cs_state = dead_socket;
+
+ return ret;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)