[PATCH v4 4/4] hwmon: lm75: Handle broken device nodes gracefully

2021-02-06 Thread Matwey V. Kornilov
e is still loaded via i2c detection. arch/powerpc/boot/dts/fsl/p2041rdb.dts: lm75b@48 { compatible = "nxp,lm75a"; reg = <0x48>; }; In this case, the sensor is mistakenly considered as ADT75 variant. Fixes: e97a45f1b460 ("hwmon: (lm75) Add OF device ID

[PATCH v4 1/4] hwmon: lm75: Add lm75 to of_match list

2021-02-06 Thread Matwey V. Kornilov
Currently, many boards use just 'lm75' as a compatible string. Signed-off-by: Matwey V. Kornilov --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 + drivers/hwmon/lm75.c | 4 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree

[PATCH v4 2/4] hwmon: lm75: Add nxp,lm75a to of_match list

2021-02-06 Thread Matwey V. Kornilov
NXP LM75A is compatible with original LM75A while it has improved 11-bit precision. https://www.nxp.com/docs/en/data-sheet/LM75A.pdf Signed-off-by: Matwey V. Kornilov --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 + drivers/hwmon/lm75.c | 11

[PATCH v4 0/4] hwmon: lm75: Handle broken device nodes gracefully

2021-02-06 Thread Matwey V. Kornilov
This series is to fix a logical issue in lm75 driver. The actual fix is in the last patch. Other patches are present in order not to break existing users. Matwey V. Kornilov (4): hwmon: lm75: Add lm75 to of_match list hwmon: lm75: Add nxp,lm75a to of_match list hwmon: lm75: Add ti,lm75

[PATCH v4 3/4] hwmon: lm75: Add ti,lm75 to of_match list

2021-02-06 Thread Matwey V. Kornilov
Currently, armada-388-helios4.dts and nuvoton-npcm730-kudo.dts use "ti,lm75" compatible string. TI LM75A/B are compatible with original LM75A https://www.ti.com/lit/ds/symlink/lm75a.pdf https://www.ti.com/lit/ds/symlink/lm75b.pdf Signed-off-by: Matwey V. Kornilov --- Documentation/

[PATCH v3] hwmon: lm75: Handle broken device nodes gracefully

2021-02-02 Thread Matwey V. Kornilov
OF device ID table") Signed-off-by: Matwey V. Kornilov --- Changes since v2: * fixed typo in the message * fixed brackets drivers/hwmon/lm75.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index e447febd121a..53882c33

[PATCH v2] hwmon: lm75: Handle broken device nodes gracefully

2021-02-02 Thread Matwey V. Kornilov
e is still loaded via i2c detection. arch/powerpc/boot/dts/fsl/p2041rdb.dts: lm75b@48 { compatible = "nxp,lm75a"; reg = <0x48>; }; In this case, the sensor is mistakenly considered as ADT75 variant. Fixes: e97a45f1b460 ("hwmon: (lm75) Add OF device ID

[PATCH 1/2] hwmon: lm75: Add NXP LM75A to of_match list

2021-01-30 Thread Matwey V. Kornilov
NXP LM75A is compatible with original LM75A while it has improved 11-bit precision. https://www.nxp.com/docs/en/data-sheet/LM75A.pdf Signed-off-by: Matwey V. Kornilov --- drivers/hwmon/lm75.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c

[PATCH 2/2] hwmon: lm75: Add another name for NXP LM75B to of_match list

2021-01-30 Thread Matwey V. Kornilov
or LM75B was created in e97a45f1b460 ("hwmon: (lm75) Add OF device ID table") Since the previous commit introduces "nxp,lm75a" compatible string for LM75A, there is a reason to add another alias for LM75B. Signed-off-by: Matwey V. Kornilov --- drivers/hwmon/lm75.c | 4 +++

[PATCH] hwmon: lm75: Use zero lm75_type for lm75

2021-01-30 Thread Matwey V. Kornilov
zero. Fixes: e97a45f1b460 ("hwmon: (lm75) Add OF device ID table") Signed-off-by: Matwey V. Kornilov --- drivers/hwmon/lm75.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index e447febd121a..3aa7f9454f57 100644 --- a/driv

[PATCH] media: pwc: Use correct device for DMA

2021-01-04 Thread Matwey V. Kornilov
for ISO transfer") Signed-off-by: Matwey V. Kornilov --- drivers/media/usb/pwc/pwc-if.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 61869636ec61..5e3339cc31c0 100644 --- a/dri

Re: [PATCH v2] ARM: dts: zynq: Fix ethernet PHY for v5 schematics

2020-05-01 Thread Matwey V. Kornilov
Hi Anton, I hope you are doing good. Could you please check this patch, since you are initial author of zynq-zturn.dts and I suppose you do have the "v4" board variant to test. вт, 28 апр. 2020 г. в 13:04, Matwey V. Kornilov : > > There are at least two different versions existin

[PATCH v2] ARM: dts: zynq: Fix ethernet PHY for v5 schematics

2020-04-28 Thread Matwey V. Kornilov
not attach PHY (-19) After the patch: [ 28.257365] macb e000b000.ethernet eth0: PHY [e000b000.ethernet-:00] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL) [ 28.257384] macb e000b000.ethernet eth0: configuring for phy/rgmii-id link mode Signed-off-by: Matwey V. Kornilov --- Changes

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-10-23 Thread Matwey V. Kornilov
пн, 9 сент. 2019 г. в 19:33, Matwey V. Kornilov : > > вт, 2 июл. 2019 г. в 20:33, Bin Liu : > > > > Matwey, > > > > On Tue, Jul 02, 2019 at 08:29:03PM +0300, Matwey V. Kornilov wrote: > > > Ping? > > > > I was offline and just got back. I wil

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-09-09 Thread Matwey V. Kornilov
вт, 2 июл. 2019 г. в 20:33, Bin Liu : > > Matwey, > > On Tue, Jul 02, 2019 at 08:29:03PM +0300, Matwey V. Kornilov wrote: > > Ping? > > I was offline and just got back. I will review it soon. Sorry for the > delay. Ping? > > -Bin. > > > > >

[PATCH] power: reset: reboot-mode: Fix author email format

2019-07-13 Thread Matwey V. Kornilov
Closing angle bracket was missing. Signed-off-by: Matwey V. Kornilov --- drivers/power/reset/reboot-mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/reboot-mode.c b/drivers/power/reset/reboot-mode.c index 06ff035b57f5..b4076b10b893 100644

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-07-02 Thread Matwey V. Kornilov
Ping? пт, 14 июн. 2019 г. в 19:47, Matwey V. Kornilov : > > The series is concerned to issues with isochronous transfer while > streaming the USB webcam data. I discovered the issue first time > when attached PWC USB webcam to AM335x-based BeagleBone Black SBC. > It appeared that

[PATCH v2 6/6] usb: musb: Decrease URB starting latency in musb_advance_schedule()

2019-06-14 Thread Matwey V. Kornilov
] [ 3] IN : 5.5 11.335007 d= 0.03 [ 33 + 6.750] [ 3] DATA0: 00 00 Removing this glitches makes us able to successfully run 10fps video stream from the webcam attached via USB hub. That was previously impossible. Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.

[PATCH v2 3/6] usb: musb: Introduce musb_qh_free() helper function

2019-06-14 Thread Matwey V. Kornilov
Reduce the following similar snippets by using musb_qh_free(). qh->hep->hcpriv = NULL; list_del(>ring); kfree(qh); Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 66 +--- 1 file changed, 32 insertions(+), 34

[PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-06-14 Thread Matwey V. Kornilov
for faster response. References: [1] https://www.spinics.net/lists/linux-usb/msg165735.html [2] https://www.spinics.net/lists/linux-media/msg144279.html Changes since v1: - Patch 6 was redone to keep URB giveback order and stop transmission at erroneous URB. Matwey V. Kornilov (6): usb:

[PATCH v2 2/6] usb: musb: Introduce musb_qh_empty() helper function

2019-06-14 Thread Matwey V. Kornilov
Use musb_qh_empty() instead of >hep->urb_list to avoid code duplicating. Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c

[PATCH v2 4/6] usb: musb: Rename musb_start_urb() to musb_start_next_urb()

2019-06-14 Thread Matwey V. Kornilov
In the following commit we introduce new musb_start_urb() function which will be able to start arbitrary urb. In order to have intuitive function names we rename musb_start_urb() to musb_start_next_urb(). Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 8 1 file

[PATCH v2 1/6] usb: musb: Use USB_DIR_IN when calling musb_advance_schedule()

2019-06-14 Thread Matwey V. Kornilov
Use USB_DIR_IN instead of 1 when calling musb_advance_schedule(). This is consistent with the rest of musb_host.c code and impoves the readability. Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH v2 5/6] usb: musb: Introduce musb_start_urb()

2019-06-14 Thread Matwey V. Kornilov
This function allows us to start arbitrary urb. Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 3a202a2a521d..ed99ecd4e63a 100644

Re: [PATCH 6/6] usb: musb: Decrease URB starting latency in musb_advance_schedule()

2019-05-04 Thread Matwey V. Kornilov
вт, 30 апр. 2019 г. в 18:31, Bin Liu : > > Hi Greg and all devs, > > On Wed, Apr 03, 2019 at 09:53:10PM +0300, Matwey V. Kornilov wrote: > > Previously, the algorithm was the following: > > > > 1. giveback current URB > > 2. if current qh is not empt

[PATCH v2] usb: musb: Fix urb->hcpriv value

2019-02-18 Thread Matwey V. Kornilov
("musb: potential use after free") Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index b59ce9ad14ce..a60d52c7e112 100644 --- a/drivers/usb/musb/m

Re: [PATCH] usb: musb: Fix potential NULL dereference

2019-01-26 Thread Matwey V. Kornilov
сб, 26 янв. 2019 г. в 00:37, Alan Stern : > > On Fri, 25 Jan 2019, Bin Liu wrote: > > > On Thu, Jan 24, 2019 at 09:47:02PM +0300, Matwey V. Kornilov wrote: > > > By the way, why do we need to store the qh in urb->hcpriv? > > > qh can always be accessible th

Re: [PATCH] usb: musb: Fix potential NULL dereference

2019-01-24 Thread Matwey V. Kornilov
By the way, why do we need to store the qh in urb->hcpriv? qh can always be accessible through urb->ep->hcpriv Wouldn't it be better to drop entire urb->hcpriv usage? ср, 23 янв. 2019 г. в 20:52, Matwey V. Kornilov : > > We assign "urb->hcpriv = qh;" a few lines

[PATCH] usb: musb: Fix potential NULL dereference

2019-01-23 Thread Matwey V. Kornilov
We assign "urb->hcpriv = qh;" a few lines down. The valid qh for the urb is hep->hcpriv in this code path. Fixes: 714bc5ef3eda ("musb: potential use after free") Signed-off-by: Matwey V. Kornilov --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH v6 0/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-24 Thread Matwey V. Kornilov
t; Ezequiel García, VanguardiaSur > www.vanguardiasur.com.ar -- With best regards, Matwey V. Kornilov

Re: [PATCH v6 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-12 Thread Matwey V. Kornilov
does v6 address the comments made in v5? Hi, v6 addresses the comments made by Laurent Pinchart on Oct, 31: https://www.spinics.net/lists/linux-media/msg142216.html namely, dma_sync_single_for_device() is introduced in the proper place > > -- Steve -- With best regards, Matwey V. Kornilov

Re: [PATCH v6 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-12 Thread Matwey V. Kornilov
пт, 30 нояб. 2018 г. в 15:20, Matwey V. Kornilov : > > ср, 21 нояб. 2018 г. в 21:15, Matwey V. Kornilov : > > > > пт, 9 нояб. 2018 г. в 22:03, Matwey V. Kornilov : > > > > > > DMA cocherency slows the transfer down on systems without hardware > > > co

[PATCH v6 1/2] media: usb: pwc: Introduce TRACE_EVENTs for pwc_isoc_handler()

2018-11-09 Thread Matwey V. Kornilov
ble to measure performance of PWC driver, traces are introduced in URB handler section. [1] https://www.spinics.net/lists/linux-usb/msg165735.html Signed-off-by: Matwey V. Kornilov --- drivers/media/usb/pwc/pwc-if.c | 7 + include/trace/events/pwc.h |

[PATCH v6 1/2] media: usb: pwc: Introduce TRACE_EVENTs for pwc_isoc_handler()

2018-11-09 Thread Matwey V. Kornilov
ble to measure performance of PWC driver, traces are introduced in URB handler section. [1] https://www.spinics.net/lists/linux-usb/msg165735.html Signed-off-by: Matwey V. Kornilov --- drivers/media/usb/pwc/pwc-if.c | 7 + include/trace/events/pwc.h |

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-08-28 Thread Matwey V. Kornilov
вт, 21 авг. 2018 г. в 20:06, Matwey V. Kornilov : > > DMA cocherency slows the transfer down on systems without hardware > coherent DMA. > Instead we use noncocherent DMA memory and explicit sync at data receive > handler. > > Based on previous commit the following performance

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-08-28 Thread Matwey V. Kornilov
вт, 21 авг. 2018 г. в 20:06, Matwey V. Kornilov : > > DMA cocherency slows the transfer down on systems without hardware > coherent DMA. > Instead we use noncocherent DMA memory and explicit sync at data receive > handler. > > Based on previous commit the following performance

Re: [PATCH v4 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-08-21 Thread Matwey V. Kornilov
2018-08-17 20:44 GMT+03:00 Matwey V. Kornilov : > пт, 10 авг. 2018 г. в 17:27, Alan Stern : >> >> On Fri, 10 Aug 2018, Laurent Pinchart wrote: >> >> > > > Aren't you're missing a dma_sync_single_for_device() call before >> > > > submitting t

Re: [PATCH v4 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-08-21 Thread Matwey V. Kornilov
2018-08-17 20:44 GMT+03:00 Matwey V. Kornilov : > пт, 10 авг. 2018 г. в 17:27, Alan Stern : >> >> On Fri, 10 Aug 2018, Laurent Pinchart wrote: >> >> > > > Aren't you're missing a dma_sync_single_for_device() call before >> > > > submitting t

Re: [PATCH 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-07-25 Thread Matwey V. Kornilov
2018-07-24 23:55 GMT+03:00 Alan Stern : > On Tue, 24 Jul 2018, Matwey V. Kornilov wrote: > >> 2018-07-23 21:57 GMT+03:00 Alan Stern : >> > On Mon, 23 Jul 2018, Matwey V. Kornilov wrote: >> > >> >> I've tried to strategies: >> >> >> &

Re: [PATCH 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-07-25 Thread Matwey V. Kornilov
2018-07-24 23:55 GMT+03:00 Alan Stern : > On Tue, 24 Jul 2018, Matwey V. Kornilov wrote: > >> 2018-07-23 21:57 GMT+03:00 Alan Stern : >> > On Mon, 23 Jul 2018, Matwey V. Kornilov wrote: >> > >> >> I've tried to strategies: >> >> >> &

Re: [PATCH 1/4] serial: 8250: Copy em485 from port to real port.

2018-06-07 Thread Matwey V. Kornilov
2018-06-06 22:15 GMT+03:00 Giulio Benetti : > Il 06/06/2018 20:55, Matwey V. Kornilov ha scritto: >> >> 2018-06-06 16:11 GMT+03:00 Andy Shevchenko >> : >>> >>> On Wed, 2018-06-06 at 14:15 +0200, Giulio Benetti wrote: >>>> >>>> Il 0

Re: [PATCH 1/4] serial: 8250: Copy em485 from port to real port.

2018-06-07 Thread Matwey V. Kornilov
2018-06-06 22:15 GMT+03:00 Giulio Benetti : > Il 06/06/2018 20:55, Matwey V. Kornilov ha scritto: >> >> 2018-06-06 16:11 GMT+03:00 Andy Shevchenko >> : >>> >>> On Wed, 2018-06-06 at 14:15 +0200, Giulio Benetti wrote: >>>> >>>> Il 0

Re: [PATCH 1/4] serial: 8250: Copy em485 from port to real port.

2018-06-06 Thread Matwey V. Kornilov
) which is called whenever user > space does TIOCGRS485 IOCTL. > > So, it's completely driven by user space which makes sense by my > opinion. AFAIU, Giulio wants to add support for rs485-enabled-at-boot-time device tree option (see bindings/serial/rs485.txt for reference). I suppose it is only important for use-case when rs485 used as slave (peripheral role). > > -- > Andy Shevchenko > Intel Finland Oy -- With best regards, Matwey V. Kornilov

Re: [PATCH 1/4] serial: 8250: Copy em485 from port to real port.

2018-06-06 Thread Matwey V. Kornilov
) which is called whenever user > space does TIOCGRS485 IOCTL. > > So, it's completely driven by user space which makes sense by my > opinion. AFAIU, Giulio wants to add support for rs485-enabled-at-boot-time device tree option (see bindings/serial/rs485.txt for reference). I suppose it is only important for use-case when rs485 used as slave (peripheral role). > > -- > Andy Shevchenko > Intel Finland Oy -- With best regards, Matwey V. Kornilov

Re: [PATCH 4/8] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.

2018-06-05 Thread Matwey V. Kornilov
2018-06-04 21:50 GMT+03:00 Giulio Benetti : > Il 04/06/2018 19:40, Matwey V. Kornilov ha scritto: >> >> 01.06.2018 15:40, Giulio Benetti пишет: >>> >>> Some 8250 ports only have TEMT interrupt, so current implementation >>> can't work for ports w

Re: [PATCH 4/8] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.

2018-06-05 Thread Matwey V. Kornilov
2018-06-04 21:50 GMT+03:00 Giulio Benetti : > Il 04/06/2018 19:40, Matwey V. Kornilov ha scritto: >> >> 01.06.2018 15:40, Giulio Benetti пишет: >>> >>> Some 8250 ports only have TEMT interrupt, so current implementation >>> can't work for ports w

Re: [PATCH 4/8] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.

2018-06-04 Thread Matwey V. Kornilov
01.06.2018 15:40, Giulio Benetti пишет: > Some 8250 ports only have TEMT interrupt, so current implementation > can't work for ports without it. The only chance to make it work is to > loop-read on LSR register. > > With NO TEMT interrupt check if both TEMT and THRE are set looping on > LSR

Re: [PATCH 4/8] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.

2018-06-04 Thread Matwey V. Kornilov
01.06.2018 15:40, Giulio Benetti пишет: > Some 8250 ports only have TEMT interrupt, so current implementation > can't work for ports without it. The only chance to make it work is to > loop-read on LSR register. > > With NO TEMT interrupt check if both TEMT and THRE are set looping on > LSR

Re: [PATCH 0/8] serial: 8250: Add 485 emulation to 8250_dw.

2018-06-04 Thread Matwey V. Kornilov
+- >> drivers/tty/serial/8250/8250_port.c | 33 --- >> drivers/tty/serial/serial_core.c| 12 ++++- >> include/linux/serial_8250.h | 1 + >> 7 files changed, 79 insertions(+), 14 deletions(-) >> > > -- > Andy Shevchenko > Intel Finland Oy > -- With best regards, Matwey V. Kornilov. Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia 119234, Moscow, Universitetsky pr-k 13, +7 (495) 9392382

Re: [PATCH 0/8] serial: 8250: Add 485 emulation to 8250_dw.

2018-06-04 Thread Matwey V. Kornilov
+- >> drivers/tty/serial/8250/8250_port.c | 33 --- >> drivers/tty/serial/serial_core.c| 12 ++++- >> include/linux/serial_8250.h | 1 + >> 7 files changed, 79 insertions(+), 14 deletions(-) >> > > -- > Andy Shevchenko > Intel Finland Oy > -- With best regards, Matwey V. Kornilov. Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia 119234, Moscow, Universitetsky pr-k 13, +7 (495) 9392382

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-16 Thread Matwey V. Kornilov
2017-11-16 19:32 GMT+03:00 Bin Liu <b-...@ti.com>: > Hi, > > On Wed, Nov 15, 2017 at 06:19:08PM +0300, Matwey V. Kornilov wrote: >> The issue is also present in 4.9.60-ti-r75 >> >> 2017-11-04 17:05 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: &

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-16 Thread Matwey V. Kornilov
2017-11-16 19:32 GMT+03:00 Bin Liu : > Hi, > > On Wed, Nov 15, 2017 at 06:19:08PM +0300, Matwey V. Kornilov wrote: >> The issue is also present in 4.9.60-ti-r75 >> >> 2017-11-04 17:05 GMT+03:00 Matwey V. Kornilov : >> > Hi Bin, >> > >> > I've j

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-15 Thread Matwey V. Kornilov
The issue is also present in 4.9.60-ti-r75 2017-11-04 17:05 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: > Hi Bin, > > I've just checked that the issue is still present in 4.13.10. > > 2017-04-27 13:20 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: >&

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-15 Thread Matwey V. Kornilov
The issue is also present in 4.9.60-ti-r75 2017-11-04 17:05 GMT+03:00 Matwey V. Kornilov : > Hi Bin, > > I've just checked that the issue is still present in 4.13.10. > > 2017-04-27 13:20 GMT+03:00 Matwey V. Kornilov : >> This commit changes the order

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-04 Thread Matwey V. Kornilov
Hi Bin, I've just checked that the issue is still present in 4.13.10. 2017-04-27 13:20 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: > This commit changes the order of actions undertaken in > musb_advance_schedule() in order to overcome issue with broken > isochron

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-11-04 Thread Matwey V. Kornilov
Hi Bin, I've just checked that the issue is still present in 4.13.10. 2017-04-27 13:20 GMT+03:00 Matwey V. Kornilov : > This commit changes the order of actions undertaken in > musb_advance_schedule() in order to overcome issue with broken > isochronous transfer [1]. > > T

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-30 Thread Matwey V. Kornilov
2017-04-29 17:24 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: > 2017-04-29 11:16 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: >> 2017-04-28 16:30 GMT+03:00 Bin Liu <b-...@ti.com>: >>> On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote:

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-30 Thread Matwey V. Kornilov
2017-04-29 17:24 GMT+03:00 Matwey V. Kornilov : > 2017-04-29 11:16 GMT+03:00 Matwey V. Kornilov : >> 2017-04-28 16:30 GMT+03:00 Bin Liu : >>> On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote: >>>> 2017-04-28 15:43 GMT+03:00 Bin Liu : >>>

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-29 Thread Matwey V. Kornilov
2017-04-29 11:16 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: > 2017-04-28 16:30 GMT+03:00 Bin Liu <b-...@ti.com>: >> On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote: >>> 2017-04-28 15:43 GMT+03:00 Bin Liu <b-...@ti.com>: >>&g

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-29 Thread Matwey V. Kornilov
2017-04-29 11:16 GMT+03:00 Matwey V. Kornilov : > 2017-04-28 16:30 GMT+03:00 Bin Liu : >> On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote: >>> 2017-04-28 15:43 GMT+03:00 Bin Liu : >>> > On Fri, Apr 28, 2017 at 03:13:55PM +0300, Matwey V. K

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-29 Thread Matwey V. Kornilov
2017-04-28 16:30 GMT+03:00 Bin Liu <b-...@ti.com>: > On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote: >> 2017-04-28 15:43 GMT+03:00 Bin Liu <b-...@ti.com>: >> > On Fri, Apr 28, 2017 at 03:13:55PM +0300, Matwey V. Kornilov wrote: >> >> w

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-29 Thread Matwey V. Kornilov
2017-04-28 16:30 GMT+03:00 Bin Liu : > On Fri, Apr 28, 2017 at 04:15:09PM +0300, Matwey V. Kornilov wrote: >> 2017-04-28 15:43 GMT+03:00 Bin Liu : >> > On Fri, Apr 28, 2017 at 03:13:55PM +0300, Matwey V. Kornilov wrote: >> >> which i >> >> >> >&g

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
2017-04-28 15:43 GMT+03:00 Bin Liu <b-...@ti.com>: > On Fri, Apr 28, 2017 at 03:13:55PM +0300, Matwey V. Kornilov wrote: >> which i >> >> 2017-04-28 14:58 GMT+03:00 Bin Liu <b-...@ti.com>: >> > On Fri, Apr 28, 2017 at 10:04:30AM +0300, Matwey V. Kornil

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
2017-04-28 15:43 GMT+03:00 Bin Liu : > On Fri, Apr 28, 2017 at 03:13:55PM +0300, Matwey V. Kornilov wrote: >> which i >> >> 2017-04-28 14:58 GMT+03:00 Bin Liu : >> > On Fri, Apr 28, 2017 at 10:04:30AM +0300, Matwey V. Kornilov wrote: >> >> 2017-04-27 20:

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
which i 2017-04-28 14:58 GMT+03:00 Bin Liu <b-...@ti.com>: > On Fri, Apr 28, 2017 at 10:04:30AM +0300, Matwey V. Kornilov wrote: >> 2017-04-27 20:13 GMT+03:00 Bin Liu <b-...@ti.com>: >> > On Thu, Apr 27, 2017 at 07:26:31PM +0300, Matwey V. Kornilov wrote: >> &

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
which i 2017-04-28 14:58 GMT+03:00 Bin Liu : > On Fri, Apr 28, 2017 at 10:04:30AM +0300, Matwey V. Kornilov wrote: >> 2017-04-27 20:13 GMT+03:00 Bin Liu : >> > On Thu, Apr 27, 2017 at 07:26:31PM +0300, Matwey V. Kornilov wrote: >> >> 2017-04-27 18:35 GMT+03:

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
2017-04-27 20:13 GMT+03:00 Bin Liu <b-...@ti.com>: > On Thu, Apr 27, 2017 at 07:26:31PM +0300, Matwey V. Kornilov wrote: >> 2017-04-27 18:35 GMT+03:00 Bin Liu <b-...@ti.com>: >> > Hi Matwey, >> > >> > On Thu, Apr 27, 2017 at 01:20:33PM +0300, Mat

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
2017-04-27 20:13 GMT+03:00 Bin Liu : > On Thu, Apr 27, 2017 at 07:26:31PM +0300, Matwey V. Kornilov wrote: >> 2017-04-27 18:35 GMT+03:00 Bin Liu : >> > Hi Matwey, >> > >> > On Thu, Apr 27, 2017 at 01:20:33PM +0300, Matwey V. Kornilov wrote: >> >> Thi

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-27 Thread Matwey V. Kornilov
2017-04-27 18:35 GMT+03:00 Bin Liu <b-...@ti.com>: > Hi Matwey, > > On Thu, Apr 27, 2017 at 01:20:33PM +0300, Matwey V. Kornilov wrote: >> This commit changes the order of actions undertaken in >> musb_advance_schedule() in order to overcome issue with broken

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-27 Thread Matwey V. Kornilov
2017-04-27 18:35 GMT+03:00 Bin Liu : > Hi Matwey, > > On Thu, Apr 27, 2017 at 01:20:33PM +0300, Matwey V. Kornilov wrote: >> This commit changes the order of actions undertaken in >> musb_advance_schedule() in order to overcome issue with broken >> isochronous transfer

[PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-27 Thread Matwey V. Kornilov
ng urb->callback() after setting MUSB_RXCSR_H_REQPKT for the next urb if there is the next urb pending in queue. [1] https://www.spinics.net/lists/linux-usb/msg145747.html Fixes: f551e1352983 ("Revert "usb: musb: musb_host: Enable HCD_BH flag to handle urb return in bottom half"&q

[PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-27 Thread Matwey V. Kornilov
ng urb->callback() after setting MUSB_RXCSR_H_REQPKT for the next urb if there is the next urb pending in queue. [1] https://www.spinics.net/lists/linux-usb/msg145747.html Fixes: f551e1352983 ("Revert "usb: musb: musb_host: Enable HCD_BH flag to handle urb return in bottom half"&q

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2017-01-14 Thread Matwey V. Kornilov
> > Mathieu -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2...@jabber.ru

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2017-01-14 Thread Matwey V. Kornilov
o it soon. Your board is supported by mxser driver > (drivers/tty/mxser.c). > I think it would be nice to move everything from mxser.c to 8250_moxa.c. > > The problem is mxser supports ISA and PCI boards and I don't have the > hardware to test it. > > Mathieu -- With b

[PATCH] serial: 8250: moxa: Store num_ports in brd

2016-12-29 Thread Matwey V. Kornilov
When struct moxa8250_board is allocated, then num_ports should be initialized in order to use it later in moxa8250_remove. Signed-off-by: Matwey V. Kornilov <mat...@sai.msu.ru> --- drivers/tty/serial/8250/8250_moxa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/seria

[PATCH] serial: 8250: moxa: Store num_ports in brd

2016-12-29 Thread Matwey V. Kornilov
When struct moxa8250_board is allocated, then num_ports should be initialized in order to use it later in moxa8250_remove. Signed-off-by: Matwey V. Kornilov --- drivers/tty/serial/8250/8250_moxa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/8250/8250_moxa.c b/drivers

[PATCH] igb: Explicitly select page 0 at initialization

2016-11-24 Thread Matwey V. Kornilov
"igb: Remove GS40G specific defines/functions") Cc: <sta...@vger.kernel.org> # 4.5+ Signed-off-by: Matwey V. Kornilov <mat...@sai.msu.ru> --- drivers/net/ethernet/intel/igb/e1000_82575.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/e1000_82575

[PATCH] igb: Explicitly select page 0 at initialization

2016-11-24 Thread Matwey V. Kornilov
"igb: Remove GS40G specific defines/functions") Cc: # 4.5+ Signed-off-by: Matwey V. Kornilov --- drivers/net/ethernet/intel/igb/e1000_82575.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c

Re: [PATCH v2 0/2] serial: Add IrDA support to 8250_dw driver

2016-10-28 Thread Matwey V. Kornilov
++ > drivers/tty/serial/8250/8250_port.c | 12 ++-- > include/linux/serial_8250.h | 4 > include/linux/serial_core.h | 2 ++ > 5 files changed, 43 insertions(+), 2 deletions(-) > > -- > 1.9.1 > -- With best regards, Matwey V. Kornilov. Sternberg As

Re: [PATCH v2 0/2] serial: Add IrDA support to 8250_dw driver

2016-10-28 Thread Matwey V. Kornilov
.c | 12 ++-- > include/linux/serial_8250.h | 4 > include/linux/serial_core.h | 2 ++ > 5 files changed, 43 insertions(+), 2 deletions(-) > > -- > 1.9.1 > -- With best regards, Matwey V. Kornilov. Sternberg Astronomical Institute, Lomonosov Mo

Re: [PATCH 0967/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Matwey V. Kornilov
odule_param_array(probe_rsa, ulong, _rsa_count, 0444); > +module_param_array(probe_rsa, ulong, _rsa_count, S_IRUSR | S_IRGRP | > S_IROTH); > MODULE_PARM_DESC(probe_rsa, "Probe I/O ports for RSA"); > #endif > MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR); > -- > 2.9.2 > -- With best regards, Matwey V. Kornilov. Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382

Re: [PATCH 0967/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Matwey V. Kornilov
rsa, ulong, _rsa_count, S_IRUSR | S_IRGRP | > S_IROTH); > MODULE_PARM_DESC(probe_rsa, "Probe I/O ports for RSA"); > #endif > MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR); > -- > 2.9.2 > -- With best regards, Matwey V. Kornilov. Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382

Re: [PATCH 0967/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Matwey V. Kornilov
And actually S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH can be simplified to S_IRUGO | S_IWUSR, not? I think we need to have and use dedicated special macros for most common magic octal permissions like 0755 or 0644. 2016-08-02 16:19 GMT+03:00 Matwey V. Kornilov <mat...@sai.msu.ru>: > Hel

Re: [PATCH 0967/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Matwey V. Kornilov
And actually S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH can be simplified to S_IRUGO | S_IWUSR, not? I think we need to have and use dedicated special macros for most common magic octal permissions like 0755 or 0644. 2016-08-02 16:19 GMT+03:00 Matwey V. Kornilov : > Hello, > > I believe

kernel/time/ntp.c: possible unit inconsistency

2016-07-08 Thread Matwey V. Kornilov
res maxerror in usec and ntpd does in nsec. -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2...@jabber.ru

kernel/time/ntp.c: possible unit inconsistency

2016-07-08 Thread Matwey V. Kornilov
res maxerror in usec and ntpd does in nsec. -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2...@jabber.ru

Re: [PATCH] 8250: Hypervisors always export working 16550A UARTs.

2016-04-29 Thread Matwey V. Kornilov
> So the patch detects if we're running virtualized (perhaps it should > only check for qemu/KVM?) and if so, shortcuts the tests. Does anybody know, whether it is possible to pass through real hardware serial port to a guest? It seems to be as simple as to pass through an interrupt and memory

Re: [PATCH] 8250: Hypervisors always export working 16550A UARTs.

2016-04-29 Thread Matwey V. Kornilov
if we're running virtualized (perhaps it should > only check for qemu/KVM?) and if so, shortcuts the tests. Does anybody know, whether it is possible to pass through real hardware serial port to a guest? It seems to be as simple as to pass through an interrupt and memory IO ports. >

Re: [PATCH v2] tty/serial/8250: fix RS485 half-duplex RX

2016-03-31 Thread Matwey V. Kornilov
IER_RDI interrupts after TX is over. > > Cc: Matwey V. Kornilov <mat...@sai.msu.ru> > Signed-off-by: Yegor Yefremov <yegorsli...@googlemail.com> > Fixes: e490c9144cfa ("tty: Add software emulated RS485 support for 8250") Acked-by: Matwey V. Kornilov <mat...@sai.msu.r

Re: [PATCH v2] tty/serial/8250: fix RS485 half-duplex RX

2016-03-31 Thread Matwey V. Kornilov
2016-03-24 11:03 GMT+03:00 : > From: Yegor Yefremov > > When in half-duplex mode RX will be disabled before TX, but not > enabled after deactivating transmitter. This patch enables > UART_IER_RLSI and UART_IER_RDI interrupts after TX is over. > > Cc: Matwey V. Kornilov &

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2016-03-19 Thread Matwey V. Kornilov
250_moxa.c. Last time when I tried to run my moxa PCI board with 3.1(?) and mxser it deadlocked my PC from time to time. 8250_moxa implementation is much more cleaner. > > The problem is mxser supports ISA and PCI boards and I don't have the > hardware to test it. > > Mathieu

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2016-03-19 Thread Matwey V. Kornilov
hen I tried to run my moxa PCI board with 3.1(?) and mxser it deadlocked my PC from time to time. 8250_moxa implementation is much more cleaner. > > The problem is mxser supports ISA and PCI boards and I don't have the > hardware to test it. > > Mathieu -- With best regards, Matwey

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2016-03-14 Thread Matwey V. Kornilov
24.02.2016 22:10, Mathieu OTHACEHE пишет: Add support for : - CP-102E: 2 ports RS232 PCIE card - CP-102EL: 2 ports RS232 PCIE card - CP-132EL: 2 ports RS422/485 PCIE card - CP-114EL: 4 ports RS232/422/485 PCIE card - CP-104EL-A: 4 ports RS232 PCIE card - CP-168EL-A: 8 ports RS232 PCIE card -

Re: [PATCH v3] tty: serial: 8250: add MOXA Smartio MUE boards support

2016-03-14 Thread Matwey V. Kornilov
24.02.2016 22:10, Mathieu OTHACEHE пишет: Add support for : - CP-102E: 2 ports RS232 PCIE card - CP-102EL: 2 ports RS232 PCIE card - CP-132EL: 2 ports RS422/485 PCIE card - CP-114EL: 4 ports RS232/422/485 PCIE card - CP-104EL-A: 4 ports RS232 PCIE card - CP-168EL-A: 8 ports RS232 PCIE card -

Re: 4.5.0-rc6: kernel BUG at ../mm/memory.c:1879

2016-03-07 Thread Matwey V. Kornilov
2016-03-07 16:03 GMT+03:00 Russell King - ARM Linux <li...@arm.linux.org.uk>: > On Mon, Mar 07, 2016 at 01:51:40PM +0100, Vlastimil Babka wrote: >> [+CC ARM, module maintainers/lists] >> >> On 03/07/2016 12:14 PM, Matwey V. Kornilov wrote: >> > >> >

Re: 4.5.0-rc6: kernel BUG at ../mm/memory.c:1879

2016-03-07 Thread Matwey V. Kornilov
2016-03-07 16:03 GMT+03:00 Russell King - ARM Linux : > On Mon, Mar 07, 2016 at 01:51:40PM +0100, Vlastimil Babka wrote: >> [+CC ARM, module maintainers/lists] >> >> On 03/07/2016 12:14 PM, Matwey V. Kornilov wrote: >> > >> >Hello, >> > >> >

[PATCH v2 RESEND] tty: serial: Use GFP_ATOMIC instead of GFP_KERNEL in serial8250_em485_init()

2016-02-27 Thread Matwey V. Kornilov
анов <torso.n...@gmail.com> Signed-off-by: Matwey V. Kornilov <mat...@sai.msu.ru> --- Changes from v1: - Properly filled Reported-by: tag drivers/tty/serial/8250/8250_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c

[PATCH v2 RESEND] tty: serial: Use GFP_ATOMIC instead of GFP_KERNEL in serial8250_em485_init()

2016-02-27 Thread Matwey V. Kornilov
санов Signed-off-by: Matwey V. Kornilov --- Changes from v1: - Properly filled Reported-by: tag drivers/tty/serial/8250/8250_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index c908b77..4

Re: [PATCH v1] tty: serial: Use GFP_ATOMIC instead of GFP_KERNEL in serial8250_em485_init()

2016-02-18 Thread Matwey V. Kornilov
2016-02-19 2:47 GMT+03:00 Greg Kroah-Hartman <gre...@linuxfoundation.org>: > On Thu, Feb 18, 2016 at 11:29:07PM +0300, Matwey V. Kornilov wrote: >> 2016-02-18 23:21 GMT+03:00 Andy Shevchenko <andy.shevche...@gmail.com>: >> > On Thu, Feb 18, 2016 at 8:47 PM, Matwey

Re: [PATCH v1] tty: serial: Use GFP_ATOMIC instead of GFP_KERNEL in serial8250_em485_init()

2016-02-18 Thread Matwey V. Kornilov
2016-02-19 2:47 GMT+03:00 Greg Kroah-Hartman : > On Thu, Feb 18, 2016 at 11:29:07PM +0300, Matwey V. Kornilov wrote: >> 2016-02-18 23:21 GMT+03:00 Andy Shevchenko : >> > On Thu, Feb 18, 2016 at 8:47 PM, Matwey V. Kornilov >> > wrote: >> >> serial8250_e

  1   2   3   4   >