From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-f43.google.com ([74.125.82.43]:33118 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbcBHT0I (ORCPT ); Mon, 8 Feb 2016 14:26:08 -0500 Received: by mail-wm0-f43.google.com with SMTP id g62so146651982wme.0 for ; Mon, 08 Feb 2016 11:26:08 -0800 (PST) From: Heiner Kallweit Subject: [PATCH] media: rc: nuvoton: support reading / writing wakeup sequence via sysfs To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <56B8EBC7.2020508@gmail.com> Date: Mon, 8 Feb 2016 20:25:59 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: This patch adds a binary attribute /sys/class/rc/rc?/wakeup_data which allows to read / write the wakeup sequence. In combination with the core extension for exposing the most recent raw packet this allows to easily define and set a wakeup sequence. At least on my Zotac CI321 the BIOS resets the wakeup sequence at each boot to a factory default. Therefore I use a udev rule SUBSYSTEM=="rc", DRIVERS=="nuvoton-cir", ACTION=="add", RUN+="