PCI-IDE driver fallback to polling for PCI-native controllers
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m55s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m55s
This commit is contained in:
@@ -30,14 +30,11 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
|
||||
[XDRV_WRITE] = &partdrv_write,
|
||||
};
|
||||
|
||||
DEBUG ("1\n");
|
||||
spin_lock (&device->lock, &fd);
|
||||
|
||||
device_op (device, XDRV_GET_SECTOR_SIZE, proc, rctx, &fd, §or_size);
|
||||
|
||||
DEBUG ("2\n");
|
||||
int ret = device_op (device, XDRV_READ, proc, rctx, &fd, §or, §or_count, &mbr);
|
||||
DEBUG ("3\n");
|
||||
|
||||
if (ret < 0) {
|
||||
spin_unlock (&device->lock, fd);
|
||||
@@ -48,7 +45,6 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
|
||||
spin_unlock (&device->lock, fd);
|
||||
return -ST_PARTITION_ERROR;
|
||||
}
|
||||
DEBUG ("4\n");
|
||||
|
||||
for (size_t i = 0; i < lengthof (mbr.ptes); i++) {
|
||||
struct dos_pte* pte = &mbr.ptes[i];
|
||||
@@ -64,11 +60,9 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
|
||||
snprintf (key, sizeof (key), "%sp%zu", device->key, i);
|
||||
|
||||
device_create (key, ops, lengthof (ops), &partdrv_init, &partdrv_fini, &init, proc, rctx);
|
||||
DEBUG ("5\n");
|
||||
}
|
||||
|
||||
spin_unlock (&device->lock, fd);
|
||||
DEBUG ("6\n");
|
||||
|
||||
return ST_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user