dmaengine: idxd: check GENCAP config support for gencfg register
authorDave Jiang <dave.jiang@intel.com>
Tue, 12 Oct 2021 18:01:59 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:44 +0000 (14:23 +0200)
commite509584b079a26ee57de1f47293e3ae0adfe0fd4
tree6093209e4ebef27495691bee65ee614ac76dc6af
parent41e360fa73a4c2f5b78f5ded78a5375b08c206a5
dmaengine: idxd: check GENCAP config support for gencfg register

[ Upstream commit 79c4c3db7d86b9bec94562275efc82e58f3d0132 ]

DSA spec 1.2 has moved the GENCFG register under the GENCAP configuration
support with respect to writability. Add check in driver before writing to
GENCFG register.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163406171896.1303830.11217958011385656998.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/device.c