UPSTREAM: of/pci: Add helper function to parse max-link-speed from dt
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 18 Oct 2016 01:45:09 +0000 (09:45 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 23 Nov 2016 09:33:37 +0000 (17:33 +0800)
commitd776fdb776681cd013be513ba70ffa51d934f19d
tree7d13996f294834a17864631f20c64d32c1e94d34
parent2928d69ec4afb9d37f0d34ef335dd8c89a7d5df6
UPSTREAM: of/pci: Add helper function to parse max-link-speed from dt

This new helper function could be used by host drivers to
get the limitaion of max link speed provided by dt. If the
property isn't assigned or is invalid, it will return -EINVAL
to the caller.

Change-Id: I430b05fa5fd25fe17cf1bd8b1226e460eb7dd14b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(am from git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
commit 9a1dc3891255afd836f355b117fd6b975d0b1eb2)
drivers/of/of_pci.c
include/linux/of_pci.h