Will Deacon
92c1d360dc
iommu/arm-smmu-v3: Return -EBUSY when trying to re-add a device
...
Although we WARN in arm_smmu_add_device() if the device being added has
been added already without a subsequent call to arm_smmu_remove_device(),
we still continue half-heartedly, initialising the stream-table for any
new StreamIDs that may have magically appeared and re-establishing device
links that should still be there from last time.
Given that calling ->add_device() twice without removing the device in the
meantime is indicative of an error in the caller, just return -EBUSY after
warning.
Cc: Robin Murphy <robin.murphy@arm.com >
Cc: Jean Philippe-Brucker <jean-philippe@linaro.org >
Signed-off-by: Will Deacon <will@kernel.org >
2020-01-15 16:30:28 +00:00
..
2020-01-15 16:00:57 +00:00
2019-12-14 09:10:47 +01:00
2019-12-03 13:58:22 -08:00
2019-12-04 19:44:12 -08:00
2019-12-15 11:36:12 -08:00
2019-12-22 10:36:55 -08:00
2019-11-22 13:35:20 +01:00
2019-12-12 08:20:10 -08:00
2019-11-26 13:02:24 -07:00
2019-12-20 10:11:30 -08:00
2019-12-18 22:02:27 -08:00
2019-12-03 12:20:25 -08:00
2019-12-09 11:52:50 +00:00
2019-12-12 17:56:08 +01:00
2019-12-02 17:23:21 -08:00
2019-12-01 18:43:25 -08:00
2019-12-09 12:19:16 +09:00
2019-11-22 11:16:26 +05:30
2019-12-09 17:13:19 +10:00
2019-12-20 03:40:24 -08:00
2019-11-27 10:53:50 -08:00
2019-12-02 14:13:00 -08:00
2019-12-17 10:39:55 -08:00
2019-12-17 13:06:31 -08:00
2019-12-21 06:08:20 +10:00
2019-12-01 18:20:54 -08:00
2019-12-01 20:36:41 -08:00
2019-12-01 13:46:15 -08:00
2019-12-17 15:45:59 +01:00
2019-12-10 23:15:09 +01:00
2019-12-01 13:46:15 -08:00
2019-11-29 11:48:39 +01:00
2019-12-09 09:27:52 +01:00
2019-12-15 14:58:13 -08:00
2019-12-07 18:33:01 -08:00
2019-12-12 10:28:54 +01:00
2020-01-15 16:30:28 +00:00
2019-12-03 13:58:22 -08:00
2019-12-01 13:46:15 -08:00
2019-12-01 16:09:28 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2019-12-13 14:27:19 -08:00
2019-12-09 10:36:44 -08:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 14:37:12 -08:00
2019-12-21 06:17:05 -08:00
2019-12-19 08:13:43 +01:00
2019-12-03 14:09:14 -08:00
2019-12-22 09:54:33 -08:00
2019-12-19 17:33:23 -08:00
2019-12-07 18:38:17 -08:00
2019-12-01 18:43:25 -08:00
2019-12-13 14:27:19 -08:00
2019-12-05 11:43:31 -08:00
2019-12-22 09:54:33 -08:00
2019-11-25 19:40:40 -08:00
2019-11-13 19:09:49 +08:00
2019-12-23 14:06:05 +01:00
2019-11-22 07:03:45 +01:00
2019-12-18 16:15:36 +00:00
2019-12-05 11:43:31 -08:00
2019-12-16 11:38:20 +01:00
2019-12-20 19:01:59 +02:00
2019-12-04 10:48:09 -08:00
2019-12-13 15:42:09 -08:00
2019-12-05 11:28:14 -08:00
2019-12-04 19:44:13 -08:00
2019-12-17 13:08:41 -08:00
2019-11-18 20:35:16 -08:00
2019-12-10 11:43:37 +01:00
2019-12-01 18:39:24 -08:00
2019-12-03 13:31:08 -08:00
2019-12-22 10:36:55 -08:00
2019-12-14 12:51:57 -08:00
2019-12-20 03:40:24 -08:00
2019-12-17 13:06:31 -08:00
2019-12-18 15:51:06 +01:00
2019-12-09 10:36:44 -08:00
2019-12-05 13:18:54 -08:00
2019-12-07 21:49:06 +08:00
2019-11-19 17:35:57 +01:00
2019-12-17 14:17:32 +01:00
2019-11-14 11:49:48 +08:00
2019-12-18 19:23:42 +01:00
2019-12-07 14:51:04 -08:00
2019-12-08 13:28:11 -08:00
2019-12-03 13:58:22 -08:00
2019-12-01 13:46:15 -08:00
2019-12-11 08:14:07 -05:00
2019-11-14 13:06:33 +08:00
2019-12-01 18:01:03 -08:00
2019-12-21 06:24:56 -08:00