phy: add phy_get_bus_width()/phy_set_bus_width() calls
authorMatt Porter <mporter@linaro.org>
Thu, 19 Dec 2013 14:23:02 +0000 (09:23 -0500)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:45 +0000 (11:47 +0900)
commit0b7f299a8812a1cedb5bf1d6e4f01593201b8236
tree533b68146842af6d905cd6aeafeca38a16b19506
parent4930f33430815bb249198c5d6c9af119ee3f5aac
phy: add phy_get_bus_width()/phy_set_bus_width() calls

This adds a pair of APIs that allows the generic PHY subsystem to
provide information on the PHY bus width. The PHY provider driver may
use phy_set_bus_width() to set the bus width that the PHY supports.
The controller driver may then use phy_get_bus_width() to fetch the
PHY bus width in order to properly configure the controller.

Signed-off-by: Matt Porter <mporter@linaro.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
[backport from upstream commit 8feed347d33bb630d426b9f2ed88cbdf9795f624]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I327ac9c7fb50d39e0351c15ea72b3748957ea03d
include/linux/phy/phy.h