OSDN Git Service

dmaengine: idxd: set max_xfer and max_batch for RO device
authorDave Jiang <dave.jiang@intel.com>
Mon, 11 Apr 2022 22:11:16 +0000 (15:11 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 11:47:33 +0000 (17:17 +0530)
commit23084545dbb0ac0d1f0acad915bdeed7bd5f48cd
treed8890a26513f1f8927a97b3a07cc2800caf8d0f6
parent4e5a4eb20393b851590b4465f1197a8041c2076b
dmaengine: idxd: set max_xfer and max_batch for RO device

Load the max_xfer_size and max_batch_size values from the values read from
registers to the shadow variables. This will allow the read-only device to
display the correct values for the sysfs attributes.

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