From patchwork Wed May 18 20:29:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9122101 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C06EFBF29F for ; Wed, 18 May 2016 20:30:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDC51202AE for ; Wed, 18 May 2016 20:30:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A87A20340 for ; Wed, 18 May 2016 20:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753863AbcERUaX (ORCPT ); Wed, 18 May 2016 16:30:23 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34569 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753860AbcERUaV (ORCPT ); Wed, 18 May 2016 16:30:21 -0400 Received: by mail-wm0-f66.google.com with SMTP id n129so15833309wmn.1 for ; Wed, 18 May 2016 13:30:20 -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=z63mgXdLaGTQu1yNw3Zmlyl7SxerCC0uoLlhPj1vj4c=; b=pj+LNMJzzEuBFqS2crf7LHR126lIgQkBHWvZ+q3XBpWUnIW3opvkcaRcmH2WOcWR7x ox1Pb8eD1nRx676uOHlDMC24WlIHKnahC1wl7IrBWlsr7BcMRlcd8o6jvgVwBE4Ofun2 Sy2gpzjRctvKmyKlvjjPjPsBdZ3kkQKg+4/vmmyHmRUc8xAdcRvD8JqY8uftMX/yBZwA wQlS4ldo4Wiz0qZxg8Gc6n+iAeX9MTewNVpKips0e4ug+hbcRLe8GJgMusuK12/KXUkb rOKkTxZ6aqTgOUUZDxhlCV7fQSm9ceHrf8L5VdDm4hclAfwm+Ct6GE5l0uFQY5Lf85Re Qj0A== 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=z63mgXdLaGTQu1yNw3Zmlyl7SxerCC0uoLlhPj1vj4c=; b=OUnwBeKgJYZPdwnNJsLY3A4plazeluAevuzLr2uHyKKv0TcpJm2siYtJxDZ2i/N5zc nC2Yc9r4TA4Zb1MAUayKDE4fZxY/OW0Mr3aWRdPEFmQjnsACBjhNYrWHa//U5422yLGO ZH1448X+E02uf71xj+yR8t5YeFqU0kPf4KoLWL47OxpzJepaaLJ/QN0CyqF7pYru5uYF i7gefOkGiaZ0dVf4mz9muzGxshgKh5mgAEuBU0JjwCm44Qzk8P0WR2wDTyR4mvBwtV85 7qOupzbn8zvI7TMv+AUh5F1MrzoOCjRP57MeCS+meQSjbDy5+LJqXK/Tc4LBahTlo0XE 3mzg== X-Gm-Message-State: AOPr4FVWlksuYcoGvKCH3FMKtp6zGqnuCjFYn8pjg1gCC6+vlFmzMNGAXDo7HxQC6KRXTw== X-Received: by 10.194.223.70 with SMTP id qs6mr9262025wjc.119.1463603418821; Wed, 18 May 2016 13:30:18 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:211c:e7c3:54e4:3e5b? (p200300625F014400211CE7C354E43E5B.dip0.t-ipconnect.de. [2003:62:5f01:4400:211c:e7c3:54e4:3e5b]) by smtp.googlemail.com with ESMTPSA id 63sm31384109wmz.5.2016.05.18.13.30.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2016 13:30:18 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH] media: rc: nuvoton: decrease size of raw event fifo To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: Date: Wed, 18 May 2016 22:29:41 +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-Spam-Status: No, score=-8.2 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=unavailable 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 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 --- 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;