Re: [PATCH 64/64] i2c: reword i2c_algorithm in drivers according to newest specification

2024-03-25 Thread Oleksij Rempel
rsions are > needed. For the others more work needs to be done but this will be > performed incrementally along with API changes/improvements. All these > changes here are simple search/replace results. > > Signed-off-by: Wolfram Sang Acked-by: Oleksij Rempel # f

[PATCH net-next v3 3/6] net: add generic selftest support

2021-04-19 Thread Oleksij Rempel
HY - AR9331 ag71xx -> AR9331 switch -> AR9331 PHY Signed-off-by: Oleksij Rempel --- include/net/selftests.h | 12 ++ net/Kconfig | 4 + net/core/Makefile | 1 + net/core/selftests.c| 400 4 files changed, 417 insertions(+) cr

[PATCH net-next v3 2/6] net: phy: genphy_loopback: add link speed configuration

2021-04-19 Thread Oleksij Rempel
. Signed-off-by: Oleksij Rempel --- drivers/net/phy/phy.c| 3 ++- drivers/net/phy/phy_device.c | 28 ++-- include/linux/phy.h | 1 + 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index

[PATCH net-next v3 6/6] net: dsa: enable selftest support for all switches by default

2021-04-19 Thread Oleksij Rempel
Most of generic selftest should be able to work with probably all ethernet controllers. The DSA switches are not exception, so enable it by default at least for DSA. This patch was tested with SJA1105 and AR9331. Signed-off-by: Oleksij Rempel --- include/net/dsa.h | 2 ++ net/dsa/Kconfig

[PATCH net-next v3 5/6] net: ag71xx: make use of generic NET_SELFTESTS library

2021-04-19 Thread Oleksij Rempel
With this patch the ag71xx on Atheros AR9331 will able to run generic net selftests. Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/atheros/Kconfig | 1 + drivers/net/ethernet/atheros/ag71xx.c | 20 2 files changed, 17 insertions(+), 4 deletions(-) diff --git

[PATCH net-next v3 4/6] net: fec: make use of generic NET_SELFTESTS library

2021-04-19 Thread Oleksij Rempel
With this patch FEC on iMX will able to run generic net selftests Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/freescale/Kconfig| 1 + drivers/net/ethernet/freescale/fec_main.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/ethernet/freescale/Kconfig b

[PATCH net-next v3 0/6] provide generic net selftest support

2021-04-19 Thread Oleksij Rempel
and all DSA switches. - add loopback support on more PHYs. This patch set provides diagnostic capabilities for some iMX, ag71xx or any DSA based devices. For proper functionality, PHY loopback support is needed. So far there is only initial infrastructure with basic tests. Oleksij Rempel (6

[PATCH net-next v3 1/6] net: phy: execute genphy_loopback() per default on all PHYs

2021-04-19 Thread Oleksij Rempel
The generic loopback is really generic and is defined by the 802.3 standard, we should just mandate that drivers implement a custom loopback if the generic one cannot work. Suggested-by: Florian Fainelli Signed-off-by: Oleksij Rempel --- drivers/net/phy/phy_device.c | 7 +-- 1 file changed

[PATCH v2 7/7] net: dsa: enable selftest support for all switches by default

2021-04-15 Thread Oleksij Rempel
Most of generic selftest should be able to work with probably all ethernet controllers. The DSA switches are not exception, so enable it by default at least for DSA. This patch was tested with SJA1105 and AR9331. Signed-off-by: Oleksij Rempel --- include/net/dsa.h | 2 ++ net/dsa/Kconfig

[PATCH v2 5/7] net: fec: make use of generic NET_SELFTESTS library

2021-04-15 Thread Oleksij Rempel
With this patch FEC on iMX will able to run generic net selftests Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/freescale/Kconfig| 1 + drivers/net/ethernet/freescale/fec_main.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/ethernet/freescale/Kconfig b

[PATCH v2 6/7] net: ag71xx: make use of generic NET_SELFTESTS library

2021-04-15 Thread Oleksij Rempel
With this patch the ag71xx on Atheros AR9331 will able to run generic net selftests. Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/atheros/Kconfig | 1 + drivers/net/ethernet/atheros/ag71xx.c | 20 2 files changed, 17 insertions(+), 4 deletions(-) diff --git

[PATCH net-next v2 0/7] provide generic net selftest support

2021-04-15 Thread Oleksij Rempel
support is needed. So far there is only initial infrastructure with basic tests. Oleksij Rempel (7): net: phy: genphy_loopback: add link speed configuration net: phy: micrel: KSZ8081 & KSZ9031: add loopback support net: phy: at803x: AR8085 & AR9331: add loopback support net: add

[PATCH v2 4/7] net: add generic selftest support

2021-04-15 Thread Oleksij Rempel
HY - AR9331 ag71xx -> AR9331 switch -> AR9331 PHY Signed-off-by: Oleksij Rempel --- include/net/selftests.h | 12 ++ net/Kconfig | 4 + net/core/Makefile | 1 + net/core/selftests.c| 366 4 files changed, 383 insertions(+) cr

[PATCH v2 1/7] net: phy: genphy_loopback: add link speed configuration

2021-04-15 Thread Oleksij Rempel
. Signed-off-by: Oleksij Rempel --- drivers/net/phy/phy.c| 3 ++- drivers/net/phy/phy_device.c | 21 +++-- include/linux/phy.h | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index fc2e7cb5b2e5

[PATCH v2 3/7] net: phy: at803x: AR8085 & AR9331: add loopback support

2021-04-15 Thread Oleksij Rempel
PHY loopback is needed for the ethernet controller self test support. This PHY was tested with the generic net sefltest in combination with FEC ethernet controller and AR9331 switch. Signed-off-by: Oleksij Rempel --- drivers/net/phy/at803x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 2/7] net: phy: micrel: KSZ8081 & KSZ9031: add loopback support

2021-04-15 Thread Oleksij Rempel
PHY loopback is needed for the ethernet controller self test support. This PHY was tested with the generic net sefltest in combination with FEC ethernet controller and SJA1105 switch. Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v2 0/7] remove different PHY fixups

2021-04-13 Thread Oleksij Rempel
Hello, On Tue, Mar 30, 2021 at 12:04:50PM -0300, Fabio Estevam wrote: > Hi Andrew, > > On Tue, Mar 30, 2021 at 11:30 AM Andrew Lunn wrote: > > > Hi Fabio > > > > I think it should be merged, and we fixup anything which does break. > > We are probably at the point where more is broken by not

[Ping for Dmitry] Re: [PATCH v5 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-04-13 Thread Oleksij Rempel
Hi Dmitry, probably this mail passed under your radar. Can you please add your statement here. On Mon, Mar 29, 2021 at 11:58:26AM +0100, Jonathan Cameron wrote: > On Mon, 29 Mar 2021 09:31:31 +0200 > Oleksij Rempel wrote: > > > Basically the TI TSC2046 touchscreen controller i

Re: [PATCH net-next v1 4/9] net: dsa: qca: ar9331: make proper initial port defaults

2021-04-04 Thread Oleksij Rempel
Am 04.04.21 um 02:16 schrieb Vladimir Oltean: > On Sat, Apr 03, 2021 at 01:48:43PM +0200, Oleksij Rempel wrote: >> Make sure that all external port are actually isolated from each other, >> so no packets are leaked. >> >> Signed-off-by: Oleksij Rempel >> --- >&

Re: [PATCH net-next v1 1/9] net: dsa: add rcv_post call back

2021-04-03 Thread Oleksij Rempel
Am 04.04.21 um 01:21 schrieb Vladimir Oltean: > On Sat, Apr 03, 2021 at 05:05:34PM +0300, Vladimir Oltean wrote: >> On Sat, Apr 03, 2021 at 01:48:40PM +0200, Oleksij Rempel wrote: >>> Some switches (for example ar9331) do not provide enough information >>> about forwa

Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets

2021-04-03 Thread Oleksij Rempel
Am 04.04.21 um 02:02 schrieb Vladimir Oltean: > On Sat, Apr 03, 2021 at 07:14:56PM +0200, Oleksij Rempel wrote: >> Am 03.04.21 um 16:49 schrieb Andrew Lunn: >>>> @@ -31,6 +96,13 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buff >>>> *skb, >

Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets

2021-04-03 Thread Oleksij Rempel
Am 03.04.21 um 16:49 schrieb Andrew Lunn: >> @@ -31,6 +96,13 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buff >> *skb, >> __le16 *phdr; >> u16 hdr; >> >> +if (dp->stp_state == BR_STATE_BLOCKING) { >> +/* TODO: should we reflect it in the stats? */ >> +

Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets

2021-04-03 Thread Oleksij Rempel
On Sat, Apr 03, 2021 at 04:46:06PM +0300, Vladimir Oltean wrote: > On Sat, Apr 03, 2021 at 03:26:36PM +0200, Oleksij Rempel wrote: > > On Sat, Apr 03, 2021 at 04:03:18PM +0300, Vladimir Oltean wrote: > > > Hi Oleksij, > > > > > > On Sat, Apr 03, 2021 at 01

Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets

2021-04-03 Thread Oleksij Rempel
On Sat, Apr 03, 2021 at 04:03:18PM +0300, Vladimir Oltean wrote: > Hi Oleksij, > > On Sat, Apr 03, 2021 at 01:48:41PM +0200, Oleksij Rempel wrote: > > The ar9331 switch is not forwarding IGMP and MLD packets if IGMP > > snooping is enabled. This patch is trying to mimic the

[PATCH net-next v1 5/9] net: dsa: qca: ar9331: add forwarding database support

2021-04-03 Thread Oleksij Rempel
This switch provides simple address resolution table, without VLAN or multicast specific information. With this patch we are able now to read, modify unicast and mulicast addresses. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 356 +++ 1 file

[PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets

2021-04-03 Thread Oleksij Rempel
The ar9331 switch is not forwarding IGMP and MLD packets if IGMP snooping is enabled. This patch is trying to mimic the HW heuristic to take same decisions as this switch would do to be able to tell the linux bridge if some packet was prabably forwarded or not. Signed-off-by: Oleksij Rempel

[PATCH net-next v1 7/9] net: dsa: qca: ar9331: add bridge support

2021-04-03 Thread Oleksij Rempel
This switch is providing forwarding matrix, with it we can configure individual bridges. Potentially we can configure more then one not VLAN based bridge on this HW. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 73 1 file changed, 73

[PATCH net-next v1 3/9] net: dsa: qca: ar9331: reorder MDIO write sequence

2021-04-03 Thread Oleksij Rempel
operation and overwrite result in one run. To make it work properly, we should do the second part of transfer before the first one is done. So far, this rule seems to work for all registers on this switch. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 7 --- 1 file changed

[PATCH net-next v1 6/9] net: dsa: qca: ar9331: add ageing time support

2021-04-03 Thread Oleksij Rempel
This switch provides global ageing time configuration, so let DSA use it. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c index 4a98f14f31f4

[PATCH net-next v1 8/9] net: dsa: qca: ar9331: add STP support

2021-04-03 Thread Oleksij Rempel
in LISTENING and BLOCKING states. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 69 1 file changed, 69 insertions(+) diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c index bf9588574205..83b59e771a5f 100644 --- a/drivers/net

[PATCH net-next v1 0/9] ar9331: mainline some parts of switch functionality

2021-04-03 Thread Oleksij Rempel
Till now the ar9331 switch was supporting only port multiplexing mode. With this patch set we should be able to bridging, VLAN and STP Oleksij Rempel (9): net: dsa: add rcv_post call back net: dsa: tag_ar9331: detect IGMP and MLD packets net: dsa: qca: ar9331: reorder MDIO write sequence

[PATCH net-next v1 4/9] net: dsa: qca: ar9331: make proper initial port defaults

2021-04-03 Thread Oleksij Rempel
Make sure that all external port are actually isolated from each other, so no packets are leaked. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 145 ++- 1 file changed, 143 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/qca/ar9331

[PATCH net-next v1 9/9] net: dsa: qca: ar9331: add vlan support

2021-04-03 Thread Oleksij Rempel
have multiple VLANs on top of multiple bridges. Hawing one VLAN on top of multiple bridges will fail on different levels, most probably DSA framework should warn if some one wont to make something likes this. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 255

[PATCH net-next v1 1/9] net: dsa: add rcv_post call back

2021-04-03 Thread Oleksij Rempel
and let the dsa framework set skb header pointers and then use preprocessed skb one step later withing the rcv_post call back. This patch is needed for ar9331 switch. Signed-off-by: Oleksij Rempel --- include/net/dsa.h | 2 ++ net/dsa/dsa.c | 4 net/dsa/port.c| 1 + 3 files changed

Re: [PATCH net-next v1 3/3] net: fec: add basic selftest support

2021-04-01 Thread Oleksij Rempel
On Wed, Mar 31, 2021 at 02:27:19PM +0200, Andrew Lunn wrote: > On Tue, Mar 30, 2021 at 03:54:07PM +0200, Oleksij Rempel wrote: > > Port some parts of the stmmac selftest to the FEC. This patch was tested > > on iMX6DL. > > With this tests it is possible to detect some basic i

[PATCH net-next v1 0/3] provide basic selftest support for the ethernet FEC driver

2021-03-30 Thread Oleksij Rempel
This patch set provides diagnostic capabilities for some iMX based boards. So far I add only initial infrastructure with basic tests and fixed some PHY drivers. To validate this tests, I made some common missconfigurations like wrong RGMII type, not configured clock providers and so on. Oleksij

[PATCH net-next v1 2/3] net: phy: at803x: AR8085: add loopback support

2021-03-30 Thread Oleksij Rempel
PHY loopback is needed for the ethernet controller self test support. This PHY was tested with the FEC sefltest. Signed-off-by: Oleksij Rempel --- drivers/net/phy/at803x.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy

[PATCH net-next v1 3/3] net: fec: add basic selftest support

2021-03-30 Thread Oleksij Rempel
-by: Oleksij Rempel --- drivers/net/ethernet/freescale/Makefile | 2 +- drivers/net/ethernet/freescale/fec.h | 6 + drivers/net/ethernet/freescale/fec_main.c | 6 + .../net/ethernet/freescale/fec_selftests.c| 425 ++ 4 files changed, 438 insertions(+), 1 deletion

[PATCH net-next v1 1/3] net: phy: micrel: KSZ8081: add loopback support

2021-03-30 Thread Oleksij Rempel
PHY loopback is needed for the ethernet controller self test support. This PHY was tested with the FEC sefltest. Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index a14a00328fa3

Re: [PATCH v5 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties

2021-03-29 Thread Oleksij Rempel
On Mon, Mar 29, 2021 at 11:25:32AM +0100, Jonathan Cameron wrote: > On Mon, 29 Mar 2021 09:31:29 +0200 > Oleksij Rempel wrote: > > > Settling time and over sampling is a typical challenge for different IIO ADC > > devices. So, introduce channel specific settling-time-us

Re: [PATCH v2 0/7] remove different PHY fixups

2021-03-29 Thread Oleksij Rempel
On Mon, Mar 29, 2021 at 08:44:59AM +0800, Shawn Guo wrote: > On Wed, Mar 24, 2021 at 06:54:24AM +0100, Oleksij Rempel wrote: > > Hi Shawn, > > > > ping, do this patches need some ACK from some one? > > As this will break existing DTBs, I need more ACKs from pe

Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
On Mon, Mar 22, 2021 at 02:27:22PM +, Jonathan Cameron wrote: > > > > +static DECLARE_TI_TSC2046_8_CHANNELS(tsc2046_adc, 12); > > > > + > > > > +static const struct tsc2046_adc_dcfg tsc2046_adc_dcfg_tsc2046e = { > > > > + .channels = tsc2046_adc_channels, > > > > + .num_channels =

[PATCH v5 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel Reviewed-by: Rob Herring --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++ 1 file changed, 115 insertions(+) create mode 100644 Documentation

[PATCH v5 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties

2021-03-29 Thread Oleksij Rempel
Settling time and over sampling is a typical challenge for different IIO ADC devices. So, introduce channel specific settling-time-us and oversampling-ratio properties to cover this use case. Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 1

[PATCH v5 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-29 Thread Oleksij Rempel
will not work out of the box for now. So far, this driver was tested with a custom version of resistive-adc-touch driver, since it needs to be extended to make use of Z1 and Z2 channels. The X/Y are working without additional changes. Signed-off-by: Oleksij Rempel Reviewed-by: Andy Shevchenko

[PATCH v5 0/3] mainline ti tsc2046 adc driver

2021-03-29 Thread Oleksij Rempel
d low-pass filters (or use the touchscreen as a microphone if you like ;) ) Oleksij Rempel (3): dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties dt-bindings:iio:adc: add documentation for TI TSC2046 controller iio: adc: add ADC driver for the

Re: [PATCH v2 0/7] remove different PHY fixups

2021-03-23 Thread Oleksij Rempel
Hi Shawn, ping, do this patches need some ACK from some one? Regards, Oleksij On Tue, Mar 09, 2021 at 12:26:08PM +0100, Oleksij Rempel wrote: > changes v2: > - rebase against latest kernel > - fix networking on RIoTBoard > > This patch series tries to remove most of the imx6

[PATCH v4 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties

2021-03-22 Thread Oleksij Rempel
Settling time and over sampling is a typical challenge for different IIO ADC devices. So, introduce channel specific settling-time-us and oversampling-ratio properties to cover this use case. Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 9 + 1

[PATCH v4 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-22 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel Reviewed-by: Rob Herring --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++ 1 file changed, 115 insertions(+) create mode 100644 Documentation

[PATCH v4 0/3] mainline ti tsc2046 adc driver

2021-03-22 Thread Oleksij Rempel
f you like ;) ) Oleksij Rempel (3): dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties dt-bindings:iio:adc: add documentation for TI TSC2046 controller iio: adc: add ADC driver for the TI TSC2046 controller .../devicetree/bindings/iio/adc/adc.yaml

[PATCH v4 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-22 Thread Oleksij Rempel
will not work out of the box for now. So far, this driver was tested with a custom version of resistive-adc-touch driver, since it needs to be extended to make use of Z1 and Z2 channels. The X/Y are working without additional changes. Signed-off-by: Oleksij Rempel Reviewed-by: Andy Shevchenko

Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-22 Thread Oleksij Rempel
On Mon, Mar 22, 2021 at 03:41:22PM +0200, Andy Shevchenko wrote: > On Mon, Mar 22, 2021 at 12:30 PM Oleksij Rempel > wrote: > > On Fri, Mar 19, 2021 at 07:42:41PM +0200, Andy Shevchenko wrote: > > > On Fri, Mar 19, 2021 at 4:45 PM Oleksij Rempel > > > wrote: &

Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-22 Thread Oleksij Rempel
Hi, On Sat, Mar 20, 2021 at 03:46:01PM +, Jonathan Cameron wrote: > On Fri, 19 Mar 2021 15:45:09 +0100 > Oleksij Rempel wrote: > > > Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized > > for > > the touchscreen use case. By implementing

Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-22 Thread Oleksij Rempel
On Fri, Mar 19, 2021 at 07:42:41PM +0200, Andy Shevchenko wrote: > On Fri, Mar 19, 2021 at 4:45 PM Oleksij Rempel > wrote: > > > > Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized > > for > > the touchscreen use case. By implementing i

[PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-19 Thread Oleksij Rempel
, since it needs to be extended to make use of Z1 and Z2 channels. The X/Y are working without additional changes. Signed-off-by: Oleksij Rempel Reviewed-by: Andy Shevchenko --- MAINTAINERS | 8 + drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers

[PATCH v3 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-19 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel Reviewed-by: Rob Herring --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++ 1 file changed, 115 insertions(+) create mode 100644 Documentation

[PATCH v3 1/3] dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties

2021-03-19 Thread Oleksij Rempel
Settling time and over sampling is a typical challenge for different IIO ADC devices. So, introduce channel specific settling-time-us and oversampling-ratio properties to cover this use case. Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 9 + 1

[PATCH v3 0/3] mainline ti tsc2046 adc driver

2021-03-19 Thread Oleksij Rempel
code paths (resistive-adc-touch, iio-hwmon, etc) - can be used as plain IIO ADC to investigate signaling issues or test real capacity of the plates and attached low-pass filters (or use the touchscreen as a microphone if you like ;) ) Oleksij Rempel (3): dt-bindings:iio:adc: add generic settli

Re: [PATCH v2 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-15 Thread Oleksij Rempel
Hi, On Sat, Mar 13, 2021 at 04:11:19PM +, Jonathan Cameron wrote: > On Fri, 12 Mar 2021 11:55:15 +0100 > Oleksij Rempel wrote: > > > Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized > > for > > the touchscreen use case. By implementing i

[PATCH v2 0/3] mainline ti tsc2046 adc driver

2021-03-12 Thread Oleksij Rempel
advantages over it: - less code to maintain - shared code paths (resistive-adc-touch, iio-hwmon, etc) - can be used as plain IIO ADC to investigate signaling issues or test real capacity of the plates and attached low-pass filters (or use the touchscreen as a microphone if you like ;) ) Oleksij

[PATCH v2 3/3] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-12 Thread Oleksij Rempel
it need to be extended to make use of Z1 and Z2 channels. The X/Y are working without additional changes. Signed-off-by: Oleksij Rempel --- MAINTAINERS | 8 + drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-tsc2046.c | 713

[PATCH v2 1/3] dt-bindings:iio:adc: add generic settling-time-us and average-samples channel properties

2021-03-12 Thread Oleksij Rempel
Settling time and over sampling is a typical challenge for different IIO ADC devices. So, introduce channel specific settling-time-us and average-samples properties to cover this use case. Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/iio/adc/adc.yaml | 9 + 1 file

[PATCH v2 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-12 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti

Re: [PATCH v4 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-10 Thread Oleksij Rempel
Am 10.03.21 um 16:58 schrieb Jiaxun Yang: > > > 在 2021/3/10 21:26, Oleksij Rempel 写道: > [...] >> I would like to understand, why it is impossible. Do fw_arg0 provide memory >> address or some kind of >> count/size? Can it be negative? >> >> We already ha

Re: [PATCH v4 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-10 Thread Oleksij Rempel
Am 10.03.21 um 13:12 schrieb Jiaxun Yang: > > > On Wed, Mar 10, 2021, at 6:57 PM, Oleksij Rempel wrote: >> Hi, >> >> Am 10.03.21 um 08:56 schrieb Qing Zhang: >>> Add DTB boot support, only support Loongson-2K1000 processor >>> for now, determine whethe

Re: [PATCH v4 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-10 Thread Oleksij Rempel
Hi, Am 10.03.21 um 08:56 schrieb Qing Zhang: > Add DTB boot support, only support Loongson-2K1000 processor > for now, determine whether to use the built-in DTB or the DTB > from the firmware by checking the range of CKSEG0 and XKPHYS. > loongson_fw_interface will be used in the future. > >

Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-09 Thread Oleksij Rempel
On Tue, Mar 09, 2021 at 01:46:55PM +0200, Andy Shevchenko wrote: > On Tue, Mar 9, 2021 at 1:42 PM Oleksij Rempel wrote: > > On Tue, Mar 09, 2021 at 01:05:27PM +0200, Andy Shevchenko wrote: > > > On Fri, Mar 5, 2021 at 9:05 PM Jonathan Cameron > > > wrote: > > >

Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-09 Thread Oleksij Rempel
On Tue, Mar 09, 2021 at 01:05:27PM +0200, Andy Shevchenko wrote: > On Fri, Mar 5, 2021 at 9:05 PM Jonathan Cameron > wrote: > > > > On Fri, 5 Mar 2021 14:38:13 +0100 > > Oleksij Rempel wrote: > > > > > Basically the TI TSC2046 touchscreen contr

Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-09 Thread Oleksij Rempel
Hi Jonathan, On Sat, Mar 06, 2021 at 02:59:59PM +, Jonathan Cameron wrote: > On Sat, 6 Mar 2021 14:28:52 +0100 > Oleksij Rempel wrote: > > > On Fri, Mar 05, 2021 at 07:02:39PM +, Jonathan Cameron wrote: > > > On Fri, 5 Mar 2021 14:38:13 +0100 >

Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-09 Thread Oleksij Rempel
On Sun, Mar 07, 2021 at 03:05:31PM -0800, Dmitry Torokhov wrote: > Hi Oleksij, > > On Fri, Mar 05, 2021 at 02:38:13PM +0100, Oleksij Rempel wrote: > > + > > + /* TODO: remove IRQ_NOAUTOEN after needed patches are mainline */ > > + irq_set_status_flags(spi->i

[PATCH v2 0/7] remove different PHY fixups

2021-03-09 Thread Oleksij Rempel
boards, but contains a recommendation to fix the problem in a more portable and future-proof way. regards, Oleksij Oleksij Rempel (7): ARM: imx6q: remove PHY fixup for KSZ9031 ARM: imx6q: remove TX clock delay of ar8031_phy_fixup() ARM: imx6q: remove hand crafted PHY power up

[PATCH v2 4/7] ARM: imx6q: remove clk-out fixup for the Atheros AR8031 and AR8035 PHYs

2021-03-09 Thread Oleksij Rempel
This configuration should be set over device tree. If this patch breaks network functionality on your system, enable the AT803X_PHY driver and set following device tree property in the PHY node: qca,clk-out-frequency = <12500>; Signed-off-by: Oleksij Rempel --- arch/arm/bo

[PATCH v2 1/7] ARM: imx6q: remove PHY fixup for KSZ9031

2021-03-09 Thread Oleksij Rempel
psec = <1860>; This activates the internal delays for RX and TX, with the value as the fixup that is removed in this patch. Signed-off-by: Oleksij Rempel Acked-by: Philippe Schenker --- arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts | 2 +- arch/arm/mach-imx/mach-imx6q.c | 23

[PATCH v2 6/7] ARM: imx6sx: remove Atheros AR8031 PHY fixup

2021-03-09 Thread Oleksij Rempel
}; vddh: vddh-regulator { regulator-name = "VDDH"; }; }; Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx6sx.c | 26 -- 1 file changed, 26 deletions(-) diff --git a/arch/arm/mach-imx/mach-i

[PATCH v2 3/7] ARM: imx6q: remove hand crafted PHY power up in ar8035_phy_fixup()

2021-03-09 Thread Oleksij Rempel
The at803x_resume() handler in the at803x.c PHY driver powers up the PHY properly, so remove this fixup. If this patch breaks your system, enable the AT803X_PHY driver. Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx6q.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch

[PATCH v2 5/7] ARM: imx6q: remove Atheros AR8035 SmartEEE fixup

2021-03-09 Thread Oleksij Rempel
= <24>; }; Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx6q.c | 21 - 1 file changed, 21 deletions(-) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index d12b571a61ac..c9d7c29d95e1 100644 --- a/arch/arm/m

[PATCH v2 7/7] ARM: imx7d: remove Atheros AR8031 PHY fixup

2021-03-09 Thread Oleksij Rempel
regulator-max-microvolt = <180>; }; vddh: vddh-regulator { regulator-name = "VDDH"; }; }; Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx7d.c | 22 -- 1 file changed, 22 deletion

[PATCH v2 2/7] ARM: imx6q: remove TX clock delay of ar8031_phy_fixup()

2021-03-09 Thread Oleksij Rempel
node: phy-mode = "rgmii-txid"; Signed-off-by: Oleksij Rempel --- arch/arm/mach-imx/mach-imx6q.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 78205f90da27..1abefe7e1c3a 100644 --- a/arch/arm/mach-imx/ma

Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-06 Thread Oleksij Rempel
On Fri, Mar 05, 2021 at 07:02:39PM +, Jonathan Cameron wrote: > On Fri, 5 Mar 2021 14:38:13 +0100 > Oleksij Rempel wrote: > > > Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized > > for > > the touchscreen use case. By implementing i

[PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller

2021-03-05 Thread Oleksij Rempel
it need to be extended to make use of Z1 and Z2 channels. The X/Y are working without additional changes. Signed-off-by: Oleksij Rempel --- MAINTAINERS | 8 + drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-tsc2046.c | 652

[PATCH v1 1/2] dt-bindings:iio:adc: add documentation for TI TSC2046 controller

2021-03-05 Thread Oleksij Rempel
Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel --- .../bindings/iio/adc/ti,tsc2046.yaml | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti

[PATCH v1 0/2] mainline ti tsc2046 adc driver

2021-03-05 Thread Oleksij Rempel
if you like ;) ) Oleksij Rempel (2): dt-bindings:iio:adc: add documentation for TI TSC2046 controller iio: adc: add ADC driver for the TI TSC2046 controller .../bindings/iio/adc/ti,tsc2046.yaml | 52 ++ MAINTAINERS | 8 + drivers/iio/adc/Kconfig

[PATCH v8 2/2] counter: add IRQ or GPIO based counter

2021-03-01 Thread Oleksij Rempel
count drops. Signed-off-by: Oleksij Rempel Reviewed-by: Ahmad Fatoum --- MAINTAINERS | 7 + drivers/counter/Kconfig | 10 ++ drivers/counter/Makefile| 1 + drivers/counter/interrupt-cnt.c | 244 4 files changed, 262

[PATCH v8 1/2] dt-bindings: counter: add interrupt-counter binding

2021-03-01 Thread Oleksij Rempel
Add binding for the interrupt counter node Signed-off-by: Oleksij Rempel Reviewed-by: Linus Walleij --- .../bindings/counter/interrupt-counter.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/interrupt-counter.yaml

[PATCH v8 0/2] add support for GPIO or IRQ based event counter

2021-03-01 Thread Oleksij Rempel
for the counter framework with chardev support. Oleksij Rempel (2): dt-bindings: counter: add interrupt-counter binding counter: add IRQ or GPIO based counter .../bindings/counter/interrupt-counter.yaml | 62 + MAINTAINERS | 7 + drivers/counter/Kconfig

Re: [PATCH v7 2/2] counter: add IRQ or GPIO based counter

2021-02-26 Thread Oleksij Rempel
Hi, On Fri, Feb 26, 2021 at 06:45:20PM +0900, William Breathitt Gray wrote: > On Fri, Feb 26, 2021 at 10:08:30AM +0100, Oleksij Rempel wrote: > > Add simple IRQ or GPIO base counter. This device is used to measure > > rotation speed of some agricultural devices, so no

[PATCH net v4 1/1] can: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership

2021-02-26 Thread Oleksij Rempel
/0x264) r10:834e5600 r9: r8: r7:82b44000 r6:82ab1f00 r5:834e5600 r4:83f27400 | [<809c64b8>] (sch_direct_xmit) from [<809c6c0c>] (__qdisc_run+0x4f0/0x534) To fix this problem, only set skb ownership to sockets which have still a ref count > 0. Cc: Oliver Hartkopp C

[PATCH v7 2/2] counter: add IRQ or GPIO based counter

2021-02-26 Thread Oleksij Rempel
count drops. Signed-off-by: Oleksij Rempel Reviewed-by: Ahmad Fatoum --- MAINTAINERS | 7 + drivers/counter/Kconfig | 10 ++ drivers/counter/Makefile| 1 + drivers/counter/interrupt-cnt.c | 243 4 files changed, 261

[PATCH v7 1/2] dt-bindings: counter: add interrupt-counter binding

2021-02-26 Thread Oleksij Rempel
Add binding for the interrupt counter node Signed-off-by: Oleksij Rempel Reviewed-by: Linus Walleij --- .../bindings/counter/interrupt-counter.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/interrupt-counter.yaml

[PATCH v7 0/2] add support for GPIO or IRQ based evemt counter

2021-02-26 Thread Oleksij Rempel
the less, it is better to mainline this driver now (before chardev patches go mainline), to provide developers additional use case for the counter framework with chardev support. Oleksij Rempel (2): dt-bindings: counter: add interrupt-counter binding counter: add IRQ or GPIO based counter

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-25 Thread Oleksij Rempel
On Wed, Feb 24, 2021 at 05:20:21PM +0900, William Breathitt Gray wrote: > On Wed, Feb 24, 2021 at 05:11:03PM +0900, William Breathitt Gray wrote: > > On Wed, Feb 24, 2021 at 08:35:06AM +0100, Oleksij Rempel wrote: > > > On Wed, Feb 24, 2021 at 11:34:06AM +0900, William Br

[PATCH net v3 1/1] can: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership

2021-02-24 Thread Oleksij Rempel
/0x264) r10:834e5600 r9: r8: r7:82b44000 r6:82ab1f00 r5:834e5600 r4:83f27400 | [<809c64b8>] (sch_direct_xmit) from [<809c6c0c>] (__qdisc_run+0x4f0/0x534) To fix this problem, only set skb ownership to sockets which have still a ref count > 0. Cc: Oliver Hartkopp C

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-23 Thread Oleksij Rempel
Hello William, On Wed, Feb 24, 2021 at 11:34:06AM +0900, William Breathitt Gray wrote: > On Tue, Feb 23, 2021 at 06:45:16PM +0100, Oleksij Rempel wrote: > > Hello William, > > > > Here is cooled down technical answer. Excuse me for over reacting. > > Hello Oleksij

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-23 Thread Oleksij Rempel
Hello William, Here is cooled down technical answer. Excuse me for over reacting. On Tue, Feb 23, 2021 at 11:06:56AM +0100, Oleksij Rempel wrote: > On Mon, Feb 22, 2021 at 10:43:00AM +0900, William Breathitt Gray wrote: > > On Mon, Feb 15, 2021 at 10:17:37AM +0100, Oleksij Rem

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-23 Thread Oleksij Rempel
On Mon, Feb 22, 2021 at 10:43:00AM +0900, William Breathitt Gray wrote: > On Mon, Feb 15, 2021 at 10:17:37AM +0100, Oleksij Rempel wrote: > > > > +static irqreturn_t event_cnt_isr(int irq, void *dev_id) > > > > +{ > > > > +

Re: [PATCH v6 0/2] add support for GPIO or IRQ based evemt counter

2021-02-22 Thread Oleksij Rempel
Hi William, On Mon, Feb 22, 2021 at 10:48:56AM +0900, William Breathitt Gray wrote: > On Tue, Feb 16, 2021 at 09:13:54AM +0100, Oleksij Rempel wrote: > > changes v6: > > - rename it to interrupt-counter > > Hi Oleksij, > > Sorry to nitpick again, I think "ir

[PATCH net v4 1/1] net: introduce CAN specific pointer in the struct net_device

2021-02-22 Thread Oleksij Rempel
9b ("can: introduce CAN midlayer private and allocate it automatically") Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Fixes: 497a5757ce4e ("tun: switch to net core provided statistics counters") Signed-off-by: Oleksij Rempel --- drivers/net/can/

Re: [PATCH net v3] net: introduce CAN specific pointer in the struct net_device

2021-02-22 Thread Oleksij Rempel
Hi Jakub, On Mon, Feb 22, 2021 at 05:30:12PM -0800, Jakub Kicinski wrote: > On Mon, 22 Feb 2021 16:02:51 +0100 Oleksij Rempel wrote: > > Since 20dd3850bcf8 ("can: Speed up CAN frame receiption by using > > ml_priv") the CAN framework uses per device specific data i

[PATCH net v2 2/2] can: fix ref count warning if socket was closed before skb was cloned

2021-02-22 Thread Oleksij Rempel
vious patch) takes care of this. It will only clone the skb, if the sk is set and the refcount has not reached 0. Cc: Oliver Hartkopp Cc: Andre Naujoks Cc: Eric Dumazet Fixes: 0ae89beb283a ("can: add destructor for self generated skbs") Signed-off-by: Oleksij Rempel --- include/linux

[PATCH net v2 1/2] skbuff: skb_clone_sk_optional(): add function to always clone a skb and increase refcount on sk if valid

2021-02-22 Thread Oleksij Rempel
-by: Oleksij Rempel --- include/linux/skbuff.h | 1 + net/core/skbuff.c | 27 +++ 2 files changed, 28 insertions(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 6d0a33d1c0db..99d552017508 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h

  1   2   3   4   5   6   7   8   9   10   >