diff --git a/sys/dev/ata/chipsets/ata-jmicron.c b/sys/dev/ata/chipsets/ata-jmicron.c index 583ddaef6e91..301b99b533a1 100644 --- a/sys/dev/ata/chipsets/ata-jmicron.c +++ b/sys/dev/ata/chipsets/ata-jmicron.c @@ -132,6 +132,8 @@ ata_jmicron_chipinit(device_t dev) /* set the number of HW channels */ ctlr->channels = ctlr->chip->cfg1 + ctlr->chip->cfg2; + ctlr->ichannels |= ((0xffffffffU >> (32 - ctlr->chip->cfg2)) + << ctlr->chip->cfg1); } return 0; }