]> git.hungrycats.org Git - linux/commit
dmaengine: idxd: Simplify WQ attribute visibility checks
authorFenghua Yu <fenghua.yu@intel.com>
Wed, 12 Jul 2023 17:44:35 +0000 (10:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:36 +0000 (09:48 +0200)
commit8f5137564c7a5857b761ce96302cb70fbb1cad7a
tree038afd9444018d574f17d561613706d3aebade44
parentfa2e3c484af62eae1c2cdd39212d4f01050d39a8
dmaengine: idxd: Simplify WQ attribute visibility checks

[ Upstream commit 97b1185fe54c8ce94104e3c7fa4ee0bbedd85920 ]

The functions that check if WQ attributes are invisible are almost
duplicate. Define a helper to simplify these functions and future
WQ attribute visibility checks as well.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230712174436.3435088-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Stable-dep-of: 0056a7f07b0a ("dmaengine: idxd: Allow ATS disable update only for configurable devices")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/sysfs.c