[PATCH] vsock/virtio: set SOCK_DONE on peer shutdown

2019-06-14 Thread Stephen Barber
. Signed-off-by: Stephen Barber --- net/vmw_vsock/virtio_transport_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index f3f3d06cb6d8..e30f53728725 100644 --- a/net/vmw_vsock

[PATCH] ALSA: usb-audio: don't retry snd_usb_ctl_msg after timeout

2017-08-17 Thread Stephen Barber
[] ret_from_fork+0x7c/0xb0 [] ? __kthread_parkme+0x67/0x67 Signed-off-by: Stephen Barber --- sound/usb/mixer.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 082736c539bc..253fc946db29 100644 --- a/sound/usb/mixer.c

[PATCH] dmaengine: pl330: Handle xferred count if DMAMOV hasn't finished

2016-11-01 Thread Stephen Barber
After executing DMAGO it's possible that a request can come in for the current xferred count, but if that happens too soon then DMAMOV SAR/DAR may not have yet completed. If that happens, we should explicitly return 0 since nothing has been transferred yet. Signed-off-by: Stephen B

[PATCH] ASoC: da7219: Connect output enable register to DAIOUT

2016-10-27 Thread Stephen Barber
da7219 output (for headset capture) should be set to high-impedance when not in use, since it will otherwise interfere with output from other codecs attached to the same DAI. Signed-off-by: Stephen Barber --- sound/soc/codecs/da7219.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH] dmaengine: pl330: fix residual for non-running BUSY descriptors

2016-08-18 Thread Stephen Barber
idual calculations consistent even with the non-running BUSY descriptors in the work list. Signed-off-by: Stephen Barber --- drivers/dma/pl330.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 372b435..ff8f889 100644 --- a/dr

Re: [PATCH] dmaengine: pl330: get transfer count for BUSY descriptor in list

2016-08-18 Thread Stephen Barber
On Thu, Aug 18, 2016 at 4:08 AM, Hsin-Yu Chao wrote: > > A descrptor of status BUSY could stay in pending list with non-zero > number of transferred count. In this case we should query the actual > transfered count or the total residual will be wrong and cause > unexpected hw_ptr move. > > Signed-

Re: [PATCH 2/2] thermal: rockchip: optimize sensor auto accessing period

2016-07-28 Thread Stephen Barber
_TIME1875 /* 2.5ms */ > > #define TSADCV2_USER_INTER_PD_SOC 0x340 /* 13 clocks */ > > -- > 1.9.1 > Tested-by: Stephen Barber Steve

Re: [PATCH 1/2] thermal: rockchip: enhance the tsadc's bandgap feature for rk3399

2016-07-28 Thread Stephen Barber
map_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); > + regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); > + > usleep_range(15, 100); /* The spec note says at least 15 us */ > regmap_write(grf, GRF_SARADC_TESTBIT, GRF_SARADC_TESTBIT_ON); > regmap_write(grf, GRF_TSADC_TESTBIT_H, > GRF_TSADC_TESTBIT_H_ON); > -- > 1.9.1 > Tested-by: Stephen Barber Steve

Re: [PATCH v2] backlight: lp855x: Add enable regulator

2016-06-10 Thread Stephen Barber
dev_err(lp->dev, "failed to enable vddio: %d\n", ret); > + return ret; > + } > + > + /* > +* LP8555 datasheet says t_RESPONSE (time between VDDIO and > +* I2C) is 1ms. > +*/ > + usleep_range(1000, 2000); > + } > + > i2c_set_clientdata(cl, lp); > > ret = lp855x_configure(lp); > -- > 2.8.0.rc3.226.g39d4020 > Reviewed-by: Stephen Barber Steve

Re: [PATCH] clk: rockchip: add a dummy clock for the watchdog pclk on rk3399

2016-05-25 Thread Stephen Barber
; + pr_warn("%s: could not register clock pclk_wdt: %ld\n", > + __func__, PTR_ERR(clk)); > + else > + rockchip_clk_add_lookup(ctx, clk, PCLK_WDT); > + > rockchip_clk_register_plls(ctx, rk3399_pll_clks, >ARRAY_SIZE(rk3399_pll_clks), -1); > > -- > 1.7.9.5 > > Reviewed-by: Stephen Barber Steve

Re: zram/zsmalloc issues in very low memory conditions

2013-11-02 Thread Stephen Barber
I did get zswap working without a backing store, using Bob's patches from http://thread.gmane.org/gmane.linux.kernel.mm/105627/focus=105642 applied to 3.11-rc6, The major issue we had with it was that i915 graphics buffers were getting corrupted somehow, which wasn't a problem with zram on the same