diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-27 13:24:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-27 13:24:17 -0400 |
commit | fefb82756e9fd89d0c0d5983e056df81d51eb075 (patch) | |
tree | f68d8d894d915fa64502bad8a0b83c811e2ff2e2 /include | |
parent | e9dba837640d960f56bef22ff08611955ff8a5b4 (diff) | |
parent | 34f972d6156fe9eea2ab7bb418c71f9d1d5c8e7b (diff) |
Merge tag 'usb-3.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fixes from Greg KH:
"Here are a number of USB fixes for 3.15-rc3. The majority are gadget
fixes, as we didn't get any of those in for 3.15-rc2. The others are
all over the place, and there's a number of new device id addtions as
well."
* tag 'usb-3.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (35 commits)
usb: option: add and update a number of CMOTech devices
usb: option: add Alcatel L800MA
usb: option: add Olivetti Olicard 500
usb: qcserial: add Sierra Wireless MC7305/MC7355
usb: qcserial: add Sierra Wireless MC73xx
usb: qcserial: add Sierra Wireless EM7355
USB: io_ti: fix firmware download on big-endian machines
usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
xhci: extend quirk for Renesas cards
xhci: Switch Intel Lynx Point ports to EHCI on shutdown.
usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb
phy: core: make NULL a valid phy reference if !CONFIG_GENERIC_PHY
phy: fix kernel oops in phy_lookup()
phy: restore OMAP_CONTROL_PHY dependencies
phy: exynos: fix building as a module
USB: serial: fix sysfs-attribute removal deadlock
usb: wusbcore: fix panic in wusbhc_chid_set
usb: wusbcore: convert nested lock to use spin_lock instead of spin_lock_irq
uwb: don't call spin_unlock_irq in a USB completion handler
usb: chipidea: coordinate usb phy initialization for different phy type
...
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy/phy.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index e2f5ca96cddc..2760744cb2a7 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h | |||
@@ -174,21 +174,29 @@ void devm_of_phy_provider_unregister(struct device *dev, | |||
174 | #else | 174 | #else |
175 | static inline int phy_pm_runtime_get(struct phy *phy) | 175 | static inline int phy_pm_runtime_get(struct phy *phy) |
176 | { | 176 | { |
177 | if (!phy) | ||
178 | return 0; | ||
177 | return -ENOSYS; | 179 | return -ENOSYS; |
178 | } | 180 | } |
179 | 181 | ||
180 | static inline int phy_pm_runtime_get_sync(struct phy *phy) | 182 | static inline int phy_pm_runtime_get_sync(struct phy *phy) |
181 | { | 183 | { |
184 | if (!phy) | ||
185 | return 0; | ||
182 | return -ENOSYS; | 186 | return -ENOSYS; |
183 | } | 187 | } |
184 | 188 | ||
185 | static inline int phy_pm_runtime_put(struct phy *phy) | 189 | static inline int phy_pm_runtime_put(struct phy *phy) |
186 | { | 190 | { |
191 | if (!phy) | ||
192 | return 0; | ||
187 | return -ENOSYS; | 193 | return -ENOSYS; |
188 | } | 194 | } |
189 | 195 | ||
190 | static inline int phy_pm_runtime_put_sync(struct phy *phy) | 196 | static inline int phy_pm_runtime_put_sync(struct phy *phy) |
191 | { | 197 | { |
198 | if (!phy) | ||
199 | return 0; | ||
192 | return -ENOSYS; | 200 | return -ENOSYS; |
193 | } | 201 | } |
194 | 202 | ||
@@ -204,21 +212,29 @@ static inline void phy_pm_runtime_forbid(struct phy *phy) | |||
204 | 212 | ||
205 | static inline int phy_init(struct phy *phy) | 213 | static inline int phy_init(struct phy *phy) |
206 | { | 214 | { |
215 | if (!phy) | ||
216 | return 0; | ||
207 | return -ENOSYS; | 217 | return -ENOSYS; |
208 | } | 218 | } |
209 | 219 | ||
210 | static inline int phy_exit(struct phy *phy) | 220 | static inline int phy_exit(struct phy *phy) |
211 | { | 221 | { |
222 | if (!phy) | ||
223 | return 0; | ||
212 | return -ENOSYS; | 224 | return -ENOSYS; |
213 | } | 225 | } |
214 | 226 | ||
215 | static inline int phy_power_on(struct phy *phy) | 227 | static inline int phy_power_on(struct phy *phy) |
216 | { | 228 | { |
229 | if (!phy) | ||
230 | return 0; | ||
217 | return -ENOSYS; | 231 | return -ENOSYS; |
218 | } | 232 | } |
219 | 233 | ||
220 | static inline int phy_power_off(struct phy *phy) | 234 | static inline int phy_power_off(struct phy *phy) |
221 | { | 235 | { |
236 | if (!phy) | ||
237 | return 0; | ||
222 | return -ENOSYS; | 238 | return -ENOSYS; |
223 | } | 239 | } |
224 | 240 | ||