[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 11/26: Cherry-pick phy.h updates
From: |
Samuel Thibault |
Subject: |
[hurd] 11/26: Cherry-pick phy.h updates |
Date: |
Tue, 22 Sep 2015 21:51:47 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit 3e43fa22c2959a14ca71d37a6bb5e4548828db38
Author: Samuel Thibault <address@hidden>
Date: Fri Aug 28 19:56:01 2015 +0200
Cherry-pick phy.h updates
8e401eccd3a62fb57f117bb09b7c1fc70ab19e8c
a390d1f379cf821248b735f43d2e1147ebb8241d
a8729eb302a5b5da8b0b4d29582c42648a2e0f12
4dea547fef1ba23f9d23f5e7f5218187a7dcf1b3
fa94f6d93c5382810ff41f010f12ca8698fc775e
257184d7cc03519e1ea37b421879767b4194ce8c
---
libdde_linux26/contrib/include/linux/phy.h | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/libdde_linux26/contrib/include/linux/phy.h
b/libdde_linux26/contrib/include/linux/phy.h
index d7e54d9..b1368b8 100644
--- a/libdde_linux26/contrib/include/linux/phy.h
+++ b/libdde_linux26/contrib/include/linux/phy.h
@@ -79,7 +79,7 @@ typedef enum {
* Need to be a little smaller than phydev->dev.bus_id to leave room
* for the ":%02x"
*/
-#define MII_BUS_ID_SIZE (BUS_ID_SIZE - 3)
+#define MII_BUS_ID_SIZE (20 - 3)
/*
* The Bus class for PHYs. Devices which provide access to
@@ -315,8 +315,7 @@ struct phy_device {
/* Interrupt and Polling infrastructure */
struct work_struct phy_queue;
- struct work_struct state_queue;
- struct timer_list phy_timer;
+ struct delayed_work state_queue;
atomic_t irq_disable;
struct mutex lock;
@@ -389,6 +388,12 @@ struct phy_driver {
/* Enables or disables interrupts */
int (*config_intr)(struct phy_device *phydev);
+ /*
+ * Checks if the PHY generated an interrupt.
+ * For multi-PHY devices with shared PHY interrupt pin
+ */
+ int (*did_interrupt)(struct phy_device *phydev);
+
/* Clears up any memory if needed */
void (*remove)(struct phy_device *phydev);
@@ -402,7 +407,7 @@ struct phy_driver {
/* A Structure for boards to register fixups with the PHY Lib */
struct phy_fixup {
struct list_head list;
- char bus_id[BUS_ID_SIZE];
+ char bus_id[20];
u32 phy_uid;
u32 phy_uid_mask;
int (*run)(struct phy_device *phydev);
@@ -439,10 +444,16 @@ static inline int phy_write(struct phy_device *phydev,
u16 regnum, u16 val)
int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id);
struct phy_device* get_phy_device(struct mii_bus *bus, int addr);
+int phy_device_register(struct phy_device *phy);
int phy_clear_interrupt(struct phy_device *phydev);
int phy_config_interrupt(struct phy_device *phydev, u32 interrupts);
+int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
+ u32 flags, phy_interface_t interface);
struct phy_device * phy_attach(struct net_device *dev,
const char *bus_id, u32 flags, phy_interface_t interface);
+int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
+ void (*handler)(struct net_device *), u32 flags,
+ phy_interface_t interface);
struct phy_device * phy_connect(struct net_device *dev, const char *bus_id,
void (*handler)(struct net_device *), u32 flags,
phy_interface_t interface);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch dde updated (ebaa9e1 -> 8e94601), Samuel Thibault, 2015/09/22
- [hurd] 07/26: Fix build, Samuel Thibault, 2015/09/22
- [hurd] 02/26: commit 260d703adc5f275e3ba7ddff6e2e0217bc613b35, Samuel Thibault, 2015/09/22
- [hurd] 01/26: commit dc1f8bf68b311b1537cb65893430b6796118498a, Samuel Thibault, 2015/09/22
- [hurd] 10/26: Add ethoc.h, Samuel Thibault, 2015/09/22
- [hurd] 13/26: udpate ethtool.h, Samuel Thibault, 2015/09/22
- [hurd] 11/26: Cherry-pick phy.h updates,
Samuel Thibault <=
- [hurd] 05/26: commit 0c27922e4933ceb86644f4a9b1af212ffe5aad75, Samuel Thibault, 2015/09/22
- [hurd] 16/26: Add devres.c, Samuel Thibault, 2015/09/22
- [hurd] 18/26: commit d5a9e24afb4ab38110ebb777588ea0bd0eacbd0a, Samuel Thibault, 2015/09/22
- [hurd] 24/26: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2015/09/22
- [hurd] 08/26: commit 042a53a9e437feaf2230dd2cadcecfae9c7bfe05, Samuel Thibault, 2015/09/22
- [hurd] 22/26: Install missing queue.h, Samuel Thibault, 2015/09/22
- [hurd] 12/26: update pci_ids, Samuel Thibault, 2015/09/22
- [hurd] 17/26: Add pr_cont, Samuel Thibault, 2015/09/22
- [hurd] 26/26: Move files, Samuel Thibault, 2015/09/22
- [hurd] 14/26: update workqueue.h, Samuel Thibault, 2015/09/22