RE: DM 6446 - MontaVista Linux 4.0.0 with USB key board has some problem. Any Idea?
Venkatachala, Pl. try out the same scenario after applying the latest patches from the DaVinci update site. swami From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Venkatachala Upadhya [EMAIL PROTECTED] Sent: Friday, August 08, 2008 8:23 PM To: davinci-linux-open-source@linux.davincidsp.com Subject: DM 6446 - MontaVista Linux 4.0.0 with USB key board has some problem. Any Idea? Hello All, I am using DM6446 with MontaVista kernel, that come when we purchase the DM6446 EVM board. I am enabled USB key board and HID driver in the kernel. When I press capslock or NumLock key, the key board looses control. Means to say, I can not press any more key and I can not see the key pressed on the terminal. Any one has the idea why this happens? Do I need to upgrade the drivers? With best regards, Venkatachala Upadhya|Extn: 65395| -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 August, 2008 2:05 PM To: davinci-linux-open-source@linux.davincidsp.com Subject: [Patch]Davinci:Net: EMAC bug fix for speed/duplex setting From: Anant Gole <[EMAIL PROTECTED]> The module parameters for speed and duplex were not being honoured due to a coding bug resulting into auto negotiation all the time. Signed-off-by: Anant Gole <[EMAIL PROTECTED]> --- drivers/net/davinci_emac.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) Index: linux-davinci-2.6/drivers/net/davinci_emac.c === --- linux-davinci-2.6.orig/drivers/net/davinci_emac.c +++ linux-davinci-2.6/drivers/net/davinci_emac.c @@ -893,7 +893,7 @@ static void emac_set_phymode(struct emac priv->speed = EMAC_SPEED_AUTO; priv->duplex = EMAC_DUPLEX_UNKNOWN; phy_mode = NWAY_AUTO_ALL; - } else if (EMAC_SPEED_10MBPS == priv->speed) { + } else if (EMAC_SPEED_10MBPS == cfg_link_speed) { /* Check if bus speed allows 10mbps */ if (priv->mdio.mdio_bus_frequency <= EMAC_MIN_FREQUENCY_FOR_10MBPS) { @@ -905,14 +905,14 @@ static void emac_set_phymode(struct emac } } priv->speed = EMAC_SPEED_10MBPS; - if (EMAC_DUPLEX_HALF == priv->duplex) { + if (EMAC_DUPLEX_HALF == cfg_link_duplex) { phy_mode = NWAY_HD10; priv->duplex = EMAC_DUPLEX_HALF; } else { phy_mode = NWAY_FD10; priv->duplex = EMAC_DUPLEX_FULL; } - } else if (EMAC_SPEED_100MBPS == priv->speed) { + } else if (EMAC_SPEED_100MBPS == cfg_link_speed) { if (priv->mdio.mdio_bus_frequency <= EMAC_MIN_FREQUENCY_FOR_100MBPS) { if (netif_msg_drv(priv)) { @@ -924,17 +924,21 @@ static void emac_set_phymode(struct emac } } priv->speed = EMAC_SPEED_100MBPS; - if (EMAC_DUPLEX_HALF == priv->duplex) { + if (EMAC_DUPLEX_HALF == cfg_link_duplex) { phy_mode = NWAY_HD100; priv->duplex = EMAC_DUPLEX_HALF; } else { phy_mode = NWAY_FD100; priv->duplex = EMAC_DUPLEX_FULL; } - } else if (EMAC_SPEED_1GBPS == priv->speed) { + } else if (EMAC_SPEED_1GBPS == cfg_link_speed) { phy_mode = NWAY_AUTO_ALL; /* Temporarily */ + priv->speed = EMAC_SPEED_AUTO; + priv->duplex = EMAC_DUPLEX_UNKNOWN; } else { phy_mode = NWAY_AUTO_ALL; /* Fall back if wrong params set */ + priv->speed = EMAC_SPEED_AUTO; + priv->duplex = EMAC_DUPLEX_UNKNOWN; } emac_mdio_set_phy_mode(phy_mode); emac_update_phystatus(priv); ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails a
DM 6446 - MontaVista Linux 4.0.0 with USB key board has some problem. Any Idea?
Hello All, I am using DM6446 with MontaVista kernel, that come when we purchase the DM6446 EVM board. I am enabled USB key board and HID driver in the kernel. When I press capslock or NumLock key, the key board looses control. Means to say, I can not press any more key and I can not see the key pressed on the terminal. Any one has the idea why this happens? Do I need to upgrade the drivers? With best regards, Venkatachala Upadhya|Extn: 65395| -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 August, 2008 2:05 PM To: davinci-linux-open-source@linux.davincidsp.com Subject: [Patch]Davinci:Net: EMAC bug fix for speed/duplex setting From: Anant Gole <[EMAIL PROTECTED]> The module parameters for speed and duplex were not being honoured due to a coding bug resulting into auto negotiation all the time. Signed-off-by: Anant Gole <[EMAIL PROTECTED]> --- drivers/net/davinci_emac.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) Index: linux-davinci-2.6/drivers/net/davinci_emac.c === --- linux-davinci-2.6.orig/drivers/net/davinci_emac.c +++ linux-davinci-2.6/drivers/net/davinci_emac.c @@ -893,7 +893,7 @@ static void emac_set_phymode(struct emac priv->speed = EMAC_SPEED_AUTO; priv->duplex = EMAC_DUPLEX_UNKNOWN; phy_mode = NWAY_AUTO_ALL; - } else if (EMAC_SPEED_10MBPS == priv->speed) { + } else if (EMAC_SPEED_10MBPS == cfg_link_speed) { /* Check if bus speed allows 10mbps */ if (priv->mdio.mdio_bus_frequency <= EMAC_MIN_FREQUENCY_FOR_10MBPS) { @@ -905,14 +905,14 @@ static void emac_set_phymode(struct emac } } priv->speed = EMAC_SPEED_10MBPS; - if (EMAC_DUPLEX_HALF == priv->duplex) { + if (EMAC_DUPLEX_HALF == cfg_link_duplex) { phy_mode = NWAY_HD10; priv->duplex = EMAC_DUPLEX_HALF; } else { phy_mode = NWAY_FD10; priv->duplex = EMAC_DUPLEX_FULL; } - } else if (EMAC_SPEED_100MBPS == priv->speed) { + } else if (EMAC_SPEED_100MBPS == cfg_link_speed) { if (priv->mdio.mdio_bus_frequency <= EMAC_MIN_FREQUENCY_FOR_100MBPS) { if (netif_msg_drv(priv)) { @@ -924,17 +924,21 @@ static void emac_set_phymode(struct emac } } priv->speed = EMAC_SPEED_100MBPS; - if (EMAC_DUPLEX_HALF == priv->duplex) { + if (EMAC_DUPLEX_HALF == cfg_link_duplex) { phy_mode = NWAY_HD100; priv->duplex = EMAC_DUPLEX_HALF; } else { phy_mode = NWAY_FD100; priv->duplex = EMAC_DUPLEX_FULL; } - } else if (EMAC_SPEED_1GBPS == priv->speed) { + } else if (EMAC_SPEED_1GBPS == cfg_link_speed) { phy_mode = NWAY_AUTO_ALL; /* Temporarily */ + priv->speed = EMAC_SPEED_AUTO; + priv->duplex = EMAC_DUPLEX_UNKNOWN; } else { phy_mode = NWAY_AUTO_ALL; /* Fall back if wrong params set */ + priv->speed = EMAC_SPEED_AUTO; + priv->duplex = EMAC_DUPLEX_UNKNOWN; } emac_mdio_set_phy_mode(phy_mode); emac_update_phystatus(priv); ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/d