mirror of
https://github.com/AuxXxilium/redpill-lkm5.git
synced 2024-11-23 23:11:02 +07:00
shim: test sas for dt
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
165a08beed
commit
d1168431ee
@ -46,10 +46,9 @@
|
|||||||
*/
|
*/
|
||||||
static bool is_fixable(struct scsi_device *sdp)
|
static bool is_fixable(struct scsi_device *sdp)
|
||||||
{
|
{
|
||||||
return sdp->host->hostt->syno_port_type == SYNO_PORT_TYPE_SAS ||
|
return (sdp->host->hostt->syno_port_type == SYNO_PORT_TYPE_SAS ||
|
||||||
(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_SATA &&
|
||||||
sdp->host->hostt->syno_port_type != SYNO_PORT_TYPE_SATA &&
|
strcmp(sdp->host->hostt->name, VIRTIO_HOST_ID) == 0));
|
||||||
strcmp(sdp->host->hostt->name, VIRTIO_HOST_ID) == 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user