Skip to content

Commit a2069aa

Browse files
atenartherbertx
authored andcommitted
crypto: inside-secure - do not parse the dma mask from dt
Remove the dma mask parsing from dt as this should not be encoded into the engine device tree node. Keep the fallback value for now, which should work for the boards already supported upstream. Signed-off-by: Antoine Tenart <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 440bf34 commit a2069aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/crypto/inside-secure/safexcel.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,6 @@ static int safexcel_probe(struct platform_device *pdev)
773773
struct device *dev = &pdev->dev;
774774
struct resource *res;
775775
struct safexcel_crypto_priv *priv;
776-
u64 dma_mask;
777776
int i, ret;
778777

779778
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
@@ -802,9 +801,7 @@ static int safexcel_probe(struct platform_device *pdev)
802801
return -EPROBE_DEFER;
803802
}
804803

805-
if (of_property_read_u64(dev->of_node, "dma-mask", &dma_mask))
806-
dma_mask = DMA_BIT_MASK(64);
807-
ret = dma_set_mask_and_coherent(dev, dma_mask);
804+
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
808805
if (ret)
809806
goto err_clk;
810807

0 commit comments

Comments
 (0)