From: Stephen Neuendorffer Subject: RE: [PATCH] [V3] Xilinx : Framebuffer Driver: Add PLB support and cleanup DCR Date: Wed, 15 Apr 2009 08:58:29 -0700 Message-ID: <20090415155837.139A119C0056@mail32-dub.bigfish.com> References: <20090414200834.D05446F8056@mail163-wa4.bigfish.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Class: urn:content-classes:message In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@ozlabs.org To: Grant Likely , John Linn Cc: linux-fbdev-devel@lists.sourceforge.net, adaplas@gmail.com, Suneel Garapati , linuxppc-dev@ozlabs.org, akonovalov@ru.mvista.com > > - =A0 =A0 =A0 rc =3D of_address_to_resource(op->node, 0, &res); > > - =A0 =A0 =A0 if (rc) { > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&op->dev, "invalid address\n"); > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 return rc; > > + =A0 =A0 =A0 /* > > + =A0 =A0 =A0 =A0* To check whether the core is connected directly to D= CR or PLB > > + =A0 =A0 =A0 =A0* interface and initialize the tft_access accordingly. > > + =A0 =A0 =A0 =A0*/ > > + =A0 =A0 =A0 p =3D (u32 *)of_get_property(op->node, "xlnx,dcr-splb-sla= ve-if", NULL); > = > Hmmm. This binding is undocumented. It would be better to make the > decision on the presence/absence of the dcr-reg and/or reg properties. For backward compatibility with the 'old' way, the device tree generator fo= r this core has both dcr-reg and reg properties (where the reg has been tra= nslated back through the bridge). = You're probably right that it should just be one or the other, but the devi= ce tree generator change needs to be synchronized, and it will break backwa= rd compatibility with the older driver. Steve = This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.