From 9d7aa00997ae5cf21ea3b80d2c0474a777318c3f Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 10 Jan 2024 23:13:43 +0100 Subject: [PATCH] Revert "sata_port_shim: back to old (resolve kernel panic on dt)" This reverts commit c5a27badd0582c32ac62688a634c75c9bf662f64. --- shim/storage/sata_port_shim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shim/storage/sata_port_shim.c b/shim/storage/sata_port_shim.c index ea99c7d..12d3ad8 100644 --- a/shim/storage/sata_port_shim.c +++ b/shim/storage/sata_port_shim.c @@ -46,8 +46,7 @@ */ static bool is_fixable(struct scsi_device *sdp) { - return current_config.hw_config->is_dt == false && // Device-tree models causes a kernel panic if type is changed - (sdp->host->hostt->syno_port_type == SYNO_PORT_TYPE_SAS || + return (sdp->host->hostt->syno_port_type == SYNO_PORT_TYPE_SAS || (sdp->host->hostt->syno_port_type != SYNO_PORT_TYPE_SATA && strcmp(sdp->host->hostt->name, VIRTIO_HOST_ID) == 0)); }