From patchwork Mon Jul 8 00:22:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 2824660 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 254C2C0AB2 for ; Mon, 8 Jul 2013 00:23:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31B4B2012F for ; Mon, 8 Jul 2013 00:23:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 240D620121 for ; Mon, 8 Jul 2013 00:23:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753326Ab3GHAXJ (ORCPT ); Sun, 7 Jul 2013 20:23:09 -0400 Received: from mail-ea0-f174.google.com ([209.85.215.174]:57823 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753312Ab3GHAXH (ORCPT ); Sun, 7 Jul 2013 20:23:07 -0400 Received: by mail-ea0-f174.google.com with SMTP id o10so2560627eaj.33 for ; Sun, 07 Jul 2013 17:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=9L8Cn7jdItfcBhiCJF766V7Pdw0FXDmi20yYPDPMW/k=; b=SHcyRIi+cQzMzDxSKPBt0Mk3CSGGjovWu+7guo6Rx2yQSB0Yaiu6bOUQo/SkLG46vB XL1l0d0LQKI+Dzr6u/dJEVlqmxV4kVyoX9NtzLqgrH0ejdsJD8nRTCIVFlYIZYxQ+8Py aAsuI856hTO816KnJ1VlhqN8pN2+bQ4lf86b7VQns3zlTp7D68xZiQsxBfXHOLV0KjuK 7txRqbPi7HW+yUNwS6toFI+9EXp4kPZo/ikb/MYPTMHrvpFS5LXZg1T79Cb6MoNhLhRN Oy2mQSSrMpK9usThW6jAamxQNSH3ojpeiTrCe6Ypo5kdrdI9X6WYPPgC6lT6XUGdXMks Pz3A== X-Received: by 10.15.94.142 with SMTP id bb14mr21988035eeb.112.1373242985896; Sun, 07 Jul 2013 17:23:05 -0700 (PDT) Received: from localhost.localdomain (IGLD-84-228-222-170.inter.net.il. [84.228.222.170]) by mx.google.com with ESMTPSA id p49sm37649382eeu.2.2013.07.07.17.23.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 07 Jul 2013 17:23:05 -0700 (PDT) From: Maxim Levitsky To: linux-media@vger.kernel.org Cc: Maxim Levitsky Subject: [PATCH 1/3] ene_ir: Fix interrupt line passthrough to hardware Date: Mon, 8 Jul 2013 03:22:45 +0300 Message-Id: <1373242968-16055-2-git-send-email-maximlevitsky@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1373242968-16055-1-git-send-email-maximlevitsky@gmail.com> References: <1373242968-16055-1-git-send-email-maximlevitsky@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP While we can delay IRQ intialization, we need the interrupt number right away because unusually hardware have programable interrupt number, and thus we give it the number that was allocated by BIOS Signed-off-by: Maxim Levitsky --- drivers/media/rc/ene_ir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c index ee6c984..a9cf3a4 100644 --- a/drivers/media/rc/ene_ir.c +++ b/drivers/media/rc/ene_ir.c @@ -1022,6 +1022,8 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) spin_lock_init(&dev->hw_lock); dev->hw_io = pnp_port_start(pnp_dev, 0); + dev->irq = pnp_irq(pnp_dev, 0); + pnp_set_drvdata(pnp_dev, dev); dev->pnp_dev = pnp_dev; @@ -1085,7 +1087,6 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) goto exit_unregister_device; } - dev->irq = pnp_irq(pnp_dev, 0); if (request_irq(dev->irq, ene_isr, IRQF_SHARED, ENE_DRIVER_NAME, (void *)dev)) { goto exit_release_hw_io;