[PATCH v7 03/12] thermal: qoriq: Add local struct qoriq_sensor pointer

2019-09-11 Thread Andrey Smirnov
Add local struct qoriq_sensor pointer in qoriq_tmu_register_tmu_zone() for brevity. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc: linux

[PATCH v7 01/12] thermal: qoriq: Add local struct device pointer

2019-09-11 Thread Andrey Smirnov
Use a local "struct device *dev" for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com

[PATCH v7 00/12] QorIQ TMU multi-sensor and HWMON support

2019-09-11 Thread Andrey Smirnov
Everyone: This series contains patches adding support for HWMON integration, bug fixes and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v6]: - Rebased on top of Zhang's "ne

[PATCH v7 02/12] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-09-11 Thread Andrey Smirnov
Struct thermal_zone_device reference stored as sensor's private data isn't really used anywhere in the code. Drop it. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Ang

[PATCH v7 07/12] thermal: qoriq: Drop unnecessary drvdata cleanup

2019-09-11 Thread Andrey Smirnov
Driver data of underlying struct device will be set to NULL by Linux's driver infrastructure. Clearing it here is unnecessary. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[PATCH v7 11/12] thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()

2019-09-11 Thread Andrey Smirnov
Add devres wrapper for thermal_add_hwmon_sysfs() to simplify driver code. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux

[PATCH v7 08/12] thermal: qoriq: Convert driver to use regmap API

2019-09-11 Thread Andrey Smirnov
Convert driver to use regmap API, drop custom LE/BE IO helpers and simplify bit manipulation using regmap_update_bits(). This also allows us to convert some register initialization to use loops and adds convenient debug access to TMU registers via debugfs. Signed-off-by: Andrey Smirnov Reviewed

[PATCH v7 09/12] thermal: qoriq: Enable all sensors before registering them

2019-09-11 Thread Andrey Smirnov
, for the sake of simplicity, change the code to do just that. Signed-off-by: Andrey Smirnov Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kerne

[PATCH v7 12/12] thermal: qoriq: Add hwmon support

2019-09-11 Thread Andrey Smirnov
Expose thermal readings as a HWMON device, so that it could be accessed using lm-sensors. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux

[PATCH v7 10/12] thermal: qoriq: Do not report invalid temperature reading

2019-09-11 Thread Andrey Smirnov
Before returning measured temperature data to upper layer we need to make sure that the reading was marked as "valid" to avoid reporting bogus data. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Va

[PATCH] ARM: dts: am3874-iceboard: Fix 'i2c-mux-idle-disconnect' usage

2019-10-03 Thread Andrey Smirnov
file for McGill's IceBoard, based on TI AM3874") Signed-off-by: Andrey Smirnov Cc: Benoît Cousson Cc: Tony Lindgren Cc: Graeme Smecher Cc: linux-o...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- This is purely a drive-by fix, since it concerns th

[PATCH] ARM: dts: vf610-zii-scu4-aib: Specify 'i2c-mux-idle-disconnect'

2019-10-03 Thread Andrey Smirnov
Specify 'i2c-mux-idle-disconnect' for both I2C switches present on the board, since both are connected to the same parent bus and all of their children have the same I2C address. Fixes: ca4b4d373fcc ("ARM: dts: vf610: Add ZII SCU4 AIB board") Signed-off-by: Andrey Smirno

[PATCH] tty: serial: fsl_lpuart: Fix lpuart_flush_buffer()

2019-10-04 Thread Andrey Smirnov
Fix incorrect read-modify-write sequence in lpuart_flush_buffer() that was reading from UARTPFIFO and writing to UARTCFIFO instead of operating solely on the latter. Fixes: 9bc19af9dacb ("tty: serial: fsl_lpuart: Flush HW FIFOs in .flush_buffer") Signed-off-by: Andrey Smirnov Cc: St

[PATCH] dma-mapping: fix false positivse warnings in dma_common_free_remap()

2019-10-04 Thread Andrey Smirnov
1000>] (ret_fast_syscall+0x0/0x54) Exception stack(0x9f4d9fa8 to 0x9f4d9ff0) 9fa0: fee1dead 28121969 01234567 379ce700 9fc0: 0058 00016d04 9fe0: 00028e0c 7ec87c64 000135ec 76c1f410 Restore original invalid input check

[PATCH 3/3] HID: logitech-hidpp: add G920 device validation quirk

2019-10-06 Thread Andrey Smirnov
REPORT_ID_HIDPP_LONG with optional=false on G920 to fix this. Fixes: fe3ee1ec007b ("HID: logitech-hidpp: allow non HID++ devices to be handled by this module") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204191 Reported-by: Sam Bazely Signed-off-by: Andrey Smirnov Cc: Jiri Kosina Cc

[PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-06 Thread Andrey Smirnov
To simplify resource management in commit that follows as well as to save a couple of extra kfree()s and simplify hidpp_ff_deinit() switch driver code to use devres to manage the life-cycle of FF private data. Signed-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik

[PATCH 2/3] HID: logitech-hidpp: split g920_get_config()

2019-10-06 Thread Andrey Smirnov
aining HID_CONNECT_HIDINPUT. Fixes: 91cf9a98ae41 ("HID: logitech-hidpp: make .probe usbhid capable") Signed-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Sam Bazely Cc: Pierre-Loup A. Griffais Cc: Austin Palmer Cc: linux-in...@vger.

[PATCH 0/3] Logitech G920 fixes

2019-10-06 Thread Andrey Smirnov
Everyone: This series contains patches to fix a couple of regressions in G920 wheel support by hid-logitech-hidpp driver. Without the patches the wheel remains stuck in autocentering mode ("resisting" any attempt to trun) as well as missing support for any FF action. Thanks, Andr

Re: [PATCH] Bluetooth: hidp: Fix assumptions on the return value of hidp_send_message

2019-09-23 Thread Andrey Smirnov
ust wanted to check. Thanks, Andrey Smirnov

[PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-19 Thread Andrey Smirnov
Fiber-optic module attached to the bus is only rated to work at 100kHz, so drop the bus frequncy to accomodate that. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts

[PATCH] ARM: dts: vf610-zii-scu4-aib: Drop "rs485-rts-delay" property

2019-08-19 Thread Andrey Smirnov
LPUART driver does not support specifying "rs485-rts-delay" property. Drop it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 2

[PATCH] ARM: dts: vf610-zii-dev-rev-b: Drop redundant I2C properties

2019-08-19 Thread Andrey Smirnov
Drop redundant I2C properties that are already specified in vf610-zii-dev.dtsi Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-dev-rev-b.dts | 10

[PATCH v8 01/16] crypto: caam - move DMA mask selection into a function

2019-08-20 Thread Andrey Smirnov
Exactly the same code to figure out DMA mask is repeated twice in the driver code. To avoid repetition, move that logic into a standalone subroutine in intern.h. While at it re-shuffle the code to make it more readable with early returns. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă

[PATCH v8 09/16] crypto: caam - make CAAM_PTR_SZ dynamic

2019-08-20 Thread Andrey Smirnov
nal change intended. Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard Crestez Cc: linux-cry...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/crypto/caam/caamalg.c | 2 +- drivers/c

[PATCH v8 04/16] crypto: caam - request JR IRQ as the last step

2019-08-20 Thread Andrey Smirnov
In order to avoid any risk of JR IRQ request being handled while some of the resources used for that are not yet allocated move the code requesting said IRQ to the endo of caam_jr_init(). Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia

[PATCH v8 07/16] crypto: caam - drop 64-bit only wr/rd_reg64()

2019-08-20 Thread Andrey Smirnov
Since 32-bit of both wr_reg64 and rd_reg64 now use 64-bit IO helpers, these functions should no longer be necessary. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc

[PATCH v8 05/16] crytpo: caam - make use of iowrite64*_hi_lo in wr_reg64

2019-08-20 Thread Andrey Smirnov
>> 32, (u32 __iomem *)(reg)); iowrite32(data, (u32 __iomem *)(reg) + 1); } else { iowrite64(data, reg); } } else { iowrite64be(data, reg); } No functional change intended. Signed

[PATCH v8 06/16] crypto: caam - use ioread64*_hi_lo in rd_reg64

2019-08-20 Thread Andrey Smirnov
Following the same transformation logic as outlined in previous commit converting wr_reg64, convert rd_reg64 to use helpers from first. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc

[PATCH v8 08/16] crypto: caam - share definition for MAX_SDLEN

2019-08-20 Thread Andrey Smirnov
Both qi.h and cammalg_qi2.h seem to define identical versions of MAX_SDLEN. Move it to desc_constr.h to avoid duplication. Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard Crestez Cc: linux-cry

[PATCH 4/6] clk: Sync prototypes for clk_bulk_disable()

2019-07-15 Thread Andrey Smirnov
No-op version of clk_bulk_disable() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 2

[PATCH 3/6] clk: Constify second argument of clk_bulk_prepare_enable()

2019-07-15 Thread Andrey Smirnov
Both clk_bulk_prepare() and clk_bulk_enable() take const struct clk_bulk_data, so change clk_bulk_prepare_enable() to do so as well. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[PATCH 5/6] clk: Sync prototypes for clk_bulk_unprepare()

2019-07-15 Thread Andrey Smirnov
No-op version of clk_bulk_unprepare() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h

[PATCH 2/6] clk: Sync prototypes for clk_bulk_prepare()

2019-07-15 Thread Andrey Smirnov
No-op version of clk_bulk_prepare() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 3

[PATCH 6/6] clk: Constify second argument of clk_bulk_disable_unprepare()

2019-07-15 Thread Andrey Smirnov
Both clk_bulk_disable() and clk_bulk_unprepare() take const struct clk_bulk_data, so change clk_bulk_disable_unprepare() to do so as well. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel

[PATCH 1/6] clk: Sync prototypes for clk_bulk_enable()

2019-07-15 Thread Andrey Smirnov
No-op version of clk_bulk_enable() should have the same protoype as the real implementation, so constify the last argument to make it so. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h | 3

Re: [PATCH 1/6] clk: Sync prototypes for clk_bulk_enable()

2019-07-17 Thread Andrey Smirnov
On Mon, Jul 15, 2019 at 3:00 PM Stephen Boyd wrote: > > Quoting Andrey Smirnov (2019-07-15 13:12:29) > > No-op version of clk_bulk_enable() should have the same protoype as > > the real implementation, so constify the last argument to make it so. > > > > Signed-

[PATCH v2] clk: Constify struct clk_bulk_data * where possible

2019-07-17 Thread Andrey Smirnov
y the second argument of clk_bulk_prepare_enable() and clk_bulk_disable_unprepare(), since the functions they are comprised of already accept const clk_bulk_data *. Signed-off-by: Andrey Smirnov Cc: Russell King Cc: Stephen Boyd Cc: Chris Healy Cc: linux-...@vger.kernel.org Cc: linux-k

[PATCH 3/3] ARM: dts: vf610-zii-scu4-aib: Drop unused pinctrl_i2c3 pinmux config

2019-07-17 Thread Andrey Smirnov
Pinctrl_i2c3 pinmux config is not used anywhere. Drop it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Cory Tusar Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 7 --- 1 file

[PATCH 1/3] ARM: dts: vf610-zii-spb4: Drop unused pinctrl_i2c1 pinmux config

2019-07-17 Thread Andrey Smirnov
Pinctrl_i2c1 pinmux config is not used anywhere. Drop it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Cory Tusar Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-spb4.dts | 7 --- 1 file

[PATCH 2/3] ARM: dts: vf610-zii-scu4-aib: Fix pinctrl_i2c1's identation

2019-07-17 Thread Andrey Smirnov
Fix pinctrl_i2c1's inconsistent identation. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Cory Tusar Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 3 ++- 1 file chang

[PATCH v6 08/14] crypto: caam - make CAAM_PTR_SZ dynamic

2019-07-17 Thread Andrey Smirnov
nal change intended. Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard Crestez Cc: linux-cry...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/crypto/caam/caamalg.c | 2 +- drivers/c

[PATCH v6 07/14] crypto: caam - drop 64-bit only wr/rd_reg64()

2019-07-17 Thread Andrey Smirnov
Since 32-bit of both wr_reg64 and rd_reg64 now use 64-bit IO helpers, these functions should no longer be necessary. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-11 Thread Andrey Smirnov
On Fri, Oct 11, 2019 at 7:52 AM Benjamin Tissoires wrote: > > Hi Andrey, > > On Mon, Oct 7, 2019 at 7:13 AM Andrey Smirnov > wrote: > > > > To simplify resource management in commit that follows as well as to > > save a couple of extra kfree()s and simplify hi

Re: [PATCH 0/3] Logitech G920 fixes

2019-10-11 Thread Andrey Smirnov
On Mon, Oct 7, 2019 at 7:13 AM Andrey Smirnov > wrote: > > > > Everyone: > > > > This series contains patches to fix a couple of regressions in G920 > > wheel support by hid-logitech-hidpp driver. Without the patches the > > wheel remains stuck in autocente

Re: [PATCH 3/3] HID: logitech-hidpp: add G920 device validation quirk

2019-10-11 Thread Andrey Smirnov
On Fri, Oct 11, 2019 at 7:56 AM Benjamin Tissoires wrote: > > On Mon, Oct 7, 2019 at 7:13 AM Andrey Smirnov > wrote: > > > > G920 device only advertises REPORT_ID_HIDPP_LONG and > > REPORT_ID_HIDPP_VERY_LONG in its HID report descriptor, so querying > > for RE

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-11 Thread Andrey Smirnov
On Fri, Oct 11, 2019 at 12:26 PM Benjamin Tissoires wrote: > > On Fri, Oct 11, 2019 at 8:26 PM Dmitry Torokhov > wrote: > > > > On Fri, Oct 11, 2019 at 04:52:04PM +0200, Benjamin Tissoires wrote: > > > Hi Andrey, > > > > > > On Mon, Oct

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-11 Thread Andrey Smirnov
n Tissoires wrote: > > > > Hi Andrey, > > > > > > > > On Mon, Oct 7, 2019 at 7:13 AM Andrey Smirnov > > > > wrote: > > > > > > > > > > To simplify resource management in commit that follows as well as to > > > >

Re: [PATCH 3/3] HID: logitech-hidpp: add G920 device validation quirk

2019-10-11 Thread Andrey Smirnov
On Fri, Oct 11, 2019 at 3:33 PM Benjamin Tissoires wrote: > > On Fri, Oct 11, 2019 at 9:39 PM Andrey Smirnov > wrote: > > > > On Fri, Oct 11, 2019 at 7:56 AM Benjamin Tissoires > > wrote: > > > > > > On Mon, Oct 7, 2019 at 7:13 AM Andrey Smirnov

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-14 Thread Andrey Smirnov
: limit visibility of init/deinit > functions") > ff21a635dd1a9 ("HID: logitech-hidpp: Force feedback support for the > Logitech G920") > > > NOTE: The patch will not be queued to stable trees until it is upstream. > > How should we proceed with this patch? Please ignore this series, since it will be superseded by upcoming v2 Thanks, Andrey Smirnov

[PATCH 1/4] arm64: dts: zii-ultra: Fix regulator-vsd-3v3's vin-supply

2019-10-15 Thread Andrey Smirnov
Regulator-vsd-3v3 is supplied via GEN_3V3 rail which is an output of an "always on" load switch supplied by 3V3_MAIN. GEN_3V3 is also used as vin-supply by a number of peripherals, so adding it also allows us to follow the schematic more closely. Signed-off-by: Andrey Smirnov Cc: Fab

[PATCH 3/4] arm64: dts: zii-ultra: Add node for accelerometer

2019-10-15 Thread Andrey Smirnov
Add I2C node for accelerometer present on both Zest and RMB3 boards. Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- .../boot/dts/freescale/imx8mq-zii-ultra.dtsi

[PATCH 2/4] arm64: dts: zii-ultra: Fix regulator-3p3-main's name

2019-10-15 Thread Andrey Smirnov
It's 3V3_MAIN, not 3V3V_MAIN on schematic. Fix it. Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi | 2 +- 1

[PATCH 4/4] arm64: dts: zii-ultra: Add node for switch watchdog

2019-10-15 Thread Andrey Smirnov
Add I2C node for switch watchdog present on both Zest and RMB3 boards. Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- arch/arm64/boot/dts/freescale/imx8mq-zii

[PATCH v2 3/3] HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

2019-10-16 Thread Andrey Smirnov
ned-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin Palmer Cc: linux-in...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: sta...@vger.kernel.org # 4.9+ --- drivers/hid/hid-logitech-hi

[PATCH v2 1/3] HID: logitech-hidpp: split g920_get_config()

2019-10-16 Thread Andrey Smirnov
aining HID_CONNECT_HIDINPUT. Fixes: 91cf9a98ae41 ("HID: logitech-hidpp: make .probe usbhid capable") Signed-off-by: Andrey Smirnov Tested-by: Sam Bazley Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin Palmer Cc: linux-in...@

[PATCH v2 0/3] Logitech G920 fixes

2019-10-16 Thread Andrey Smirnov
Everyone: This series contains patches to fix a couple of regressions in G920 wheel support by hid-logitech-hidpp driver. Without the patches the wheel remains stuck in autocentering mode ("resisting" any attempt to trun) as well as missing support for any FF action. Thanks, Andr

[PATCH v2 2/3] HID: logitech-hidpp: rework device validation

2019-10-16 Thread Andrey Smirnov
logitech-hidpp: allow non HID++ devices to be handled by this module") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204191 Reported-by: Sam Bazely Signed-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin P

Re: [PATCH v2 2/3] HID: logitech-hidpp: rework device validation

2019-10-16 Thread Andrey Smirnov
On Wed, Oct 16, 2019 at 12:24 PM Benjamin Tissoires wrote: > > Hi Andrey, > > On Wed, Oct 16, 2019 at 8:30 PM Andrey Smirnov > wrote: > > > > G920 device only advertises REPORT_ID_HIDPP_LONG and > > REPORT_ID_HIDPP_VERY_LONG in its HID repor

[PATCH v3 3/3] HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

2019-10-17 Thread Andrey Smirnov
ned-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin Palmer Cc: linux-in...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: sta...@vger.kernel.org # 5.2+ --- drivers/hid/hid-logitech-hi

Re: [PATCH v2 3/3] HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

2019-10-17 Thread Andrey Smirnov
h-hidpp: make .probe usbhid capable") > a4bf6153b3177 ("HID: logitech-hidpp: add a sysfs file to tell we support > power_supply") > > > NOTE: The patch will not be queued to stable trees until it is upstream. > > How should we proceed with this patch? Looks like I'd have to mark this one as 5.2+ as well. Please disregard this series in favor of v3 that will be sent out shortly. Thanks, Andrey Smirnov

[PATCH v3 1/3] HID: logitech-hidpp: split g920_get_config()

2019-10-17 Thread Andrey Smirnov
aining HID_CONNECT_HIDINPUT. Fixes: 91cf9a98ae41 ("HID: logitech-hidpp: make .probe usbhid capable") Signed-off-by: Andrey Smirnov Tested-by: Sam Bazley Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin Palmer Cc: linux-in...@

[PATCH v3 2/3] HID: logitech-hidpp: rework device validation

2019-10-17 Thread Andrey Smirnov
logitech-hidpp: allow non HID++ devices to be handled by this module") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204191 Reported-by: Sam Bazely Signed-off-by: Andrey Smirnov Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Henrik Rydberg Cc: Pierre-Loup A. Griffais Cc: Austin P

[PATCH v3 0/3] Logitech G920 fixes

2019-10-17 Thread Andrey Smirnov
Everyone: This series contains patches to fix a couple of regressions in G920 wheel support by hid-logitech-hidpp driver. Without the patches the wheel remains stuck in autocentering mode ("resisting" any attempt to trun) as well as missing support for any FF action. Thanks, Andr

[PATCH] dt-bindings: mma8452: Re-word 'interrupt-names' description

2019-10-21 Thread Andrey Smirnov
Current wording in the binding documentation doesn't make it 100% clear that only one of "INT1" and "INT2" will ever be used by the driver and that specifying both has no advantages. Re-word it to make this aspect a bit more explicit. Signed-off-by: Andrey Smirnov Cc:

[PATCH 2/3] ARM: dts: imx6qdl-zii-rdu2: Fix accelerometer interrupt-names

2019-10-21 Thread Andrey Smirnov
er will only use one). Signed-off-by: Fabio Estevam [andrew.smir...@gmail.com modified the patch to drop INT1] Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- Origina

[PATCH 1/3] ARM: dts: imx6qdl-zii-rdu2: Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb

2019-10-21 Thread Andrey Smirnov
Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb since it is ignored by the gpiolib and results in a warning. Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- arch/arm/boot

[PATCH 3/3] ARM: dts: imx6qdl-zii-rdu2: Specify supplies for accelerometer

2019-10-21 Thread Andrey Smirnov
Specify 'vdd' and 'vddio' supplies for accelerometer to avoid warnings during boot. Signed-off-by: Andrey Smirnov Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Shawn Guo Cc: linux-arm-ker...@lists.infradead.org, Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/

[PATCH v2] ARM: imx: Drop imx_anatop_usb_chrg_detect_disable()

2019-10-21 Thread Andrey Smirnov
ut looking at its datasheet it appears to have a different USB PHY IP block, so executing i.MX6 charger disable configuration seems unnecessary. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Shawn Guo Cc: Fabio Estevam Cc: Peter Chen Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infrad

[PATCH] dt-bindings: serial: lpuart: Drop unsupported RS485 bindings

2019-10-21 Thread Andrey Smirnov
LPUART driver does not support 'rs485-rts-delay' or 'rs485-rx-during-tx' properties. Remove them. Signed-off-by: Andrey Smirnov Cc: Stefan Agner Cc: Chris Healy Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-...@nxp.com Cc: linux-ser...@vger.kernel.org Cc: linux-ke

[PATCH 08/24] tty: serial: fsl_lpuart: Fix issue in software flow control

2019-07-29 Thread Andrey Smirnov
ed-off-by: Greg Kroah-Hartman should apply here as well. Signed-off-by: Andrey Smirnov Cc: Stefan Agner Cc: Bhuvanchandra DV Cc: Chris Healy Cc: Cory Tusar Cc: Lucas Stach Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-...@nxp.com Cc: linux-ser...@vger.kernel.org Cc: linux-kernel@

[PATCH 18/24] tty: serial: fsl_lpuart: Introduce lpuart_dma_shutdown()

2019-07-29 Thread Andrey Smirnov
Last steps of .shutdown() code are identical for lpuart and lpuart32 cases, so move it all into a standalone subroutine. Signed-off-by: Andrey Smirnov Cc: Stefan Agner Cc: Bhuvanchandra DV Cc: Chris Healy Cc: Cory Tusar Cc: Lucas Stach Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux

[PATCH 14/24] tty: serial: fsl_lpuart: Introduce lpuart_wait_bit_set()

2019-07-29 Thread Andrey Smirnov
Busy polling on a bit in a register is used in multiple places in the driver. Move it into a shared function. Signed-off-by: Andrey Smirnov Cc: Stefan Agner Cc: Bhuvanchandra DV Cc: Chris Healy Cc: Cory Tusar Cc: Lucas Stach Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-...@nxp.com Cc

Re: [PATCH v2 00/20] i.MX6, DesignWare PCI improvements

2019-02-14 Thread Andrey Smirnov
On Fri, Feb 1, 2019 at 8:27 AM Lorenzo Pieralisi wrote: > > On Fri, Jan 04, 2019 at 09:49:05AM -0800, Andrey Smirnov wrote: > > Everyone: > > > > This is the series containing various small improvements that I made > > while reading the code and researching commit

Re: [PATCH v2 00/20] i.MX6, DesignWare PCI improvements

2019-02-19 Thread Andrey Smirnov
On Tue, Feb 19, 2019 at 4:22 AM Lorenzo Pieralisi wrote: > > On Thu, Feb 14, 2019 at 04:59:04PM -0800, Andrey Smirnov wrote: > > [...] > > > Lorenzo, can you apply the dwc specific patches that are already > > reviewed by Gustavo Pimentel from this series, to keep thi

[PATCH 3/5] PCI: dwc: Make use of BIT() in constant definitions

2019-02-19 Thread Andrey Smirnov
Avoid using explicit left shifts and convert various definitions to use BIT() instead. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Gustavo Pimentel Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc

[PATCH 0/5] DesignWare PCI improvements

2019-02-19 Thread Andrey Smirnov
each patch is self-explanatory. I tested this series on i.MX6Q, i.MX7D and i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov [imx6-dwc] https://lore.kernel.org/lkml/20190104174925.17153-1-andrew.smir...@gmail.com Andrey Smirnov (5): PCI: dwc: Make use of IS_ALIGNED() PCI: dwc: Share cod

[PATCH 5/5] PCI: dwc: Remove superfluous shifting in definitions

2019-02-19 Thread Andrey Smirnov
Surrounding definitions no longer use explicit shift, so "<< 0" here serve no purpose. Remove them. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Gustavo Pimentel Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas St

[PATCH 4/5] PCI: dwc: Make use of GENMASK/FIELD_PREP

2019-02-19 Thread Andrey Smirnov
Convert various multi-bit fields to be defined using GENMASK/FIELD_PREP. This way bit field boundaries are defined in a single place only, as well as defined in a way that makes it easier to verify them against reference manual. No functional change intended. Signed-off-by: Andrey Smirnov Acked

[PATCH 1/5] PCI: dwc: Make use of IS_ALIGNED()

2019-02-19 Thread Andrey Smirnov
Make the intent a bit more clear as well as get rid of explicit arithmetic by using IS_ALIGNED() to determine if "addr" is aligned to "size". No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Gustavo Pimentel Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas C

[PATCH 2/5] PCI: dwc: Share code for dw_pcie_rd/wr_other_conf()

2019-02-19 Thread Andrey Smirnov
Default implementation of pcie_rd_other_conf() and dw_pcie_wd_other_conf() share more than 80% of their code. Move shared code into a dedicated subroutine and convert pcie_rd_other_conf() and dw_pcie_wd_other_conf() to use it. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by

[PATCH v3 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks

2019-02-19 Thread Andrey Smirnov
Add nodes for two PCIe controllers found on i.MX8MQ. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.inf

[PATCH v3 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible

2019-02-19 Thread Andrey Smirnov
Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Acked-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Ri

[PATCH v3 2/5] arm64: dts: imx8mq: Add a node for SRC IP block

2019-02-19 Thread Andrey Smirnov
Add a node for reset controller IP block found on i.MX8MQ. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: lin

[PATCH v3 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface

2019-02-19 Thread Andrey Smirnov
Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org

[PATCH v3 3/5] arm64: dts: imx8mq: Combine PCIE power domains

2019-02-19 Thread Andrey Smirnov
pgc_pcie' power domain. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@v

[PATCH v3 0/5] PCIE support for i.MX8MQ (DT changes)

2019-02-19 Thread Andrey Smirnov
Added "pcie_aux" clock and moved clock configuration to board file since "pcie_bus" clock is now board specific Thanks, Andrey Smirnov [reset-imx8mq] git://git.pengutronix.de/pza/linux reset/imx8mq [v1] https://lore.kernel.org/lkml/20190131204333.31846-1-an

[PATCH] soc: imx: gpcv2: Make use of regmap_read_poll_timeout()

2019-02-19 Thread Andrey Smirnov
Replace explicit polling loop with a call to regmap_read_poll_timeout() to avoid code repetition. Also fix misspelled "failed" while at it. Signed-off-by: Andrey Smirnov Cc: Lucas Stach Cc: Chris Healy Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- d

Re: [PATCH] xhci: Convert xhci_handshake() to use readl_poll_timeout()

2019-02-07 Thread Andrey Smirnov
On Thu, Feb 7, 2019 at 12:27 AM Mathias Nyman wrote: > > On 07.02.2019 02:03, Andrey Smirnov wrote: > > Xhci_handshake() implements the algorithm already captured by > > readl_poll_timeout(). Convert the former to use the latter to avoid > > repetition. > > readl

Re: [PATCH] xhci: Use ffs() to find page size in xhci_mem_init()

2019-02-07 Thread Andrey Smirnov
On Thu, Feb 7, 2019 at 1:00 AM Mathias Nyman wrote: > > On 07.02.2019 02:03, Andrey Smirnov wrote: > > Get page size order using ffs() instead of open coding it with a loop. > > > > Signed-off-by: Andrey Smirnov > > Cc: Mathias Nyman > > Cc: Greg Kroah-Hartma

Re: [PATCH] xhci: Drop superfluous initialization in xhci_queue_ctrl_tx()

2019-02-07 Thread Andrey Smirnov
On Thu, Feb 7, 2019 at 8:44 AM Sergei Shtylyov wrote: > > Hello! > > On 07.02.2019 3:03, Andrey Smirnov wrote: > > > Simplify filed's initialization by directly assigning its final value > > field's. > Oops, missed that. Will fix in v2. Thanks, Andrey Smirnov

Re: [RFC 4/5] arm64: dts: Add nodes for PCIe IP blocks

2019-02-07 Thread Andrey Smirnov
On Thu, Feb 7, 2019 at 6:27 AM Lucas Stach wrote: > > Am Donnerstag, den 31.01.2019, 12:43 -0800 schrieb Andrey Smirnov: > > Add nodes for two PCIe controllers found on i.MX8MQ. > > > > > Signed-off-by: Andrey Smirnov > > > Cc: Shawn Guo > > > Cc: F

[RFC v2 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible

2019-02-07 Thread Andrey Smirnov
Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-.

[RFC v2 0/5] PCIE support for i.MX8MQ (DT changes)

2019-02-07 Thread Andrey Smirnov
pcie_aux" clock and moved clock configuration to board file since "pcie_bus" clock is now board specific Thanks, Andrey Smirnov [reset-imx8mq] git://git.pengutronix.de/pza/linux reset/imx8mq [v1] https://lore.kernel.org/lkml/20190131204333.31846-1-andrew.smir...@gmail.com/

[RFC v2 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks

2019-02-07 Thread Andrey Smirnov
Add nodes for two PCIe controllers found on i.MX8MQ. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org Cc: li

[RFC v2 2/5] arm64: dts: imx8mq: Add a node for SRC IP block

2019-02-07 Thread Andrey Smirnov
Add a node for reset controller IP block found on i.MX8MQ. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org Cc: li

[RFC v2 3/5] arm64: dts: imx8mq: Combine PCIE power domains

2019-02-07 Thread Andrey Smirnov
pgc_pcie' power domain. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org ---

[RFC v2 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface

2019-02-07 Thread Andrey Smirnov
Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org

[PATCH v2] xhci: Use __ffs() to find page size in xhci_mem_init()

2019-02-07 Thread Andrey Smirnov
Get page size order using __ffs() instead of open coding it with a loop. Signed-off-by: Andrey Smirnov Cc: Mathias Nyman Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Changes since [v1]: - Code changed to use __ffs() - Added check for

[PATCH v2] xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

2019-02-07 Thread Andrey Smirnov
Xhci_handshake() implements the algorithm already captured by readl_poll_timeout_atomic(). Convert the former to use the latter to avoid repetition. Signed-off-by: Andrey Smirnov Cc: Mathias Nyman Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[PATCH v2] xhci: Drop superfluous initialization in xhci_queue_ctrl_tx()

2019-02-07 Thread Andrey Smirnov
Simplify field's initialization by directly assigning its final value instead of initializing the variable to sero and then bitwise or-ing it. Signed-off-by: Andrey Smirnov Cc: Mathias Nyman Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Ch

<    2   3   4   5   6   7   8   9   10   11   >