From mboxrd@z Thu Jan 1 00:00:00 1970
From: Philipp Zabel
Subject: Re: [RFC PATCH 1/5] ARM i.MX6q: Add GPU, VPU, IPU, and OpenVG
resets to system reset controller
Date: Thu, 10 Jan 2013 14:54:49 +0100
Message-ID: <1357826089.2363.671.camel@pizza.hi.pengutronix.de>
References: <1357751839-19680-1-git-send-email-p.zabel@pengutronix.de>
<1357751839-19680-2-git-send-email-p.zabel@pengutronix.de>
<20130110065622.GA7466@S2101-09.ap.freescale.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
In-Reply-To: <20130110065622.GA7466-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Sender: "devicetree-discuss"
To: Shawn Guo
Cc: Marek Vasut , Fabio Estevam , Sascha Hauer , kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
List-Id: devicetree@vger.kernel.org
Am Donnerstag, den 10.01.2013, 14:56 +0800 schrieb Shawn Guo:
> Hi Philipp,
>
> On Wed, Jan 09, 2013 at 06:17:15PM +0100, Philipp Zabel wrote:
> > Signed-off-by: Philipp Zabel
> > ---
> > .../devicetree/bindings/reset/fsl,imx-src.txt | 45 ++++++++++++++++++++
> > arch/arm/mach-imx/src.c | 41 ++++++++++++++++++
> > include/linux/imx-src.h | 6 +++
> > 3 files changed, 92 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/reset/fsl,imx-src.txt
> > create mode 100644 include/linux/imx-src.h
>
> I'm with Stephen that we should try to create a common API for this.
> Instead of ask device drivers to call IMX specific imx_src_reset(),
> we should have them call some type of common API with struct device
> as the argument.
Agreed. At least for devices with a single dedicated reset line this
would be a much better API.
regards
Philipp