Commit Graph
873808 Commits
Author SHA1 Message Date
Phil Reid 9d373acada gpio: altera: Allocate irq_chip dynamically
Keeping the irq_chip definition static shares it with multiple instances
of the altera gpiochip in the system. This is bad and now we get this
warning from gpiolib core:

"detected irqchip that is shared with multiple gpiochips: please fix the
driver."

Hence, move the irq_chip definition from being driver static into the
struct altera_gpio_chips. So a unique irq_chip is used for each gpiochip
instance.

Signed-off-by: Phil Reid <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2019-06-10 16:24:22 +02:00
Robert Hancock 1ebd06871b gpio: xilinx: convert from OF GPIO to standard devm APIs
This driver was using the OF GPIO helper API, but barely used any of its
features and it cost more code than it saved. Also, the OF GPIO code is
now deprecated. Convert it to use a more standard setup and use devm
APIs for initialization to avoid the need for a remove function.

Our rationale for this change is that we are using the Xilinx GPIO with
resources injected using the MFD core rather than on the device tree
itself. Using platform rather than OF-specific resources allows this to
work for free.

Signed-off-by: Robert Hancock <[email protected]>
Acked-by: Michal Simek <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2019-06-10 16:22:27 +02:00
YueHaibing 0f2692f7f2 staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
Fix gcc build error while CONFIG_REGMAP_MMIO is not set

drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
arcx-anybus.c: undefined reference to `__devm_regmap_init_mmio_clk'

Select REGMAP_MMIO to fix it.

Reported-by: Hulk Robot <[email protected]>
Fixes: 2411a336c8 ("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
Signed-off-by: YueHaibing <[email protected]>
Reviewed-by: Sven Van Asbroeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2019-06-10 16:10:33 +02:00
Sebastian Reichel 1bb418bffd drm/omap: add support for manually updated displays
This adds the required infrastructure for manually updated displays,
such as DSI command mode panels. While those panels often support
partial updates we currently always do a full refresh.

The display will be refreshed when something calls the dirty callback,
such as libdrm's drmModeDirtyFB(). This is currently being done at least
by the kernel console and Xorg (with modesetting driver) in their
default configuration. Weston does not implement this and the fbdev
backend does not work (display will not update). Weston's DRM backend
uses double buffering and the page flip will also trigger a display
refresh.

Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Sebastian Reichel 47103a80f5 drm/omap: add framedone interrupt support
This prepares framedone interrupt handling for
manual display update support.

Acked-by: Pavel Machek <[email protected]>
Tested-by: Tony Lindgren <[email protected]>
Tested-by: Pavel Machek <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Sebastian Reichel ad9df7d91b drm/omap: don't check dispc timings for DSI
While most display types only forward their VM to the DISPC, this
is not true for DSI. DSI calculates the VM for DISPC based on its
own, but it's not identical. Actually the DSI VM is not even a valid
DISPC VM making this check fail. Let's restore the old behaviour
and avoid checking the DISPC VM for DSI here.

Fixes: 7c27fa57ef ("drm/omap: Call dispc timings check operation directly")
Acked-by: Pavel Machek <[email protected]>
Tested-by: Tony Lindgren <[email protected]>
Tested-by: Pavel Machek <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Sebastian Reichel 81f2ca2499 drm/omap: use DRM_DEBUG_DRIVER instead of CORE
This macro is only used by omapdrm, which should print
debug messages using the DRIVER category instead of the
default CORE category.

Acked-by: Pavel Machek <[email protected]>
Tested-by: Tony Lindgren <[email protected]>
Tested-by: Pavel Machek <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Kefeng Wang f2f5f77a22 drm/omap: Use dev_get_drvdata()
Using dev_get_drvdata directly.

Cc: Tomi Valkeinen <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Emil Velikov 9a671c2145 drm/omap: remove open-coded drm_invalid_op()
Cc: Tomi Valkeinen <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Thomas Meyer 1ee2db22db drm/omap: Make sure device_id tables are NULL terminated
Make sure (of/i2c/platform)_device_id tables are NULL terminated.

Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
2019-06-10 17:04:15 +03:00
Linus Walleij 7fae8a9ced fmc: Decouple from Linux GPIO subsystem
FMC has its own GPIO handling, the inclusion of <linux/gpio.h>
is only to reuse some flags that we can just as well provide
using local defines.

Cc: Federico Vaga <[email protected]>
Cc: Pat Riehecky <[email protected]>
Acked-by: Alessandro Rubini <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2019-06-10 16:01:54 +02:00
Jason Gunthorpe c8a53b2db0 mm/hmm: Hold a mmgrab from hmm to mm
So long as a struct hmm pointer exists, so should the struct mm it is
linked too. Hold the mmgrab() as soon as a hmm is created, and mmdrop() it
once the hmm refcount goes to zero.

Since mmdrop() (ie a 0 kref on struct mm) is now impossible with a !NULL
mm->hmm delete the hmm_hmm_destroy().

Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jérôme Glisse <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Tested-by: Philip Yang <[email protected]>
2019-06-10 10:10:33 -03:00
Jason Gunthorpe e36acfe6c8 mm/hmm: Use hmm_mirror not mm as an argument for hmm_range_register
Ralph observes that hmm_range_register() can only be called by a driver
while a mirror is registered. Make this clear in the API by passing in the
mirror structure as a parameter.

This also simplifies understanding the lifetime model for struct hmm, as
the hmm pointer must be valid as part of a registered mirror so all we
need in hmm_register_range() is a simple kref_get.

Suggested-by: Ralph Campbell <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Tested-by: Philip Yang <[email protected]>
2019-06-10 10:10:30 -03:00
Mark Rutland 9b60472205 arm64: mm: avoid redundant READ_ONCE(*ptep)
In set_pte_at(), we read the old pte value so that it can be passed into
checks for racy hw updates. These checks are only performed for
CONFIG_DEBUG_VM, and the value is not used otherwise.

Since we read the pte value with READ_ONCE(), the compiler cannot elide
the redundant read for !CONFIG_DEBUG_VM kernels.

Let's ameliorate matters by moving the read and the checks into a
helper, __check_racy_pte_update(), which only performs the read when the
value will be used. This also allows us to reformat the conditions for
clarity.

Acked-by: Will Deacon <[email protected]>
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
2019-06-10 13:55:34 +01:00
Keerthy 45450f36e5 soc: ti: pm33xx: Add a print while entering RTC only mode with DDR in self-refresh
Currently there is no way to distinguish if the SoC entered DS0
mode or the RTC only mode. Hence add a print before entering
the RTC only mode.

Signed-off-by: Keerthy <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:19:26 -07:00
YueHaibing 9037829ca2 ARM: OMAP2+: Make some variables static
Fix sparse warnings:

arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:532:25: warning: symbol 'am33xx_gpio_hwmod_class' was not declared. Should it be static?
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:542:19: warning: symbol 'am33xx_gpio1_hwmod' was not declared. Should it be static?
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:562:19: warning: symbol 'am33xx_gpio2_hwmod' was not declared. Should it be static?
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:582:19: warning: symbol 'am33xx_gpio3_hwmod' was not declared. Should it be static?

Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:16:38 -07:00
Teresa Remmet e3630fd9aa ARM: dts: Add support for phyBOARD-REGOR-AM335x
Adding support for phyBOARD-REGOR-AM335x:
- CAN
- UART0 / UART2
- RS485
- USB device
- i2c RTC
- SD
- ethernet0 RMII
- ethernet1 MII
- Digital I/Os

Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:44 -07:00
Teresa Remmet 4dc020c507 ARM: dts: am335x-pcm-953: Remove eth phy delay
Default values fit better than these historical settings.
Hardware layout had been adapted accordingly already in
alpha stage. They did not cause problems for a long time.
Removed values now.

Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:38 -07:00
Teresa Remmet 267247d3d2 ARM: dts: am335x-pcm-953: Update user led names
Rename user led nodes to match the phytec user leds name scheme.

Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:32 -07:00
Teresa Remmet 66fa560004 ARM: dts: am335x-phycore-som: Enable gpmc node in dts files
As nand flash is not always the primary storage device any more
disable it in the phycore-som include file. Enable it the device tree
files where it is populated.

Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:26 -07:00
Daniel Schultz 65604db579 ARM: dts: am335x-phycore-som: Add emmc node
The phyCORE-AM335x EMMC modules have an EMMC populated and are based
on the phyCORE-AM335x R2 SOM. Therefore, the EMMC node will be added to
the phycore-som devce tree but is by default disabled.

Signed-off-by: Daniel Schultz <[email protected]>
Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:20 -07:00
Teresa Remmet 81ec03f5d9 ARM: dts: am335x phytec boards: Remove regulator node
Move regulators directly to the root node like most am335x boards do.

Signed-off-by: Teresa Remmet <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:06:13 -07:00
Adam Ford 566734534f ARM: dts: Add LCD type 28 support to LogicPD Torpedo DM3730 devkit
There are two LCD device released by Logic PD for the Torpedo,
type 15 and Type 28.  The stock dts file supports the older LCD,
so this patch enables support for the newer one.

For details between these different LCD's see
https://support.logicpd.com/DesktopModules/Bring2mind/DMX/Download.aspx?portalid=0&EntryId=2777

Signed-off-by: Adam Ford <[email protected]>
[[email protected]: removed extra blank line for checkpatch]
Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 05:03:28 -07:00
Tony Lindgren 4e23be473e bus: ti-sysc: Add support for module specific reset quirks
Some older interconnect target modules need module internal clock
toggling quirks to reset properly. We've been doing this in the
platform code earlier, but need to be able to it directly in the
ti-sysc driver when we no longer rely on on the platform code.

Let's add reset handling for 1-wire, i2c and watchdog. Later on
we can add more modules like msdi and dss as they get tested.
For dra7 pcie, we should be able to just use the rstctrl reset
driver when available.

Signed-off-by: Tony Lindgren <[email protected]>
2019-06-10 04:52:22 -07:00
Jozsef Kadlecsik fe03d47456 Update my email address
It's better to use my [email protected] email address in
the source code. I might not be able to use
[email protected] in the future.

Signed-off-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 13:00:24 +02:00
Stefano Brivio 11921796f4 ipset: Fix memory accounting for hash types on resize
If a fresh array block is allocated during resize, the current in-memory
set size should be increased by the size of the block, not replaced by it.

Before the fix, adding entries to a hash set type, leading to a table
resize, caused an inconsistent memory size to be reported. This becomes
more obvious when swapping sets with similar sizes:

  # cat hash_ip_size.sh
  #!/bin/sh
  FAIL_RETRIES=10

  tries=0
  while [ ${tries} -lt ${FAIL_RETRIES} ]; do
  	ipset create t1 hash:ip
  	for i in `seq 1 4345`; do
  		ipset add t1 1.2.$((i / 255)).$((i % 255))
  	done
  	t1_init="$(ipset list t1|sed -n 's/Size in memory: \(.*\)/\1/p')"

  	ipset create t2 hash:ip
  	for i in `seq 1 4360`; do
  		ipset add t2 1.2.$((i / 255)).$((i % 255))
  	done
  	t2_init="$(ipset list t2|sed -n 's/Size in memory: \(.*\)/\1/p')"

  	ipset swap t1 t2
  	t1_swap="$(ipset list t1|sed -n 's/Size in memory: \(.*\)/\1/p')"
  	t2_swap="$(ipset list t2|sed -n 's/Size in memory: \(.*\)/\1/p')"

  	ipset destroy t1
  	ipset destroy t2
  	tries=$((tries + 1))

  	if [ ${t1_init} -lt 10000 ] || [ ${t2_init} -lt 10000 ]; then
  		echo "FAIL after ${tries} tries:"
  		echo "T1 size ${t1_init}, after swap ${t1_swap}"
  		echo "T2 size ${t2_init}, after swap ${t2_swap}"
  		exit 1
  	fi
  done
  echo "PASS"
  # echo -n 'func hash_ip4_resize +p' > /sys/kernel/debug/dynamic_debug/control
  # ./hash_ip_size.sh
  [ 2035.018673] attempt to resize set t1 from 10 to 11, t 00000000fe6551fa
  [ 2035.078583] set t1 resized from 10 (00000000fe6551fa) to 11 (00000000172a0163)
  [ 2035.080353] Table destroy by resize 00000000fe6551fa
  FAIL after 4 tries:
  T1 size 9064, after swap 71128
  T2 size 71128, after swap 9064

Reported-by: NOYB <[email protected]>
Fixes: 9e41f26a50 ("netfilter: ipset: Count non-static extension memory for userspace")
Signed-off-by: Stefano Brivio <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:59:23 +02:00
Jozsef Kadlecsik b1732e1638 netfilter: ipset: Fix error path in set_target_v3_checkentry()
Fix error path and release the references properly.

Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:58:26 +02:00
Jozsef Kadlecsik 13c6ba1f85 netfilter: ipset: Fix the last missing check of nla_parse_deprecated()
In dump_init() the outdated comment was incorrect and we had a missing
validation check of nla_parse_deprecated().

Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:50:00 +02:00
Aditya Pakki f4f5748bfe netfilter: ipset: fix a missing check of nla_parse
When nla_parse fails, we should not use the results (the first
argument). The fix checks if it fails, and if so, returns its error code
upstream.

Signed-off-by: Aditya Pakki <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:47:37 +02:00
Florent Fourcot f0cb839084 netfilter: ipset: merge uadd and udel functions
Both functions are using exactly the same code, except the command value
passed to call_ad function.

Signed-off-by: Florent Fourcot <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:42:56 +02:00
Florent Fourcot 24c509b2e2 netfilter: ipset: remove useless memset() calls
One of the memset call is buggy: it does not erase full array, but only pointer size.
Moreover, after a check, first step of nla_parse_nested/nla_parse is to
erase tb array as well. We can remove both calls safely.

Signed-off-by: Florent Fourcot <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
2019-06-10 12:29:31 +02:00
Jens Axboe cf8929885d cgroup/bfq: revert bfq.weight symlink change
There's some discussion on how to do this the best, and Tejun prefers
that BFQ just create the file itself instead of having cgroups support
a symlink feature.

Hence revert commit 54b7b868e8 and 19e9da9e86 for 5.2, and this
can be done properly for 5.3.

Signed-off-by: Jens Axboe <[email protected]>
2019-06-10 03:35:41 -06:00
Lionel Landwerlin bf210f6c9e drm/i915/perf: fix whitelist on Gen10+
Gen10 added an additional NOA_WRITE register (high bits) and we forgot
to whitelist it for userspace.

Fixes: 95690a02fb ("drm/i915/perf: enable perf support on CNL")
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-06-10 11:48:24 +03:00
Gwendal Grignou 3aa6be30da mfd: cros_ec: Update I2S API
Improve I2S API.
Rename ec_response_codec_gain into ec_codec_i2s_gain,
update caller accordlingly.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 2f2e6d1486 mfd: cros_ec: Add Management API entry points
Add commands for test and management.
Add command space for future development.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou cc3a032fd7 mfd: cros_ec: Add SKU ID and Secure storage API
Add API to store SKU, Cros board information in EC flash memory.
Add API to store security data in EC.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou a0d50b31ce mfd: cros_ec: Add API for rwsig
Add command to retrieve signature of image stored in the RW memory
slot(s).

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou da038d6ee7 mfd: cros_ec: Add API for Fingerprint support
Add API for fingerprint sensor presented by embedded controller.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 6f9d485ca4 mfd: cros_ec: Add API for Touchpad support
Add API to control touchpad presented by Embedded Controller.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou d90a4121bf mfd: cros_ec: Add API for EC-EC communication
Allow EC to talk to other ECs that are not presented to the host.
Neeed when EC are present in detachable keyboard.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou a47bc8a4e8 mfd: cros_ec: Add I2C passthru protection API
Prevent direct i2c access to device behind EC when not in development mode.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 77c48c76ad mfd: cros_ec: Add Smart Battery Firmware update API
Add API to update battery firmware.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou b92be99f37 mfd: cros_ec: Add Hibernate API
Add support for controlling hibernation of the Embedded Controller.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou fd5372848a mfd: cros_ec: Add API for keyboard testing
Add command to allow keyboard testing in factory.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou e16efdf121 mfd: cros_ec: Complete Power and USB PD API
Improve API for USB Powe delivery and power management.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 170309b438 mfd: cros_ec: Fix temperature API
Improve API to retrieve temperature information.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 716bf50ea8 mfd: cros_ec: Add fingerprint API
Add support for fingerprint sensors managed by embedded controller.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 784dd15c93 mfd: cros_ec: Fix event processing API
Improve API between EC and Host to report events.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou a517bb4bb8 mfd: cros_ec: Complete MEMS sensor API
Add new command for batched mode, add support for more sensors.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00
Gwendal Grignou 2908c4ed29 mfd: cros_ec: Add EC transport protocol v4
Introduce a new transport procotol between EC and host.

Signed-off-by: Gwendal Grignou <[email protected]>
Acked-by: Enric Balletbo i Serra <[email protected]>
Acked-by: Benson Leung <[email protected]>
Reviewed-by: Fabien Lahoudere <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2019-06-10 09:15:08 +01:00