From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller Date: Fri, 11 Jul 2014 14:06:29 +0200 Message-ID: References: <1403091577-10232-1-git-send-email-harinik@xilinx.com> <5cc8b89b-20ff-4fa9-92dd-bb2f6d3512d8@BY2FFO11FD030.protection.gbl> <20140707152309.GH4939@tarshish> <20140711062811.GC3003@tarshish> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20140711062811.GC3003@tarshish> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Baruch Siach Cc: =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , Mark Rutland , Alexandre Courbot , Harini Katakam , Pawel Moll , "ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org" , "linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Michal Simek , Harini Katakam , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring , Rob Landley , Kumar Gala , Grant Likely , Harini Katakam , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: linux-gpio@vger.kernel.org On Fri, Jul 11, 2014 at 8:28 AM, Baruch Siach wrote: > On Tue, Jul 08, 2014 at 11:27:57AM +0200, Linus Walleij wrote: >> What is the usecase here? > > During boot I need to know, for example, when an FPGA is ready to be > programmed, and when said FPGA has finished its initialization. I also read > the sate of on-board DIP switches to determine the desired boot method. I find > the current sysfs interface quite convenient for these and similar tasks. So given that an FPGA is a piece of hardware, it should have its firmware loaded from the kernel and a kernel driver communicating with it I guess? I feel the smell of a huge bundle of userspace drivers for something that should be handled by the kernel. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519AbaGKMGc (ORCPT ); Fri, 11 Jul 2014 08:06:32 -0400 Received: from mail-oa0-f48.google.com ([209.85.219.48]:42470 "EHLO mail-oa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbaGKMGa (ORCPT ); Fri, 11 Jul 2014 08:06:30 -0400 MIME-Version: 1.0 In-Reply-To: <20140711062811.GC3003@tarshish> References: <1403091577-10232-1-git-send-email-harinik@xilinx.com> <5cc8b89b-20ff-4fa9-92dd-bb2f6d3512d8@BY2FFO11FD030.protection.gbl> <20140707152309.GH4939@tarshish> <20140711062811.GC3003@tarshish> Date: Fri, 11 Jul 2014 14:06:29 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller From: Linus Walleij To: Baruch Siach Cc: =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , Mark Rutland , Alexandre Courbot , Harini Katakam , Pawel Moll , "ijc+devicetree@hellion.org.uk" , "linux-doc@vger.kernel.org" , Michal Simek , Harini Katakam , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , Rob Herring , Rob Landley , Kumar Gala , Grant Likely , Harini Katakam , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 11, 2014 at 8:28 AM, Baruch Siach wrote: > On Tue, Jul 08, 2014 at 11:27:57AM +0200, Linus Walleij wrote: >> What is the usecase here? > > During boot I need to know, for example, when an FPGA is ready to be > programmed, and when said FPGA has finished its initialization. I also read > the sate of on-board DIP switches to determine the desired boot method. I find > the current sysfs interface quite convenient for these and similar tasks. So given that an FPGA is a piece of hardware, it should have its firmware loaded from the kernel and a kernel driver communicating with it I guess? I feel the smell of a huge bundle of userspace drivers for something that should be handled by the kernel. Yours, Linus Walleij From mboxrd@z Thu Jan 1 00:00:00 1970 From: linus.walleij@linaro.org (Linus Walleij) Date: Fri, 11 Jul 2014 14:06:29 +0200 Subject: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller In-Reply-To: <20140711062811.GC3003@tarshish> References: <1403091577-10232-1-git-send-email-harinik@xilinx.com> <5cc8b89b-20ff-4fa9-92dd-bb2f6d3512d8@BY2FFO11FD030.protection.gbl> <20140707152309.GH4939@tarshish> <20140711062811.GC3003@tarshish> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Jul 11, 2014 at 8:28 AM, Baruch Siach wrote: > On Tue, Jul 08, 2014 at 11:27:57AM +0200, Linus Walleij wrote: >> What is the usecase here? > > During boot I need to know, for example, when an FPGA is ready to be > programmed, and when said FPGA has finished its initialization. I also read > the sate of on-board DIP switches to determine the desired boot method. I find > the current sysfs interface quite convenient for these and similar tasks. So given that an FPGA is a piece of hardware, it should have its firmware loaded from the kernel and a kernel driver communicating with it I guess? I feel the smell of a huge bundle of userspace drivers for something that should be handled by the kernel. Yours, Linus Walleij