OSDN Git Service

phy: cadence-torrent: Check total lane count for all subnodes is within limit
authorSwapnil Jakhade <sjakhade@cadence.com>
Wed, 16 Sep 2020 18:28:29 +0000 (20:28 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 18 Sep 2020 05:04:47 +0000 (10:34 +0530)
commitd09945eacad0ef16ca8a1ca45be6a25e066e85a5
tree0755b91ebe36d80e654d8612850ff6d1ebed236b
parent2e70c84995b232850419e081d9668467dbbe1fe3
phy: cadence-torrent: Check total lane count for all subnodes is within limit

Add checking if total number of lanes for all subnodes is not greater than
number of lanes supported by PHY.

Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Link: https://lore.kernel.org/r/1600280911-9214-6-git-send-email-sjakhade@cadence.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-torrent.c