summaryrefslogtreecommitdiff
path: root/crypto/pcbc.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2014-04-18 16:19:51 +0400
committerJason Cooper <jason@lakedaemon.net>2014-04-24 07:47:55 +0400
commit09752a12f430f58523fb6f435f5e30e4048fcfb2 (patch)
treebc4adfc62940cc8b809dfb6be008c7762d6d2c36 /crypto/pcbc.c
parentb6d07e0273d3296cfbdc88145b8a00ddbefb310a (diff)
downloadlinux-09752a12f430f58523fb6f435f5e30e4048fcfb2.tar.xz
bus: mvebu-mbus: Avoid setting an undefined window size
The mbus hardware requires a power of two size, and size aligned base. Currently, if a non-power of two is passed in to the low level routines they configure the register in a way that results in undefined behaviour. Call WARN and return EINVAL instead. Also, update the debugfs routines to show a message if there is an invalid register setting. All together this makes the recent problems with silent failure of PCI very obvious, noisy and debuggable. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Link: https://lkml.kernel.org/r/1397823593-1932-6-git-send-email-thomas.petazzoni@free-electrons.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions