Thread (18 messages) 18 messages, 3 authors, 2022-01-12

Re: [PATCH v5 3/3] mmc: Add driver for LiteX's LiteSDCard interface

flat view

From: Andy Shevchenko <hidden>
Date: 2021-12-25 16:44:02
Also in: linux-mmc, lkml

On Wed, Dec 15, 2021 at 10:00 PM Gabriel Somlo [off-list ref] wrote:
LiteX (https://github.com/enjoy-digital/litex) is a SoC framework
that targets FPGAs. LiteSDCard is a small footprint, configurable
SDCard core commonly used in LiteX designs.

The driver was first written in May 2020 and has been maintained
cooperatively by the LiteX community. Thanks to all contributors!
...
quoted hunk ↗ jump to hunk
+       int ret;
+
+       host->irq = platform_get_irq_optional(host->dev, 0);
+       if (host->irq <= 0) {
+               dev_warn(dev, "Failed to get IRQ, using polling\n");
+               goto use_polling;
+       }
Same comment as per v3.

...
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
Why under ifdeffery?
quoted hunk ↗ jump to hunk
+       /* increase from default 32 on 64-bit-DMA capable architectures */
+       ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
+       if (ret)
+               goto err;
+#endif
-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help