greybus: Fix probing of gpbridge devices
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 12 May 2016 05:56:48 +0000 (11:26 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 10:39:10 +0000 (12:39 +0200)
commit501cc8bd09485624beaeecf476739400977489b4
tree198f5c58b9f770d3c7487d04415c630b63ce11c6
parente4e55360dd6b2263bbbc83bf0f04b0bd9bb1f8fd
greybus: Fix probing of gpbridge devices

The gpbridge core tries to match the driver's id-table against all
CPorts available within the bundle for which the gpbridge bus was
created. The gpbdev here is unique for a cport_desc and only a single
cport_desc->protocol_id should be matched with the driver's id-table.

Fix it.

Tested on EVT 1.5 with a special manifest for GP module, where multiple
CPorts are part of the same Bridged PHY bundle.

Fixes: 75223f666687 ("gpbridge: implement gpbridge "bus" logic")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpbridge.c