* [lm-sensors] code question on pc87360 module
@ 2005-06-26 2:21 Jim Cromie
2005-06-26 10:24 ` Jean Delvare
2005-06-27 15:37 ` Jim Cromie
0 siblings, 2 replies; 3+ messages in thread
From: Jim Cromie @ 2005-06-26 2:21 UTC (permalink / raw)
To: lm-sensors
folks,
Im working on a gpio driver for pc87366, and having trouble
writing to the pins - reading is fine - im seeing what I expect,
and can read results of touching pins to ground (theyre pulled hi when open)
So im trying to grok what Im missing by looking at pc87360,
particularly, I was looking for ioremap() calls that might explain the
no-write
to 0x6600-2f (SIO writes work).
soekris:~# modprobe pc87360
pc87360: Device 0x09 not activated
pc87360 0-6620: VLM conversion set to1s period, 160us delay
soekris:~#
soekris:~# more /proc/ioports |grep pc87360
6620-662f : pc87360
6640-664f : pc87360
the last 2 lines arent there until modprobed, but I cant find where/how
they're
inserted - I grepped all i2c code for an ioremap, theyre all in i2c/busses/,
none of which appear to match these modules, or the objects which
comprise them.
i2c_sensor 4480 1 pc87360
i2c_isa 2304 0
i2c_core 23696 3 pc87360,i2c_sensor,i2c_isa
anybody got a clue for the needy ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] code question on pc87360 module
2005-06-26 2:21 [lm-sensors] code question on pc87360 module Jim Cromie
@ 2005-06-26 10:24 ` Jean Delvare
2005-06-27 15:37 ` Jim Cromie
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2005-06-26 10:24 UTC (permalink / raw)
To: lm-sensors
Hi Jim,
> soekris:~# more /proc/ioports |grep pc87360
> 6620-662f : pc87360
> 6640-664f : pc87360
>
> the last 2 lines arent there until modprobed, but I cant find
> where/how they're inserted - I grepped all i2c code for an
> ioremap, they're all in i2c/busses/, none of which appear to
> match these modules, or the objects which comprise them.
>
> i2c_sensor 4480 1 pc87360
> i2c_isa 2304 0
> i2c_core 23696 3 pc87360,i2c_sensor,i2c_isa
>
> anybody got a clue for the needy ?
Search for request_region()/release_region() in pc87360.c.
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] code question on pc87360 module
2005-06-26 2:21 [lm-sensors] code question on pc87360 module Jim Cromie
2005-06-26 10:24 ` Jean Delvare
@ 2005-06-27 15:37 ` Jim Cromie
1 sibling, 0 replies; 3+ messages in thread
From: Jim Cromie @ 2005-06-27 15:37 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
>Hi Jim,
>
>
>
>>soekris:~# more /proc/ioports |grep pc87360
>>6620-662f : pc87360
>>6640-664f : pc87360
>>
>>the last 2 lines arent there until modprobed, but I cant find
>>where/how they're inserted - I grepped all i2c code for an
>>ioremap, they're all in i2c/busses/, none of which appear to
>>match these modules, or the objects which comprise them.
>>
>>i2c_sensor 4480 1 pc87360
>>i2c_isa 2304 0
>>i2c_core 23696 3 pc87360,i2c_sensor,i2c_isa
>>
>>anybody got a clue for the needy ?
>>
>>
>
>Search for request_region()/release_region() in pc87360.c.
>
>
>
thanks.
Got it working. Now writes pins (problem was not reservation related)
Patch-set attached, comments welcome.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpio-patches-E.tgz
Type: application/x-gzip
Size: 8563 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050627/38f2b32d/gpio-patches-E.tgz
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-27 15:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-26 2:21 [lm-sensors] code question on pc87360 module Jim Cromie
2005-06-26 10:24 ` Jean Delvare
2005-06-27 15:37 ` Jim Cromie
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.