]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Restore EPROM read ability
authorDean Luick <dean.luick@intel.com>
Fri, 30 Sep 2016 11:41:34 +0000 (04:41 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 2 Oct 2016 12:42:19 +0000 (08:42 -0400)
commit5432fc999ebac9e8072eb758c7e444517aba08d9
tree6ccea4f92c6b8a88d5160e10422a63f7466b6eeb
parent64ddb1a56c47ec3ab0d02e1b629fc33adbbb805b
IB/hfi1: Restore EPROM read ability

Partially revert commit d71f18af94f8 ("IB/hfi1: Remove
EPROM functionality from data device"), bringing back
the ability to read from the EPROM.

This code will be used for driver-only acccess to the EPROM, hence
change EPROM read to save to a buffer instead of copy touser. Also
allow any offset and remove missed includes and leftover declarations.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/eprom.c
drivers/infiniband/hw/hfi1/eprom.h
drivers/infiniband/hw/hfi1/file_ops.c