From: Paul Walmsley <paul@pwsan.com> To: "Mark A. Greer" <mgreer@animalcreek.com> Cc: khilman@ti.com, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Ilya Yanok <yanok@emcraft.com> Subject: Re: [PATCH 2/2] arm: omap3: am35x: Disable hlt when using Davinci EMAC Date: Thu, 19 Jul 2012 16:59:06 -0600 (MDT) [thread overview] Message-ID: <alpine.DEB.2.00.1207191649040.14390@utopia.booyaka.com> (raw) In-Reply-To: <20120719182602.GB24076@animalcreek.com> + Ilya Hi Mark Maybe try something like this on top of the patch that disables the MPU DPLL autoidle? I don't know what am35xx_enable_emac_int() is supposed to do. It seems strange to clear the interrupt status bits when one is supposed to enable the interrupts. Maybe Ilya can shed some light on it. - Paul --- arch/arm/mach-omap2/am35xx-emac.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-omap2/am35xx-emac.c b/arch/arm/mach-omap2/am35xx-emac.c index 2c90ac6..231190e 100644 --- a/arch/arm/mach-omap2/am35xx-emac.c +++ b/arch/arm/mach-omap2/am35xx-emac.c @@ -23,23 +23,17 @@ #include "control.h" #include "am35xx-emac.h" -static void am35xx_enable_emac_int(void) -{ - u32 v; - - v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); - v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR | - AM35XX_CPGMAC_C0_MISC_PULSE_CLR | AM35XX_CPGMAC_C0_RX_THRESH_CLR); - omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); - omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ -} - static void am35xx_disable_emac_int(void) { u32 v; - v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); - v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR); + /* XXX What about the misc interrupts? */ + /* + * XXX MDIO driver should handle its interrupts through the EMAC + * driver + */ + v = (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR | + AM35XX_CPGMAC_C0_MISC_PULSE_CLR | AM35XX_CPGMAC_C0_RX_THRESH_CLR); omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ } @@ -51,7 +45,6 @@ static struct emac_platform_data am35xx_emac_pdata = { .ctrl_ram_size = AM35XX_EMAC_CNTRL_RAM_SIZE, .hw_ram_addr = AM35XX_EMAC_HW_RAM_ADDR, .version = EMAC_VERSION_2, - .interrupt_enable = am35xx_enable_emac_int, .interrupt_disable = am35xx_disable_emac_int, }; -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: paul@pwsan.com (Paul Walmsley) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] arm: omap3: am35x: Disable hlt when using Davinci EMAC Date: Thu, 19 Jul 2012 16:59:06 -0600 (MDT) [thread overview] Message-ID: <alpine.DEB.2.00.1207191649040.14390@utopia.booyaka.com> (raw) In-Reply-To: <20120719182602.GB24076@animalcreek.com> + Ilya Hi Mark Maybe try something like this on top of the patch that disables the MPU DPLL autoidle? I don't know what am35xx_enable_emac_int() is supposed to do. It seems strange to clear the interrupt status bits when one is supposed to enable the interrupts. Maybe Ilya can shed some light on it. - Paul --- arch/arm/mach-omap2/am35xx-emac.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-omap2/am35xx-emac.c b/arch/arm/mach-omap2/am35xx-emac.c index 2c90ac6..231190e 100644 --- a/arch/arm/mach-omap2/am35xx-emac.c +++ b/arch/arm/mach-omap2/am35xx-emac.c @@ -23,23 +23,17 @@ #include "control.h" #include "am35xx-emac.h" -static void am35xx_enable_emac_int(void) -{ - u32 v; - - v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); - v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR | - AM35XX_CPGMAC_C0_MISC_PULSE_CLR | AM35XX_CPGMAC_C0_RX_THRESH_CLR); - omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); - omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ -} - static void am35xx_disable_emac_int(void) { u32 v; - v = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); - v |= (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR); + /* XXX What about the misc interrupts? */ + /* + * XXX MDIO driver should handle its interrupts through the EMAC + * driver + */ + v = (AM35XX_CPGMAC_C0_RX_PULSE_CLR | AM35XX_CPGMAC_C0_TX_PULSE_CLR | + AM35XX_CPGMAC_C0_MISC_PULSE_CLR | AM35XX_CPGMAC_C0_RX_THRESH_CLR); omap_ctrl_writel(v, AM35XX_CONTROL_LVL_INTR_CLEAR); omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR); /* OCP barrier */ } @@ -51,7 +45,6 @@ static struct emac_platform_data am35xx_emac_pdata = { .ctrl_ram_size = AM35XX_EMAC_CNTRL_RAM_SIZE, .hw_ram_addr = AM35XX_EMAC_HW_RAM_ADDR, .version = EMAC_VERSION_2, - .interrupt_enable = am35xx_enable_emac_int, .interrupt_disable = am35xx_disable_emac_int, }; -- 1.7.10.4
next prev parent reply other threads:[~2012-07-19 22:59 UTC|newest] Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-05-11 21:12 [PATCH 0/2] arm: omap3: am35x: Convert emac to hwmod & disable hlt when open Mark A. Greer 2012-05-11 21:12 ` Mark A. Greer 2012-05-11 21:12 ` [PATCH 1/2] arm: omap3: am35x: Add Davinci EMAC/MDIO hwmod support Mark A. Greer 2012-05-11 21:12 ` Mark A. Greer 2012-05-11 21:12 ` [PATCH 2/2] arm: omap3: am35x: Disable hlt when using Davinci EMAC Mark A. Greer 2012-05-11 21:12 ` Mark A. Greer 2012-05-14 8:20 ` Igor Grinberg 2012-05-14 8:20 ` Igor Grinberg 2012-05-14 16:54 ` Mark A. Greer 2012-05-14 16:54 ` Mark A. Greer 2012-05-14 21:32 ` Kevin Hilman 2012-05-14 21:32 ` Kevin Hilman 2012-05-15 12:42 ` Igor Grinberg 2012-05-15 12:42 ` Igor Grinberg 2012-05-15 16:14 ` Mark A. Greer 2012-05-15 16:14 ` Mark A. Greer 2012-07-18 3:54 ` Paul Walmsley 2012-07-18 3:54 ` Paul Walmsley 2012-07-18 21:32 ` Mark A. Greer 2012-07-18 21:32 ` Mark A. Greer 2012-07-18 23:25 ` Paul Walmsley 2012-07-18 23:25 ` Paul Walmsley 2012-07-19 18:26 ` Mark A. Greer 2012-07-19 18:26 ` Mark A. Greer 2012-07-19 19:19 ` Paul Walmsley 2012-07-19 19:19 ` Paul Walmsley 2012-07-19 20:20 ` Mark A. Greer 2012-07-19 20:20 ` Mark A. Greer 2012-07-19 22:59 ` Paul Walmsley [this message] 2012-07-19 22:59 ` Paul Walmsley 2012-07-20 21:41 ` Mark A. Greer 2012-07-20 21:41 ` Mark A. Greer 2012-05-11 21:18 ` [RFC] net: ethernet: davinci_emac: add pm_runtime support Mark A. Greer 2012-05-14 23:28 ` [PATCH 0/2] arm: omap3: am35x: Convert emac to hwmod & disable hlt when open Kevin Hilman 2012-05-14 23:28 ` Kevin Hilman 2012-05-15 12:20 ` Sekhar Nori 2012-05-15 12:20 ` Sekhar Nori
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=alpine.DEB.2.00.1207191649040.14390@utopia.booyaka.com \ --to=paul@pwsan.com \ --cc=khilman@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=mgreer@animalcreek.com \ --cc=yanok@emcraft.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.