From patchwork Thu May 19 19:02:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9128305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3B2B860213 for ; Thu, 19 May 2016 19:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F60C28117 for ; Thu, 19 May 2016 19:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24518281B8; Thu, 19 May 2016 19:02:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D68DD28117 for ; Thu, 19 May 2016 19:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754282AbcESTCs (ORCPT ); Thu, 19 May 2016 15:02:48 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33153 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754103AbcESTCr (ORCPT ); Thu, 19 May 2016 15:02:47 -0400 Received: by mail-wm0-f67.google.com with SMTP id 67so388008wmg.0 for ; Thu, 19 May 2016 12:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=JYYZiRya6KvWmHHCfx1AnopCuLQ+/zKdPhKpJMoqhz8=; b=HQM2oxLBisn07bj0RpsjNe3tof8tQ48Y0LZrbFTS2qNhSlxRfjglE5VEtj+GB/DR7Y iowcgfDFrNXecB2Tp6notxOwnYhi/LhPL2h6PvBXjTnDz+u8pA2PHnHCvPPPvQN21gDp hr20a05XRJKkxW5pbViEk6uB9O7gDpHbqowiOhk0LceMiBmVDLA24tLmJD1VgG3lYnXx /iGKAIZZDekHg1MWfwS90vva2EsO2fqKetcpCNbUxQFsvhstpuYyvTrCueztj8hAqoqY DOPXX9iP0z3URgzH9PnxTnVE0GiyWFx0IBGazQmQkqsBK1gLdc4fdiw8hbiZ4NJoDhMV 8EmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=JYYZiRya6KvWmHHCfx1AnopCuLQ+/zKdPhKpJMoqhz8=; b=BH88+Dc/Alahit26qLblBfKBRu5p0PwzQCeM0GNMhFA3o9B3FPftqEEK30ORAbI/Ic qLPwjbTYNWL+/e8kXnJgWFRAF+th82kOg4O2pZZEwsjlsKN9NNuEdJoGY8t1cbUc93jK P/lZGcXwRvk5wcbOo1U5FFLBUWalvmYoQM5CQG5C5xb9kGz5SHRJwhJJSgQRFHF9p/99 gGs+5DM99WLjPsziTIkguRkuUyC1Vq3LZbpYClW3oLCxxXAG9fzzIT2i98PFU9mj9hdE F5sOoYceILRd9ZFqbIgW4bxiLfLGN2H5yRF6H+Q2qMFfittf3skSTObjPbD1G2I5HKV7 aBOQ== X-Gm-Message-State: AOPr4FVPxLni2lhiezRRbGwowRDgxti/SkfSP8xZDrtU5oHOUcimuB24Jv6QuZnf6wSi1Q== X-Received: by 10.28.230.69 with SMTP id d66mr38881956wmh.73.1463684566056; Thu, 19 May 2016 12:02:46 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:846f:38c9:5cf2:89af? (p200300625F014400846F38C95CF289AF.dip0.t-ipconnect.de. [2003:62:5f01:4400:846f:38c9:5cf2:89af]) by smtp.googlemail.com with ESMTPSA id kz1sm15807006wjc.46.2016.05.19.12.02.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 12:02:45 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v2 2/2] media: rc: nuvoton: decrease size of raw event fifo To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <82c0a393-9a8d-e2cf-09f2-40e170822f79@gmail.com> Date: Thu, 19 May 2016 21:02:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This chip has a 32 byte HW FIFO only. Therefore the default fifo size of 512 raw events is not needed and can be significantly decreased. Signed-off-by: Heiner Kallweit --- v2: - make patch part of a series --- drivers/media/rc/nuvoton-cir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 99b303b..e98c955 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -1186,6 +1186,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) rdev->priv = nvt; rdev->driver_type = RC_DRIVER_IR_RAW; rdev->allowed_protocols = RC_BIT_ALL; + rdev->raw_fifo_size = RX_BUF_LEN; rdev->open = nvt_open; rdev->close = nvt_close; rdev->tx_ir = nvt_tx_ir;