My understanding of this code is that it is only in FreeBSD, so it is not a 'general' question. That same understanding is that the code identifies what devices support TRIM (including some trickery to get around devices that claim support but don't actually), so my not-personally-verified opinion would be that yes, it would be fine here, because it is taking the time to identify which devices can do TRIM, which would imply it can handle ones that can't, too. Source of my understanding: http://src.illumos.org/source/xref/freebsd-head/sys/dev/isci/scil/sati_device.c
I hope by 'partially backed by SSD' you mean L2ARC/ZIL, not some SSD data vdevs and some HD data vdevs!