From patchwork Wed Mar 17 12:37:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raffaele Recalcati X-Patchwork-Id: 86323 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2HCiwC7018465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Mar 2010 12:45:34 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2HCbdHC009988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Mar 2010 07:37:41 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o2HCbchP010932; Wed, 17 Mar 2010 07:37:38 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 717A180627; Wed, 17 Mar 2010 06:37:38 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id B09DD80626 for ; Wed, 17 Mar 2010 06:37:36 -0600 (CST) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id o2HCbakl015051 for ; Wed, 17 Mar 2010 07:37:36 -0500 (CDT) Received: from psmtp.com (na3sys009amx189.postini.com [74.125.149.170]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id o2HCbZ5S001625 for ; Wed, 17 Mar 2010 07:37:35 -0500 Received: from source ([209.85.220.217]) by na3sys009amx189.postini.com ([74.125.148.10]) with SMTP; Wed, 17 Mar 2010 05:37:35 PDT Received: by fxm9 with SMTP id 9so387554fxm.24 for ; Wed, 17 Mar 2010 05:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ssP08GaOoc6QNCIHNZyhW9CopGi6P/DJp08WBx66i8k=; b=ABISaqgBqTOR7hc/ibxzFSRsPLRDt4vX+dXHfJjxdbqyg2gnPOtNCI7egF6eidA/bd CIm7MNXpvY7k70ADeqd0k5BqsSRkC2xci2SvYzY3/rY3dnZocc5lV2KMprTl6QqRmlVq FZIdC3Gd5RhuTgwa7Gjo0cDJUMXiC+OlyKVMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KY8RCXIr2OmuiQpJHIUlyrxDDq37vqhH5MOsswjBSku4nGTw4eiuawZROkbrsn17JM zqbaDxz0adplW/rnHq7d0nkB8f76HF4x8KE5TwdvvlvxGItBsAGkrZB7TFohlx1SwKTu SLntB+akhi6EyuRbEekAj4DMKrAAl7xgQ+EMo= MIME-Version: 1.0 Received: by 10.223.75.147 with SMTP id y19mr1166596faj.77.1268829453550; Wed, 17 Mar 2010 05:37:33 -0700 (PDT) Date: Wed, 17 Mar 2010 13:37:33 +0100 Message-ID: Subject: kernel BUG in VPFE with DM365 From: Raffaele Recalcati To: davinci-linux-open-source X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S: 6.77630/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 17 Mar 2010 12:45:35 +0000 (UTC) diff --git a/drivers/media/video/davinci/isif.c b/drivers/media/video/davinci/is index 29c29c6..4412a43 100644 --- a/drivers/media/video/davinci/isif.c +++ b/drivers/media/video/davinci/isif.c @@ -861,6 +861,36 @@ static void isif_setfbaddr(unsigned long addr) regw((addr >> 5) & 0x0ffff, CADL); } +/* Parameter operations */ +/* TODO from dm355 ccdc_set_params */ +static int isif_set_params(void __user *params) +{ +#if 0 + struct ccdc_config_params_raw ccdc_raw_params; + int x; + + /* only raw module parameters can be set through the IOCTL */ + if (ccdc_cfg.if_type != VPFE_RAW_BAYER) + return -EINVAL; + + x = copy_from_user(&ccdc_raw_params, params, sizeof(ccdc_raw_params)); + if (x) { + dev_dbg(ccdc_cfg.dev, "ccdc_set_params: error in copying ccdc" + "params, %d\n", x); + return -EFAULT; + } + + if (!validate_ccdc_param(&ccdc_raw_params)) { + memcpy(&ccdc_cfg.bayer.config_params, + &ccdc_raw_params, + sizeof(ccdc_raw_params)); + return 0; + } + return -EINVAL; +#else + return 0; +#endif +} static int isif_set_hw_if_params(struct vpfe_hw_if_param *params)