Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Sep 2002 11:45:23 +0900 (JST)
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        sos@freebsd.dk
Cc:        current@FreeBSD.ORG
Subject:   Re: [PATCH] 'ata_dmasetup: transfer active on this device!' problem on resume
Message-ID:  <20020905.114523.27774067.iwasaki@jp.FreeBSD.org>
In-Reply-To: <20020905.114039.10290552.iwasaki@jp.FreeBSD.org>
References:  <20020905.114039.10290552.iwasaki@jp.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, typo...

> @@ -674,6 +712,20 @@
>  	    ad_start(&ch->device[MASTER]);
>  	if (ch->devices & (ATA_ATA_SLAVE) && ch->device[SLAVE].driver)
>  	    ad_start(&ch->device[SLAVE]);
> +    }
> +    if (ch->devices & (ATA_ATA_MASTER) && ch->device[MASTER].driver) {
> + 	if (ch->device[MASTER].suspended && ch->device[MASTER].mode >= ATA_DMA) {
> +	    printf("%s: going to suspend, ignoring.\n", __func__);
> +	    splx(s);
> +	    return;
> +	 }
> +    }
> +    if (ch->devices & (ATA_ATA_SLAVE) && ch->device[SLAVE].driver) {
> + 	if (ch->device[SLAVE].suspended && ch->device[MASTER].mode >= ATA_DMA) {
                                                      ^^^^^^^ SLAVE

Thanks

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020905.114523.27774067.iwasaki>