Alexander Motin 16614d3518 Supply SAT layer with valid transfer sizes.
This is a rework of r344701, that noticed that number of bytes passes to
8 bit sector count field gets truncated.  First decision was to not pass
anything, since ATA specs define the field as N/A.  But it appeared to be a
problem for some SAT devices, that require information about data transfer
to operate properly.  Some additional investigation shown that it is quite
a common practice to set unused fields of ATA commands (fortunately ATA
specs formally allow it) to supply the information to SAT layer.  I have
found SAS-SATA interposer that does not allow pass-through without it.

As side effect, reduce code duplication by removing ata_do_28bit_cmd()
function, replacing it with more universal ata_do_cmd().

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
2019-09-07 15:56:00 +00:00
..
2019-09-04 18:00:03 +00:00
2019-09-04 15:55:44 +00:00
2019-09-04 15:55:44 +00:00
2019-09-06 15:43:53 +00:00
2019-08-28 16:18:23 +00:00
2019-09-06 19:40:11 +00:00
2019-08-22 04:31:07 +00:00
2019-08-25 17:13:00 +00:00
2019-09-02 01:55:55 +00:00
2019-09-06 18:33:39 +00:00
2019-08-29 07:25:27 +00:00
2019-09-06 15:43:53 +00:00
2019-02-04 21:28:25 +00:00
2019-06-08 16:26:56 +00:00