Commit 02245b60 authored by Andrey Shvetsov's avatar Andrey Shvetsov Committed by Greg Kroah-Hartman

staging: most: hdm-dim2: remove tracing of mac address

This patch removes tracing of the MAC address from the DIM2 HDM as it is
already done in the networking AIM.
Signed-off-by: default avatarAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f28e6cd3
...@@ -306,14 +306,11 @@ static int deliver_netinfo_thread(void *data) ...@@ -306,14 +306,11 @@ static int deliver_netinfo_thread(void *data)
static void retrieve_netinfo(struct dim2_hdm *dev, struct mbo *mbo) static void retrieve_netinfo(struct dim2_hdm *dev, struct mbo *mbo)
{ {
u8 *data = mbo->virt_address; u8 *data = mbo->virt_address;
u8 *mac = dev->mac_addrs;
pr_info("Node Address: 0x%03x\n", (u16)data[16] << 8 | data[17]); pr_info("Node Address: 0x%03x\n", (u16)data[16] << 8 | data[17]);
dev->link_state = data[18]; dev->link_state = data[18];
pr_info("NIState: %d\n", dev->link_state); pr_info("NIState: %d\n", dev->link_state);
memcpy(mac, data + 19, 6); memcpy(dev->mac_addrs, data + 19, 6);
pr_info("MAC address: %02X:%02X:%02X:%02X:%02X:%02X\n",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
dev->deliver_netinfo++; dev->deliver_netinfo++;
wake_up_interruptible(&dev->netinfo_waitq); wake_up_interruptible(&dev->netinfo_waitq);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment