]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Check log page directory before accessing pages
authorHannes Reinecke <hare@suse.de>
Mon, 25 Apr 2016 10:45:48 +0000 (12:45 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 May 2016 16:36:45 +0000 (12:36 -0400)
commitf1a9b7b09133613ba9c4c7b30d85e1819f1d962c
treead819b31fe6a124e3022d28ac915a63263db2f7e
parentcefadfb1b59850f6ffe3f614d73a29d8754662ac
libata: Check log page directory before accessing pages

When reading the NCQ Send/Recv log it might actually not
supported, thereby causing irritating messages
'READ LOG DMA EXT failed'.
Instead we should be reading the log directory first to
figure out if the log is actually supported before trying
to access it.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
include/linux/ata.h