lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1436031344-15455-1-git-send-email-rvolkov@v1ros.org>
Date:	Sat,  4 Jul 2015 20:35:40 +0300
From:	Roman Volkov <rvolkov@...os.org>
To:	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	Rob Herring <robh+dt@...nel.org>,
	Pawel Moll <pawel.moll@....com>,
	Mark Rutland <mark.rutland@....com>,
	Ian Campbell <ijc+devicetree@...lion.org.uk>,
	Kumar Gala <galak@...eaurora.org>,
	Grant Likely <grant.likely@...aro.org>
Cc:	Hans de Goede <hdegoede@...hat.com>, Jiri Kosina <jkosina@...e.cz>,
	Wolfram Sang <wsa@...-dreams.de>, linux-input@...r.kernel.org,
	linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
	Tony Prisk <linux@...sktech.co.nz>,
	Roman Volkov <rvolkov@...os.org>
Subject: [PATCH v4 0/4] FDT support for i8042 driver

The i8042 interface is used not only on the x86 architecture. Some of
non-x86 architectures are using Open Firmware device tree, like SPARC
and PowerPC. There is also non-x86 platforms with the FDT support, such
as ARM SoCs. There is no code in Linux to support i8042-capable input
devices on these newer platforms.

This patch creates one more file (i8042-of.h), with OF parsing code
for the ePAPR-compatible binding with the 'compatible' property. The
binding is based on existing OF code for older platforms, making it
possible to reuse this code for these platforms.

 v2:
 -Changes in the documentation.
 -Errors fixed in the initialization function.
 -Redundant parameters removed from Device Tree bindings (init-reset, etc.).

 v3:
 -Reduced amount of 'ifdefs' in the i8042.c file. Initialization order
    is now the same for all architectures.

 Warning: the change in v3 is more controversial and needs more testing
 since affects all architectures which use the driver. Please give
 information regarding required steps to get this patch accepted. Would
 be great to find testers to get additional tested-by records.

 v4:
 -Rename i8042-dt.h to i8042-of.h, rewrite init/probe/remove functions with
    OF code to be compatible with SPARC/PowerPC.
 -Add MODULE_DEVICE_TABLE (it was a mistake to forget about it)
 -Remove 'command-reg', 'status-reg', 'data-reg' from the binding; it is not
    required for now.
 -Yet another variant of changes in i8042.c. Unfortunately, it is not possible
    to avoid these changes.
 -Move the documentation file into the right place
    (thanks to Hans de Goede for the hint)
 -Change the order of patches
 Tested on: x86, ARM-vt8500, both as a module\built-in.

Roman Volkov (4):
  i8042: Add i8042_of.h header
  i8042: Kernel configuration for OF/FDT support
  i8042: Add OF/FDT support to the driver
  Documentation: Add 'intel,8042' FDT bindings

 .../devicetree/bindings/serio/intel,8042.txt       |  82 ++++++++++
 drivers/input/serio/i8042-of.h                     | 168 +++++++++++++++++++++
 drivers/input/serio/i8042.c                        |  43 +++++-
 drivers/input/serio/i8042.h                        |   3 +
 4 files changed, 291 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/serio/intel,8042.txt
 create mode 100644 drivers/input/serio/i8042-of.h

-- 
2.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ