Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753780Ab0LaPET (ORCPT ); Fri, 31 Dec 2010 10:04:19 -0500 Received: from mail-qy0-f174.google.com ([209.85.216.174]:46733 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753605Ab0LaPES (ORCPT ); Fri, 31 Dec 2010 10:04:18 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=x4kHSHeO1fkFEPLgbG0uJIj2NDinJc8CJjibKUREfmw5jW4l6AA+ezML5tLlHjIDFy o/37SyrKAvEzaHUyLVf6fnpEy99m5dBxLq4ub/oQ44IQKczsjMSuMQ4lRKjNkRumZOhv tyPEPAVeGRgJvLR76IwSFzxy/eziMcEL/iXew= From: Ben Gamari To: Mauro Carvalho Chehab , Laurent Pinchart Cc: "Igor M. Liplianin" , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, aospan@netup.ru Subject: Re: [PATCH 01/18] Altera FPGA firmware download module. In-Reply-To: <4D1DC2DD.6050400@infradead.org> References: <201012310726.31851.liplianin@netup.ru> <201012311212.19715.laurent.pinchart@ideasonboard.com> <4D1DBE2A.5080003@infradead.org> <201012311230.51903.laurent.pinchart@ideasonboard.com> <4D1DC2DD.6050400@infradead.org> User-Agent: Notmuch/0.5-17-g2d1420b (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Fri, 31 Dec 2010 10:04:13 -0500 Message-ID: <8739pec7bm.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1551 Lines: 34 On Fri, 31 Dec 2010 09:47:41 -0200, Mauro Carvalho Chehab wrote: > > I understand this. However, a complete JTAG state machine in the kernel, plus > > an Altera firmware parser, seems to be a lot of code that could live in > > userspace. > > Moving it to userspace would mean a kernel driver that would depend on an > userspace daemon^Wfirmware loader to work. I would NAK such designs. > Why? I agree that JTAG is a lot to place in the kernel and is much better suited to be in user space. What exactly is your objection to depending on a userspace utility? There is no shortage of precedent for loading firmware in userspace (e.g. fx2 usb devices). > > If I understand it correctly the driver assumes the firmware is in an Altera > > proprietary format. If we really want JTAG code in the kernel we should at > > least split the file parser and the TAP access code. > > > > Agreed, but I don't think this would be a good reason to block the code merge > for .38. > I agree with the above isn't good reason to block it but if there is still debate about the general architecture of the code (see above), then it seems aren't ready yet. The code looks very nice, but I'm not at all convinced that it needs to be in the kernel. Just my two-tenths of a cent. Cheers, - Ben -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/