Re: [PATCH 10/12] pcie: qcom: add Force GEN1 support

From: Bjorn Helgaas
Date: Fri Mar 20 2020 - 15:38:00 EST


On Fri, Mar 20, 2020 at 07:34:52PM +0100, Ansuel Smith wrote:
> From: Sham Muthayyan <smuthayy@xxxxxxxxxxxxxx>
>
> Add Force GEN1 support needed in some ipq806x board
> that needs to limit some pcie line to gen1 for some
> hardware limitation

Usual commit log comments.

> + uint32_t force_gen1;

unsigned int force_gen1 : 1

> + of_property_read_u32(np, "force_gen1", &force_gen1);
> + pcie->force_gen1 = force_gen1;

I think there's a more or less standard property you can use for this
instead of inventing a new one specific to this device.

Documentation/devicetree/bindings/pci/pci.txt:
"max-link-speed"