mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-03 11:12:33 +00:00
Use dma_set_mask_and_coherent() instead of unrolling it with some dma_set_mask()+dma_set_coherent_mask(). Moreover, as stated in [1], dma_set_mask() with a 64-bit mask will never fail if dev->dma_mask is non-NULL. So, if it fails, the 32 bits case will also fail for the same reason. That said, 'pci_using_dac' can only be 1 after a successful dma_set_mask_and_coherent(). Simplify code and remove some dead code accordingly. [1]: https://lkml.org/lkml/2021/6/7/398 Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| common.h | ||
| cphy.h | ||
| cpl5_cmd.h | ||
| cxgb2.c | ||
| elmer0.h | ||
| espi.c | ||
| espi.h | ||
| fpga_defs.h | ||
| gmac.h | ||
| Makefile | ||
| mv88e1xxx.c | ||
| mv88e1xxx.h | ||
| mv88x201x.c | ||
| my3126.c | ||
| pm3393.c | ||
| regs.h | ||
| sge.c | ||
| sge.h | ||
| subr.c | ||
| suni1x10gexp_regs.h | ||
| tp.c | ||
| tp.h | ||
| vsc7326_reg.h | ||
| vsc7326.c | ||