]> www.infradead.org Git - users/hch/misc.git/commit
PCI: rockchip-ep: Use a macro to define EP controller .align feature
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 17 Oct 2024 01:58:37 +0000 (10:58 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Nov 2024 19:18:35 +0000 (13:18 -0600)
commit739e25f51aedaebf20496fbc99c6ef43fc6d6ca1
tree6192fb2a55e13ce07b3cf3faf5bef1b5ee0e5193
parent64f093c4d99d797b68b407a9d8767aadc3e3ea7a
PCI: rockchip-ep: Use a macro to define EP controller .align feature

Introduce the macro ROCKCHIP_PCIE_AT_SIZE_ALIGN to initialize the .align
field of the controller epc_features structure to 256. This is defined
as a shift using the macro ROCKCHIP_PCIE_AT_MIN_NUM_BITS (to avoid
using the "magic" value 8 directly).

Link: https://lore.kernel.org/r/20241017015849.190271-3-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/pcie-rockchip-ep.c
drivers/pci/controller/pcie-rockchip.h