diff options
author | Alastair D'Silva <alastair@d-silva.org> | 2018-06-28 06:05:02 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-02 09:54:31 -0400 |
commit | 17d29039388807305ab02a4d6eae7cbe09f81f90 (patch) | |
tree | 0840162bb6a80262156b1f49d635e052f9111202 /drivers/misc/cxl/api.c | |
parent | 0cfd7335d1ebea42cf113fd22452f6a10d3960fe (diff) |
Revert "cxl: Add preliminary workaround for CX4 interrupt limitation"
Remove abandonned capi support for the Mellanox CX4.
This reverts commit cbce0917e2e47d4bf5aa3b5fd6b1247f33e1a126.
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/api.c')
-rw-r--r-- | drivers/misc/cxl/api.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index 2e5862b7a074..34ba67bc41bd 100644 --- a/drivers/misc/cxl/api.c +++ b/drivers/misc/cxl/api.c | |||
@@ -181,21 +181,6 @@ static irq_hw_number_t cxl_find_afu_irq(struct cxl_context *ctx, int num) | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | int _cxl_next_msi_hwirq(struct pci_dev *pdev, struct cxl_context **ctx, int *afu_irq) | ||
185 | { | ||
186 | if (*ctx == NULL || *afu_irq == 0) { | ||
187 | *afu_irq = 1; | ||
188 | *ctx = cxl_get_context(pdev); | ||
189 | } else { | ||
190 | (*afu_irq)++; | ||
191 | if (*afu_irq > cxl_get_max_irqs_per_process(pdev)) { | ||
192 | *ctx = list_next_entry(*ctx, extra_irq_contexts); | ||
193 | *afu_irq = 1; | ||
194 | } | ||
195 | } | ||
196 | return cxl_find_afu_irq(*ctx, *afu_irq); | ||
197 | } | ||
198 | /* Exported via cxl_base */ | ||
199 | 184 | ||
200 | int cxl_set_priv(struct cxl_context *ctx, void *priv) | 185 | int cxl_set_priv(struct cxl_context *ctx, void *priv) |
201 | { | 186 | { |