linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27
@ 2008-10-13 12:01 Joakim Tjernlund
  2008-10-13 15:49 ` Joakim Tjernlund
  2008-10-13 16:31 ` Scott Wood
  0 siblings, 2 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2008-10-13 12:01 UTC (permalink / raw)
  To: 'linuxppc-dev Development'

So I upgraded my tree for our custom mpc8321 boards.
I2c and ethernet stopped working.

Ethernet: I am using the ucc_geth driver and now
it seems like it won't TX any pkgs.
ethtool -S eth0  shows that the RX countes are increasing but
the TX ones stays a zero. 

Secondly i2c, I have this in my platform driver:
static struct i2c_board_info __initdata tmcu_i2c_devices[] = {
	{ I2C_BOARD_INFO("rtc-ds1307", 0x68),
	  .type = "ds1337",
	},
};

int __init tmcu_i2c_board_devs(void)
{
	int ret;
	ret = i2c_register_board_info(0, tmcu_i2c_devices,
				      ARRAY_SIZE(tmcu_i2c_devices));
	return ret;
}
arch_initcall(tmcu_i2c_board_devs);

This no longer works, but if I add
rtc@68 {
		compatible = "dallas,ds1337";
		reg = <68>;
	};
to my device tree so the whole I2c node looks like this:
	i2c@3000 {
		#address-cells = <1>;
		#size-cells = <0>;
		cell-index = <0>;
		device_type = "i2c";
		compatible = "fsl-i2c";
		reg = <3000 100>;
		interrupts = <e 8>;
		interrupt-parent = <&ipic>;
		dfsrr;

		rtc@68 {
			compatible = "dallas,ds1337";
			reg = <68>;
		};
	};
it works again. Is my static init of the rtc device faulty or is this
a bug in the kernel?

 Jocke

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-10-14 16:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 12:01 MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27 Joakim Tjernlund
2008-10-13 15:49 ` Joakim Tjernlund
2008-10-13 16:31 ` Scott Wood
2008-10-13 17:14   ` Joakim Tjernlund
2008-10-13 18:31     ` Scott Wood
2008-10-13 18:57       ` Joakim Tjernlund
2008-10-13 19:03         ` Scott Wood
2008-10-14  7:55           ` Joakim Tjernlund
2008-10-14 15:27             ` Scott Wood
2008-10-14 16:45               ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).