From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from buildserver.ru.mvista.com (unknown [85.21.88.6]) by ozlabs.org (Postfix) with ESMTP id 2D177679FC for ; Sun, 25 Jun 2006 01:21:47 +1000 (EST) Date: Sat, 24 Jun 2006 19:21:36 +0400 From: Vitaly Bordug To: Kumar Gala Subject: Re: [PATCH 5/6] CPM_UART: unify clock sources Message-ID: <20060624192136.41e9987d@localhost.localdomain> In-Reply-To: <10C0FB27-7351-4578-9CE5-3EFA476C2661@kernel.crashing.org> References: <20060623231648.6721.3495.stgit@localhost.localdomain> <20060623231707.6721.43277.stgit@localhost.localdomain> <10C0FB27-7351-4578-9CE5-3EFA476C2661@kernel.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar, Thanks for feedback! My comment below. On Sat, 24 Jun 2006 08:46:54 -0500 Kumar Gala wrote: [snip] > > + > > +#ifndef FS_PD_H > > +#define FS_PD_H > > + > > +#define GET_BAUDRATE() (((bd_t *) __res)->bi_baudrate ? > > ((bd_t *) __res)->bi_baudrate : -1) > > +#define FS_UART_CLK() (((bd_t *) __res)->bi_intfreq) > > + > > +#endif > > We shouldn't hide these differences in a header like this. As we > slowly try to removing things from arch/ppc. Why not just add > platform data for these two pieces of data and set it up like we do > other platform data. > That was my first guess as well, but: The aim is yet moving to powerpc not to break existing ppc/ stuff. So if alternatively platform_data may be utilized, all relevant ppc stuff that uses cpm uart should be updated. While doing the driver "platformize" trick, I made it possible to keep legacy behaviour (pd-less), this is not going to afford such a thing. IOW, I don't see much sense in updating ppc/ BSP files, just to keep the right way. It does not look very neat now, but does the job of moving FW and keeping existing stuff sane. If there is better approach envisioned, I'll definitely follow.. -- Sincerely, Vitaly