summaryrefslogtreecommitdiffstats
path: root/mm/kmemcheck.c
diff options
context:
space:
mode:
authorSifan Naeem <sifan.naeem@imgtec.com>2015-07-29 12:55:26 +0200
committerMark Brown <broonie@kernel.org>2015-08-04 19:46:54 +0200
commitb03ba9e314c12b2127243145b5c1f41b2408de62 (patch)
treee909d33caf1fea825693ef42d3baec7778ea0ae6 /mm/kmemcheck.c
parentspi: img-spfi: check for timeout error before proceeding (diff)
downloadlinux-b03ba9e314c12b2127243145b5c1f41b2408de62.tar.xz
linux-b03ba9e314c12b2127243145b5c1f41b2408de62.zip
spi: img-spfi: fix multiple calls to request gpio
spfi_setup may be called many times by the spi framework, but gpio_request_one can only be called once without freeing, repeatedly calling gpio_request_one will cause an error to be thrown, which causes the request to spi_setup to be marked as failed. We can have a per-spi_device flag that indicates whether or not the gpio has been requested. If the gpio has already been requested use gpio_direction_output to set the direction of the gpio. Fixes: 8c2c8c03cdcb ("spi: img-spfi: Control CS lines with GPIO") Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'mm/kmemcheck.c')
0 files changed, 0 insertions, 0 deletions