summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-09-14 17:31:41 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-21 16:35:27 +0100
commit9528b9219348e0a013f4b587958a8ba9c96d7e20 (patch)
treef6244c5dccb81e29aa3fb8e2a5bbfcebd20333c0 /drivers/of
parentc5bb0e9891ba1f7c871adc09d9ef727e1c0c1c1e (diff)
sfc: Ensure MCDI buffers, but not lengths, are dword aligned
We currently require that MCDI request and response lengths are multiples of 4 bytes, because we will copy dwords in and out of shared memory and we want to be sure we won't read or write out of bounds. But all we really need to know is that there is sufficient padding for that. Also, we should ensure that buffers are dword-aligned, as on some architectures misaligned access will result in data corruption or a crash. Change the buffer type to array-of-efx_dword_t and remove the requirement that the lengths are multiples of 4. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions