From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by ozlabs.org (Postfix) with ESMTP id 1B57FDDDFD for ; Mon, 17 Dec 2007 16:40:57 +1100 (EST) Received: by rv-out-0910.google.com with SMTP id c27so1632770rvf.9 for ; Sun, 16 Dec 2007 21:40:56 -0800 (PST) Message-ID: <90547c5e0712162140t339cdc48m8a915786d25d49a4@mail.gmail.com> Date: Mon, 17 Dec 2007 11:10:56 +0530 From: "Poonam Aggrwal" To: "Timur Tabi" Subject: Re: [PATCH 2/3] arch/ : Platform changes for UCC TDM driver for MPC8323ERDB.Also includes related QE changes. In-Reply-To: <475D89E1.4040107@freescale.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6894_18347370.1197870056078" References: <475D89E1.4040107@freescale.com> Cc: linuxppc-dev@ozlabs.org, Poonam_Aggrwal-b10812 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_6894_18347370.1197870056078 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanx Tabi for your comments. Sorry I was on leave for the last week, so could not reply in time. Shall make the changes you suggested and repost the patch. Regards Poonam On 12/11/07, Timur Tabi wrote: > > Poonam_Aggrwal-b10812 wrote: > > > + qe = of_find_node_by_type(NULL, "qe"); > > + if (qe) { > > + unsigned int size; > > + prop = of_get_property > > + (qe, "brg-frequency", > &size); > > + of_node_put(qe); > > + of_node_put(brg); > > + return *prop; > > + } > > Only very recent versions of U-Boot set the brg-frequency property, so you > need > to check for situations where "*prop" is 0. If it is, then you need to > take the > QE's bus-frequency property and divide it by two. See my ucc_uart driver > for an > example. > > And PowerPC-specific patches should not be cross-posted to linux-kernel. > > -- > Timur Tabi > Linux kernel developer at Freescale > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev > ------=_Part_6894_18347370.1197870056078 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thanx Tabi for your comments.
Sorry I was on leave for the last week, so could not reply in time.
 
Shall make the changes you suggested and repost the patch.
 
Regards
Poonam


 
On 12/11/07, Timur Tabi <timur@freescale.com> wrote:
Poonam_Aggrwal-b10812 wrote:

> +                     qe = of_find_node_by_type(NULL, "qe");
> +                     if (qe) {
> +                             unsigned int size;
> +                             prop = of_get_property
> +                                             (qe, "brg-frequency", &size);
> +                             of_node_put(qe);
> +                             of_node_put(brg);
> +                             return *prop;
> +                     }

Only very recent versions of U-Boot set the brg-frequency property, so you need
to check for situations where "*prop" is 0.  If it is, then you need to take the
QE's bus-frequency property and divide it by two.  See my ucc_uart driver for an
example.

And PowerPC-specific patches should not be cross-posted to linux-kernel.

--
Timur Tabi
Linux kernel developer at Freescale
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

------=_Part_6894_18347370.1197870056078--