mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Karel Kulhavy <clock@twibright.com>
To: "Piszcz, Justin Michael" <justin.piszcz@mitretek.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: /proc/bus/i2c is missing
Date: Fri, 12 Nov 2004 14:37:21 +0000	[thread overview]
Message-ID: <20041112143721.GA19867@beton.cybernet.src> (raw)
In-Reply-To: <2E314DE03538984BA5634F12115B3A4E01BC4070@email1.mitretek.org>

On Fri, Nov 12, 2004 at 09:22:46AM -0500, Piszcz, Justin Michael wrote:
> You need the core i2c modules loaded.

I have "<*> I2C support" and "<*> I2C device interface" switched on in make
menuconfig (non-modular). I skimmed through the whole I2C support submenu
and didn't find any i2c core. Just i2c core debugging messages, but it isn't
probably what you mean.

Which option in make menuconfig is i2c_core?

And btw I found this:
root@oberon:/usr/src/linux-2.6.8.1-patched/drivers/i2c/busses# find /sys/bus/i2c/sys/bus/i2c
/sys/bus/i2c/drivers
/sys/bus/i2c/drivers/pcf8591
/sys/bus/i2c/drivers/lm85
/sys/bus/i2c/drivers/lm85/0-002e
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/0-0052
/sys/bus/i2c/drivers/eeprom/0-0050
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter
/sys/bus/i2c/devices
/sys/bus/i2c/devices/0-002e
/sys/bus/i2c/devices/0-0052
/sys/bus/i2c/devices/0-0050

Isn't it what the documentation talks about as /proc/bus/i2c? Or is it
something different?

Cl<
> 
> $ lsmod
> Module                  Size  Used by
> adm1021                12092  0
> i2c_piix4               5648  0
> i2c_sensor              2912  1 adm1021
> i2c_dev                 7776  0
> i2c_core               19312  4 adm1021,i2c_piix4,i2c_sensor,i2c_dev
> 
> 
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Karel Kulhavy
> Sent: Friday, November 12, 2004 9:12 AM
> To: linux-kernel@vger.kernel.org
> Subject: /proc/bus/i2c is missing
> 
> Hello
> 
> linux 2.6.8.1
> 
> I insmoded i2c-parport and pcf8591 modules and i2c-1 appeared in my /dev
> (previously, only i2c-0 was there):
> 
> 	clock@oberon:~$ ls /dev/i2* 
> 	/dev/i2c-0  /dev/i2c-1
> 	
> 	/dev/i2c:
> 	0  1
> 
> /usr/src/linux/Documentation/i2c says "You can
> examine /proc/bus/i2c to see what number corresponds to which adapter."
> I don't have any /proc/i2c:
> 
> 	clock@oberon:~$ ls /proc/i2c
> 	ls: /proc/i2c: No such file or directory
> 
> However, I have /proc:
> 	clock@oberon:~$ ls /proc
> 	             devices      mtrr
> 	             diskstats    net
> 	             dma          partitions
> 	             driver       pci
> 	             execdomains  scsi
> 	             filesystems  self
> 	             fs           slabinfo
> 	             ide          stat
> 	             interrupts   swaps
> 	  [...]      iomem        sys
> 	             ioports      sysrq-trigger
> 	             irq          sysvipc
> 	             kallsyms     tty
> 	             kcore        uptime
> 	             kmsg         version
> 	             loadavg      vmstat
> 	             locks
> 	  buddyinfo  mdstat
> 	  bus        meminfo
> 	  cmdline    misc
> 	  config.gz  modules
> 	  cpuinfo    mounts
> 
> How can I make /proc/i2c appear?
> 
> Cl<
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2004-11-12 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-12 14:22 Piszcz, Justin Michael
2004-11-12 14:37 ` Karel Kulhavy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-12 14:41 Piszcz, Justin Michael
2004-11-12 14:54 ` Karel Kulhavy
2004-11-12 14:12 Karel Kulhavy
2004-11-12 19:14 ` Greg KH

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=20041112143721.GA19867@beton.cybernet.src \
    --to=clock@twibright.com \
    --cc=justin.piszcz@mitretek.org \
    --cc=linux-kernel@vger.kernel.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®