From: Stefan Roese Date: Tue, 26 Jul 2016 14:13:29 +0200 Subject: [U-Boot] [PATCH] i2c: intel_i2c: SMBus driver PCI addition (e.g. BayTrail) In-Reply-To: References: <20160628134435.30708-1-sr@denx.de> Message-ID: <266a4105-2330-13cd-e8f9-bcf907298f82@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 25.07.2016 04:07, Simon Glass wrote: > On 28 June 2016 at 07:44, Stefan Roese wrote: >> This patch adds support for the SMBus block read/write functionality. >> Other protocols like the SMBus quick command need to get added >> if this is needed. >> >> This patch also removed the SMBus related defines from the Ivybridge >> pch.h header. As they are integrated in this driver and should be >> used from here. This change is added in this patch to avoid compile >> breakage to keep the source git bisectable. >> >> Tested on a congatec BayTrail board to configure the SMSC2513 USB >> hub. >> >> Signed-off-by: Stefan Roese >> Cc: Bin Meng >> Cc: Simon Glass >> Cc: Heiko Schocher >> --- >> Simon, I'm not sure if this change breaks your Ivybridge targets >> using the probe part of this driver. Could you please let me >> know if this works? Or let me know what needs changes here? > > Yes this breaks booting on link. Something odd is going on because the > call to set up I2C in ivybridge's print_cpuinfo() returns a very > strange error -726376. Hmmm, very strange. > But I then enabled CONFIG_CMD_I2C and it boots. However 'i2c probe' > produces a lot of errors like this: > > ERROR: len=0 on read > smbus_block_read (107): dev=0x3b offs=0x0 len=0x1 > smbus_block_read (136): count=0 (len=1) A general question: Is the SMBus controller on Ivybridge also exported as PCI device? If yes, can't we just use the PCI code as done for BayTrail for this platform as well? And get rid of the platform specific stuff this way? Could you send me the output of "pci 0 long" on this platform? Thanks, Stefan