/* Prepare disk command byte 0 = 0x70 byte 1 = 0x1f  */
static int gdrom_preparedisk_cmd(void)
/* Prepare disk command byte 0 = 0x70 byte 1 = 0x1f  */
static int gdrom_preparedisk_cmd(void)
{
	struct packet_command *spin_command;
	spin_command = kzalloc(sizeof(struct packet_command), GFP_KERNEL);
	if (!spin_command)
		return -ENOMEM;
	spin_command->cmd[0] = 0x70;
	spin_command->cmd[2] = 0x1f;
	spin_command->buflen = 0;
	gd.pending = 1;
	gdrom_packetcommand(gd.cd_info, spin_command);
	wait_event_interruptible_timeout(command_queue, gd.pending == 0,
		GDROM_DEFAULT_TIMEOUT);
	gd.pending = 0;
	kfree(spin_command);
	if (gd.status & 0x01) {
		gdrom_getsense(NULL);
		return -EIO;
	}
	return 0;
}