From patchwork Mon Feb 8 19:25:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 8254291 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 49407BEEE5 for ; Mon, 8 Feb 2016 19:26:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 56245203C3 for ; Mon, 8 Feb 2016 19:26:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C9AB203B7 for ; Mon, 8 Feb 2016 19:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751905AbcBHT0K (ORCPT ); Mon, 8 Feb 2016 14:26:10 -0500 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) 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-type:content-transfer-encoding; bh=JckWGlHSmQVr7oSnsHed5jN12/FsDM8iWTfnZidhW80=; b=MZG37BriqraiBbB3GoEvDBY13t+neyw2ZiVnUB1F+EOv+1nDFjO3oPC55yCqGpjPdr MlvrV2fiJagt/UeMenXzC8ihwIkoDd5dIl0epLUpqDo7VQlQsk889zgwPgh295p8y0GT +H1YUtzAyjD7Ws+BIHmSqRyE47VM1oNr2qWajL63cM6muv9U8wJaRz9BW+UsjouPSiPN dR1CyGeQzIEzjLFdZOfJ0MtdN0xY8TnQnihEBamF+Pak20Sxe+1abD8ZdvkqvVJw59y8 S75BztbDi5rnxTVsZaOtdJ+HTNX27b6fP4iDX8jXB4BhNjbsyGSZ8CJNgpxGRUD4S/7p nncA== 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-type:content-transfer-encoding; bh=JckWGlHSmQVr7oSnsHed5jN12/FsDM8iWTfnZidhW80=; b=dljXxJIeGOl329Cc1fJqOwkImjM63TrS5ctg+OX/b/NmTrLiFUN4G2cTjfqGPjPbY6 zlN9fYb2bqif2j9BWkiqTYRV4CuIRO8sAuuG49AvbmZ9hTiB7ujkpGECGz6K0OkRI9h7 YR2op+XfkiWxX6Fbow3mi2uJBxImGwBVYZjaQNUCbV6yNE/lzxJ2hRLW2Nw9H+e3+fxB cz0hTrtt+gW+17+rPqI9zFSNw7TJgsY4fiqUxnGYDJ9X1CItqY7IfC2pyxKl9cXf37Mk 8WfUmkPbM/vcJXhoNHmzmNAXnrhp1H8QpPBMMr39oaSf/LE2kxIvIigP0nD/SPtlrS5T a3lQ== X-Gm-Message-State: AG10YOSmPK3v9HcOnXiBTDzrSuU+EKKlsflq9nBI1fgIfgHS4caoCLjVqvjX1UxDKPt85w== X-Received: by 10.28.68.139 with SMTP id r133mr464297wma.13.1454959567461; Mon, 08 Feb 2016 11:26:07 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:fc61:e417:9265:e39d? (p200300625F55BA00FC61E4179265E39D.dip0.t-ipconnect.de. [2003:62:5f55:ba00:fc61:e417:9265:e39d]) by smtp.googlemail.com with ESMTPSA id hm9sm31140963wjb.34.2016.02.08.11.26.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 11:26:06 -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 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 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=-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=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 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+="