diff --git a/sys/dev/ic/mvsata.c b/sys/dev/ic/mvsata.c index 26e1cb9e6c9a..231f935d81ce 100644 --- a/sys/dev/ic/mvsata.c +++ b/sys/dev/ic/mvsata.c @@ -1,4 +1,4 @@ -/* $NetBSD: mvsata.c,v 1.53 2020/02/19 16:04:39 riastradh Exp $ */ +/* $NetBSD: mvsata.c,v 1.54 2020/03/22 16:46:30 macallan Exp $ */ /* * Copyright (c) 2008 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.53 2020/02/19 16:04:39 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.54 2020/03/22 16:46:30 macallan Exp $"); #include "opt_mvsata.h" @@ -669,7 +669,8 @@ mvsata_reset_channel(struct ata_channel *chp, int flags) const uint32_t val = SControl_IPM_NONE | SControl_SPD_ANY | SControl_DET_DISABLE; - MVSATA_EDMA_WRITE_4(mvport, mvport->port_sata_scontrol, val); + bus_space_write_4(mvport->port_iot, + mvport->port_sata_scontrol, 0, val); ctrl = MVSATA_EDMA_READ_4(mvport, SATA_SATAICFG); ctrl &= ~(1 << 17); /* Disable GenII */