From: Richard Cochran Subject: Re: [PATCH] gianfar_ptp: use iomem, not ioports resource tree in probe Date: Wed, 24 Oct 2012 22:50:02 +0200 Message-ID: <20121024205002.GB2732@netboy.at.omicron.at> References: <1351092096-14811-1-git-send-email-paul.gortmaker@windriver.com> <6AE080B68D46FC4BA2D2769E68D765B70810B134@039-SN2MPN1-023.039d.mgd.msft.net> <50883D03.1000600@windriver.com> <50883DB7.4030502@freescale.com> <20121024194207.GA2732@netboy.at.omicron.at> <50884B5D.9030009@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paul Gortmaker , "netdev@vger.kernel.org" , Wei Yang , Manoil Claudiu-B08782 To: Timur Tabi Return-path: Received: from mail-wi0-f172.google.com ([209.85.212.172]:54418 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754Ab2JXUuP (ORCPT ); Wed, 24 Oct 2012 16:50:15 -0400 Received: by mail-wi0-f172.google.com with SMTP id hq12so5289131wib.1 for ; Wed, 24 Oct 2012 13:50:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <50884B5D.9030009@freescale.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Oct 24, 2012 at 03:11:09PM -0500, Timur Tabi wrote: > Richard Cochran wrote: > >> > Oh, I agree with that. I was just wondering why an OF-enabled driver > >> > would not use OF calls. I've never seen that before. My instinct is that > >> > the original developer had no idea what he was doing, but perhaps there is > >> > a very good reason for the way the driver is written. > > > Instead of using your instinct, try using your brain instead. > > Well, as you are obviously so much smarter than I am, how about > enlightening me? I do not see any explanations in the original commit, > and I do not know why someone would use non-OF calls to get data from the > device tree. I didn't even know that you could use platform_get_irq() to > get the virtual IRQ from a device tree. And now you know.