diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:42:56 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:42:56 -0400 |
commit | 5669e31c5a4874f1634bc0ffba268a6e2fa0cdd2 (patch) | |
tree | 3ef3f6724e7a812ba83b420c3915c4a46762aeb7 /drivers/dma/ioat/dma_v3.c | |
parent | bf40a6869c9198bdf56fe173961feb89e9f0d961 (diff) |
ioat: add 'ioat' sysfs attributes
Export driver attributes for diagnostic purposes:
'ring_size': total number of descriptors available to the engine
'ring_active': number of descriptors in-flight
'capabilities': supported operation types for this channel
'version': Intel(R) QuickData specfication revision
This also allows some chattiness to be removed from the driver startup
as this information is now available via sysfs.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ioat/dma_v3.c')
-rw-r--r-- | drivers/dma/ioat/dma_v3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c index b223d66b97e9..22af78ec2573 100644 --- a/drivers/dma/ioat/dma_v3.c +++ b/drivers/dma/ioat/dma_v3.c | |||
@@ -360,6 +360,9 @@ int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca) | |||
360 | err = ioat_register(device); | 360 | err = ioat_register(device); |
361 | if (err) | 361 | if (err) |
362 | return err; | 362 | return err; |
363 | |||
364 | ioat_kobject_add(device, &ioat2_ktype); | ||
365 | |||
363 | if (dca) | 366 | if (dca) |
364 | device->dca = ioat3_dca_init(pdev, device->reg_base); | 367 | device->dca = ioat3_dca_init(pdev, device->reg_base); |
365 | 368 | ||