From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750892AbWFBUV4 (ORCPT ); Fri, 2 Jun 2006 16:21:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751470AbWFBUV4 (ORCPT ); Fri, 2 Jun 2006 16:21:56 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:43986 "EHLO einhorn.in-berlin.de") by vger.kernel.org with ESMTP id S1750892AbWFBUVz (ORCPT ); Fri, 2 Jun 2006 16:21:55 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Fri, 2 Jun 2006 22:20:17 +0200 (CEST) From: Stefan Richter Subject: [PATCH 2.6.17-rc5-mm2 13/18] ohci1394: make phys_dma parameter read-only To: Andrew Morton cc: linux-kernel@vger.kernel.org, linux1394-devel@lists.sourceforge.net, Jody McIntyre , Ben Collins In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-Spam-Score: (-0.729) AWL,BAYES_00 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ability to switch physical DMA on and off at run time would be a nice feature but a PITA to support by highlevel drivers and userspace apps. Therefore allow it only to be set when the driver is being loaded. Signed-off-by: Stefan Richter Index: linux-2.6.17-rc5-mm2/drivers/ieee1394/ohci1394.c =================================================================== --- linux-2.6.17-rc5-mm2.orig/drivers/ieee1394/ohci1394.c 2006-06-01 20:55:45.000000000 +0200 +++ linux-2.6.17-rc5-mm2/drivers/ieee1394/ohci1394.c 2006-06-01 20:55:46.000000000 +0200 @@ -163,7 +163,7 @@ printk(level "%s: fw-host%d: " fmt "\n" /* Module Parameters */ static int phys_dma = 1; -module_param(phys_dma, int, 0644); +module_param(phys_dma, int, 0444); MODULE_PARM_DESC(phys_dma, "Enable physical dma (default = 1)."); static void dma_trm_tasklet(unsigned long data);