From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by ozlabs.org (Postfix) with ESMTP id 330C6DE018 for ; Tue, 19 May 2009 18:10:47 +1000 (EST) Message-ID: <4A126982.8010002@grandegger.com> Date: Tue, 19 May 2009 10:10:42 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 To: =?ISO-8859-2?Q?Piotr_Zi=EAcik?= Subject: Re: [PATCH 08/12] mpc5121: Added I2C support. References: <1241640919-4650-1-git-send-email-wd@denx.de> <200905181557.11766.kosmo@semihalf.com> <4A1170B0.5080203@grandegger.com> <200905190947.22972.kosmo@semihalf.com> In-Reply-To: <200905190947.22972.kosmo@semihalf.com> Content-Type: text/plain; charset=ISO-8859-2 Cc: linuxppc-dev@ozlabs.org, Wolfgang Denk , Detlev Zundel , linux-i2c@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Piotr Ziêcik wrote: > Monday 18 May 2009 16:29:04 Wolfgang Grandegger napisa³(a): >>> I have simple question about bus speed setting support. Existing >>> implementation uses default safe speed if there is no 'clock-frequency' >>> property in i2c node. Comments in code suggest that this behaviour is >>> left for backward compatibility only. Should I make the 'clock-frequency' >>> property mandatory for a new type of I2C controller (MPC5121) ? >> I don't think so, for the same backward compatibility reason as for the >> other boards. But the DTS file might be changed to use clock-frequency. > > In my opinion implementing "backward compatilility" for MPC5121 is not good > idea. MPC5121 I2C support is completly new thing in mainline. Simply, there is > no DTS with which I have to be compatible. Adding backward compatibility > with nothing may be confusing. There is a port for the MPC5121 in mainline since 2.6.25 including DTS file: http://lxr.linux.no/linux+v2.6.25/arch/powerpc/boot/dts/mpc5121ads.dts If it was really usable or even used is another question. But it's fine for me be more restrictive, e.g. print a warning when save values are selected. Wolfgang.