From: Steve Sakoman <sakoman@gmail.com> To: Keerthy <j-keerthy@ti.com> Cc: lm-sensors@lm-sensors.org, guenter.roeck@ericsson.com, mikko.k.ylinen@nokia.com, amit.kucheria@canonical.com, linux-omap@vger.kernel.org, Samuel Ortiz <sameo@linux.intel.com> Subject: Re: [PATCH 0/2 v5] twl4030-madc driver Date: Tue, 3 May 2011 08:14:10 -0700 [thread overview] Message-ID: <BANLkTimc6uz353DDb9Ent6s6WjfY7f-xuA@mail.gmail.com> (raw) In-Reply-To: <20110302101512.GC16181@sortiz-mobl> On Wed, Mar 2, 2011 at 2:15 AM, Samuel Ortiz <sameo@linux.intel.com> wrote: > Hi Keerthy, > > On Tue, Mar 01, 2011 at 07:12:06PM +0530, Keerthy wrote: >> MADC(Monitoring ADC) driver enables monitoring analog signals using >> analog-to-digital conversion (ADC) on the input source. >> The previous discussion concluded in keeping the generic ADC >> functionality and the hwmon separate. The discussion can be found here: >> >> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg41805.html > Thanks a lot, I applied those 2 patches. I'm attempting to use this drive on the Overo platform with 2.6.39-rc5. Other than enabling the module with CONFIG_SENSORS_TWL4030_MADC=m are there any board file modifications required other than the below? I have setup the platform data for the twl4030 madc driver: diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 112dfc9..05dd3eb 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -637,10 +637,15 @@ static struct twl4030_codec_data overo_codec_data = { .audio = &overo_audio_data, }; +static struct twl4030_madc_platform_data overo_madc_data = { + .irq_line = 1, +}; + static struct twl4030_platform_data overo_twldata = { .irq_base = TWL4030_IRQ_BASE, .irq_end = TWL4030_IRQ_END, .gpio = &overo_gpio_data, + .madc = &overo_madc_data, .usb = &overo_usb_data, .codec = &overo_codec_data, .vmmc1 = &overo_vmmc1, However, I am not seeing the sysfs entry created: # modprobe twl4030-madc-hwmon twl4030_madc_hwmon_init entry # lsmod Module Size Used by twl4030_madc_hwmon 2594 0 ipv6 224256 16 libertas_sdio 14867 0 libertas 92429 1 libertas_sdio cfg80211 144256 1 libertas lib80211 5027 1 libertas firmware_class 5859 2 libertas_sdio,libertas # ls /sys/class/hwmon/ # I added a couple of printk's to the driver at the entry points of init and probe, and as you can see above the init message is printed, but not the probe. Am I missing something really obvious here? Steve
WARNING: multiple messages have this Message-ID (diff)
From: Steve Sakoman <sakoman@gmail.com> To: Keerthy <j-keerthy@ti.com> Cc: lm-sensors@lm-sensors.org, guenter.roeck@ericsson.com, mikko.k.ylinen@nokia.com, amit.kucheria@canonical.com, linux-omap@vger.kernel.org, Samuel Ortiz <sameo@linux.intel.com> Subject: Re: [lm-sensors] [PATCH 0/2 v5] twl4030-madc driver Date: Tue, 03 May 2011 15:14:10 +0000 [thread overview] Message-ID: <BANLkTimc6uz353DDb9Ent6s6WjfY7f-xuA@mail.gmail.com> (raw) In-Reply-To: <20110302101512.GC16181@sortiz-mobl> On Wed, Mar 2, 2011 at 2:15 AM, Samuel Ortiz <sameo@linux.intel.com> wrote: > Hi Keerthy, > > On Tue, Mar 01, 2011 at 07:12:06PM +0530, Keerthy wrote: >> MADC(Monitoring ADC) driver enables monitoring analog signals using >> analog-to-digital conversion (ADC) on the input source. >> The previous discussion concluded in keeping the generic ADC >> functionality and the hwmon separate. The discussion can be found here: >> >> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg41805.html > Thanks a lot, I applied those 2 patches. I'm attempting to use this drive on the Overo platform with 2.6.39-rc5. Other than enabling the module with CONFIG_SENSORS_TWL4030_MADC=m are there any board file modifications required other than the below? I have setup the platform data for the twl4030 madc driver: diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 112dfc9..05dd3eb 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -637,10 +637,15 @@ static struct twl4030_codec_data overo_codec_data = { .audio = &overo_audio_data, }; +static struct twl4030_madc_platform_data overo_madc_data = { + .irq_line = 1, +}; + static struct twl4030_platform_data overo_twldata = { .irq_base = TWL4030_IRQ_BASE, .irq_end = TWL4030_IRQ_END, .gpio = &overo_gpio_data, + .madc = &overo_madc_data, .usb = &overo_usb_data, .codec = &overo_codec_data, .vmmc1 = &overo_vmmc1, However, I am not seeing the sysfs entry created: # modprobe twl4030-madc-hwmon twl4030_madc_hwmon_init entry # lsmod Module Size Used by twl4030_madc_hwmon 2594 0 ipv6 224256 16 libertas_sdio 14867 0 libertas 92429 1 libertas_sdio cfg80211 144256 1 libertas lib80211 5027 1 libertas firmware_class 5859 2 libertas_sdio,libertas # ls /sys/class/hwmon/ # I added a couple of printk's to the driver at the entry points of init and probe, and as you can see above the init message is printed, but not the probe. Am I missing something really obvious here? Steve _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2011-05-03 15:14 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-01 13:42 [PATCH 0/2 v5] twl4030-madc driver Keerthy 2011-03-01 13:54 ` [lm-sensors] " Keerthy 2011-03-02 10:15 ` Samuel Ortiz 2011-03-02 10:15 ` [lm-sensors] " Samuel Ortiz 2011-05-03 15:14 ` Steve Sakoman [this message] 2011-05-03 15:14 ` Steve Sakoman 2011-05-03 19:49 ` J, KEERTHY 2011-05-03 19:51 ` [lm-sensors] " J, KEERTHY 2011-05-04 4:11 ` Steve Sakoman 2011-05-04 4:11 ` [lm-sensors] " Steve Sakoman 2011-05-04 4:23 ` J, KEERTHY 2011-05-04 4:35 ` [lm-sensors] " J, KEERTHY 2011-05-04 14:31 ` Steve Sakoman 2011-05-04 14:31 ` [lm-sensors] " Steve Sakoman
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=BANLkTimc6uz353DDb9Ent6s6WjfY7f-xuA@mail.gmail.com \ --to=sakoman@gmail.com \ --cc=amit.kucheria@canonical.com \ --cc=guenter.roeck@ericsson.com \ --cc=j-keerthy@ti.com \ --cc=linux-omap@vger.kernel.org \ --cc=lm-sensors@lm-sensors.org \ --cc=mikko.k.ylinen@nokia.com \ --cc=sameo@linux.intel.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.