[PATCH v3 10/34] clk: bcm: iproc: change iproc_asiu_clk_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2 06/34] clk: at91: change clk_pll_get_best_div_mul() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2 10/34] clk: bcm: iproc: change iproc_asiu_clk_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 27/34] clk: ti: composite: change clk_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

linux-next: manual merge of the v4l-dvb tree with the vfs tree

2018-01-01 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb tree got a conflict in: drivers/media/dvb-core/dmxdev.c between commit: c23e0cb81e40 ("media: annotate ->poll() instances") from the vfs tree and commits: 57868acc369a ("media: videobuf2: Add new uAPI for DVB streaming I/O") 4021053ed5

[PATCH v3 31/34] clk: at91: change round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH 4.4 00/63] 4.4.109-stable review

2018-01-01 Thread Greg Kroah-Hartman
On Mon, Jan 01, 2018 at 10:29:15AM -0700, Nathan Chancellor wrote: > Merged, compiled, and flashed onto my Pixel 2 XL and OnePlus 5. > > No initial issues noticed in general usage or dmesg. Wonderful, thanks for testing and letting me know. greg k-h

[PATCH v2 09/21] nvmem: mtk-efuse: Convert to use devm_nvmem_register()

2018-01-01 Thread Andrey Smirnov
Drop all of the code related to .remove hook and make use of devm_nvmem_register() instead. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.in

[PATCH v2 21/34] clk: lpc32xx: change clk_hclk_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-01-01 Thread Andreas Dilger
On Dec 29, 2017, at 9:15 PM, Theodore Ts'o wrote: > > On Fri, Dec 29, 2017 at 11:17:54PM +0100, Philippe Ombredanne wrote: >>> As far as I know, none of the licenses explicitly say >>> copyright license must be on each file. Just that the distribution of >>> source must include the copyright and

[PATCH v2 10/21] nvmem: meson-mx-efuse: Convert to use devm_nvmem_register()

2018-01-01 Thread Andrey Smirnov
Drop all of the code related to .remove hook and make use of devm_nvmem_register() instead. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.in

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-01 Thread Jia Zhang
Thanks for your comments. Happy new year! Jia 在 2018/1/2 上午6:10, Borislav Petkov 写道: > On Mon, Jan 01, 2018 at 10:04:47AM +0800, Jia Zhang wrote: >> Instead of blacklisting all types of Broadwell processor when running >> a late loading, only BDW-EP (signature 0x406f1, aka family 6, model 79, >>

[PATCH v2 30/34] clk: axs10x: change axs10x_pll_round_rate return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 29/34] clk: zte: change zx_audio_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 06/34] clk: at91: change clk_pll_get_best_div_mul() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH v1 05/15] ASoC: fsl_ssi: Clean up helper functions of trigger()

2018-01-01 Thread Maciej S. Szmigiero
On 19.12.2017 18:00, Nicolin Chen wrote: > The trigger() calls fsl_ssi_tx_config() and fsl_ssi_rx_config(), > and both of them jump to fsl_ssi_config(). And fsl_ssi_config() > later calls another fsl_ssi_rxtx_config(). > > However, the whole routine, especially fsl_ssi_config() function, > is too

[PATCH v2 14/21] nvmem: bcm-ocotp: Convert to use devm_nvmem_register()

2018-01-01 Thread Andrey Smirnov
Drop all of the code related to .remove hook and make use of devm_nvmem_register() instead. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.in

[PATCH v2 29/34] clk: zte: change zx_audio_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id

2018-01-01 Thread Xiongfeng Wang
Hi, On 2017/12/18 20:42, Morten Rasmussen wrote: > On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: >> Hi, >> >> On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: >>> [+Morten, Dietmar] >>> >>> $SUBJECT should be: >>> >>> arm64: topology: rename cluster_id >> [cut] >> >> I was hoping

[PATCH v3 02/34] clk: core: update divider_round_rate functions to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
Returning a long from round_rate() class functions is rooted in the notion that we will propagate a negative number on some class of failure to round a clock rate; however this approach does not scale to 32 bit systems which legitimately round a clock over LONG_MAX as the returned clock rate is ind

[PATCH v2 15/21] nvmem: meson-efuse: Do no gate COMPILE_TEST with MESON_SM

2018-01-01 Thread Andrey Smirnov
Being able to build this driver when COMPILE_TEST is selected is still useful even when MESON_SM is not selected, since selecting this driver as a module and doing "make modules" will result in successful build and would detect trivial coding errors. For an example of type of errors that could be p

Re: [PATCH 11/12] drm/amd/powerplay: drop unneeded newline

2018-01-01 Thread Alex Deucher
On Wed, Dec 27, 2017 at 9:51 AM, Julia Lawall wrote: > PP_ASSERT_WITH_CODE prints a newline at the end of the message string, > so the message string does not need to include a newline explicitly. > Done using Coccinelle. > > Signed-off-by: Julia Lawall Applied. thanks! Alex > > --- > > I cou

Re: [PATCH v2] ARM: dts: imx6: RDU2: disable internal watchdog

2018-01-01 Thread Fabio Estevam
Hi Andrey, On Mon, Jan 1, 2018 at 7:24 PM, Andrey Smirnov wrote: > diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi > b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi > index 6bef9a98678e..818bfc8692a5 100644 > --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu

linux-next: build failure after merge of the clk tree

2018-01-01 Thread Stephen Rothwell
Hi all, After merging the clk tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: "clk_regmap_mux_div_ops" [drivers/clk/qcom/apcs-msm8916.ko] undefined! ERROR: "__mux_div_set_src_div" [drivers/clk/qcom/apcs-msm8916.ko] undefined! Caused by commit 8a77f61118a2 ("clk:

[PATCH v2 08/21] nvmem: qfprom: Convert to use devm_nvmem_register()

2018-01-01 Thread Andrey Smirnov
Drop all of the code related to .remove hook and make use of devm_nvmem_register() instead. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.in

Re: [PATCH 1/4] extcon: axp288: Remove unused extcon_nb struct member

2018-01-01 Thread Chanwoo Choi
On 2017년 12월 22일 21:36, Hans de Goede wrote: > Remove the unused extcon_nb struct member. > > Signed-off-by: Hans de Goede > --- > drivers/extcon/extcon-axp288.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c > index 981fb

[PATCH v2 20/34] clk: nxp: change lpc18xx_pll0_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 11/34] clk: bcm: iproc: change iproc_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2 01/21] nvmem: core: Allow specifying device name verbatim

2018-01-01 Thread Andrey Smirnov
Add code to allow avoid having nvmem core append a numeric suffix to the end of the name by passing config->id of -1. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org C

[PATCH v4 0/3] DRM driver for Sitronix ST7735R display panels

2018-01-01 Thread David Lechner
This series adds a new DRM/TinyDRM driver for Sitronix ST7735R, specifically the Adafruit 1.8" TFT. Nothing fancy here. Just mostly TinyDRM boilerplate with the init sequence from the fbtft driver for the same panel. v4 changes: * Fix alphabetical order of device tree vendor * change prefix on pa

[PATCH] Bluetooth: btusb: Add support for 0cf3:e010

2018-01-01 Thread AceLan Kao
Device 0cf3:e010 is one of the QCA ROME family. T: Bus=01 Lev=01 Prnt=01 Port=13 Cnt=03 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0cf3 ProdID=e010 Rev=00.01 C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01

Re: PROBLEM: i915 causes complete desktop freezes in 4.15-rc5

2018-01-01 Thread Alexandru Chirvasitu
All right, we're in business with the new dmesg: It hung again, with a 4.15-rc6 kernel with kasan support. The new dmesg is attached; the trace is longer now, as you expected. And thanks! On Sun, Dec 31, 2017 at 04:54:14PM +, Chris Wilson wrote: > Quoting Alexandru Chirvasitu (2017-12-31 16:

[PATCH v2 13/21] nvmem: imx-iim: Convert to use devm_nvmem_register()

2018-01-01 Thread Andrey Smirnov
Drop all of the code related to .remove hook and make use of devm_nvmem_register() instead. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.in

[PATCH v2 16/21] nvmem: snvs_lpgpr: Convert commas to semicolons

2018-01-01 Thread Andrey Smirnov
Looks like commas were accidentally used where semicolons were supposed to be. Fix that. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infra

[PATCH v2] crypto: testmgr: change `guard` to unsigned char

2018-01-01 Thread Joey Pabalinas
When char is signed, storing the values 0xba (186) and 0xad (173) in the `guard` array produces signed overflow. Change the type of `guard` to static unsigned char to correct undefined behavior and reduce function stack usage. Signed-off-by: Joey Pabalinas --- crypto/testmgr.c | 2 +- 1 file cha

[PATCH v2 16/34] clk: vt8500: change vtwm_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH] ethernet: mlx4: Delete an error message for a failed memory allocation in five functions

2018-01-01 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 1 Jan 2018 21:42:27 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/ethernet/mellanox/mlx4/en_cq.c | 4 +--- drivers/net/ethe

Re: [PATCH 4.9 00/75] 4.9.74-stable review

2018-01-01 Thread Naresh Kamboju
On 1 January 2018 at 20:01, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.74 release. > There are 75 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Response

Re: [PATCH v1 03/15] ASoC: fsl_ssi: Rename fsl_ssi_disable_val macro

2018-01-01 Thread Maciej S. Szmigiero
On 19.12.2017 18:00, Nicolin Chen wrote: > The define of fsl_ssi_disable_val is not so clear as it mixes two > steps of calculations together. And those parameter names are also > a bit long to read. > > Since it just tries to exclude the shared bits from the regvals of > current stream while the

Re: [PATCH 0/4] KVM: nVMX: prepare_vmcs02 optimizations

2018-01-01 Thread Wanpeng Li
2018-01-02 7:01 GMT+08:00 Paolo Bonzini : > On 01/01/2018 10:36, Paolo Bonzini wrote: >> On 28/12/2017 09:39, Wanpeng Li wrote: >>> 2017-12-27 22:28 GMT+08:00 Paolo Bonzini : On 25/12/2017 11:08, Wanpeng Li wrote: >> I observe L1(latest kvm/queue) panic and L0(latest kvm/queue) >> call

[PATCH v2 19/34] clk: mxs: change clk_frac_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH 4.4 00/63] 4.4.109-stable review

2018-01-01 Thread Naresh Kamboju
naro.org/lkft/arm64-stable-rc.git git tag: 4.4.109-rc1-hikey-20180101-91 git commit: 303cc4691793ed7d979a26fe024bea69201d8374 git describe: 4.4.109-rc1-hikey-20180101-91 Test details: https://qa-reports.linaro.org/lkft/linaro-hikey-stable-rc-4.4-oe/build/4.4.109-rc1-hikey-20180101-91 No regres

[PATCH v2 34/34] clk: change handling of round_rate() such that only zero is an error

2018-01-01 Thread Bryan O'Donoghue
Change the handling of clk_ops->round_rate() return values such that only zero is treated as an error. All implementations of clk_ops->round_rate() will have previously been updated to match this change. Using zero as the determinant for an error means its possible to pass an unsigned long as req-

[PATCH] nvme: check ctrl.tagset before start ns scan

2018-01-01 Thread Jianchao Wang
ctrl.tagset maybe NULL due to failure of io queue setup or blk-mq tagset allocation in nvme_reset_work. Then panic would come up. To fix this, just add ctrl.tagset check in nvme_scan_work. Signed-off-by: Jianchao Wang --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v3 19/34] clk: mxs: change clk_frac_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2 17/34] clk: vt8500: match temp holder variable to fn return type

2018-01-01 Thread Bryan O'Donoghue
vtwm_pll_round_rate() returns an unsigned long. This patch changes the internal holder variable from signed to unsigned long for the sake of completeness and neatness. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kern

[PATCH v2 21/21] nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly

2018-01-01 Thread Andrey Smirnov
There's "dev" variable for this already. Use it. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org Cc: linux-rockc...@lists.infrad

Re: [PATCH 1/3] phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals

2018-01-01 Thread Chunfeng Yun
On Thu, 2017-12-28 at 16:44 +0530, Kishon Vijay Abraham I wrote: > > On Thursday 07 December 2017 05:23 PM, Chunfeng Yun wrote: > > When system is running, if usb2 phy is forced to bypass utmi signals, > > all PLL will be turned off, and it can't detect device connection > > anymore, so replace fo

[PATCH v2 33/34] clk: lpc32xx: change round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 09/34] clk: bcm2835: change clk_get_rate() helper return type

2018-01-01 Thread Bryan O'Donoghue
bcm2835_pll_rate_from_divisor returns a long but the function calling it returns an unsigned long. There's no reason to have a type disparity here so tidy up the return type of bcm2835_pll_rate_from_divisor() from signed to unsigned long. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette Cc:

[PATCH v2 22/34] clk: qcom: ipq4019: change clk_cpu_div_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 33/34] clk: lpc32xx: change round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2 03/34] clk: composite: allow round_rate to scale past LONG_MAX on 32 bit systems

2018-01-01 Thread Bryan O'Donoghue
Defining the return value of round_rate as a long and returning error codes as well as the rounded-clock value in the return value of a clk_ops->round_rate callback means that its not possible to return a clock greater than LONG_MAX Hz on a 32 bit system. This patch changes the handling of the ret

[PATCH v2 05/34] clk: at91: update clk_pll_get_best_div_mul to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
clk_pll_get_best_div_mul() returns a value directly as the return value to round_rate(). clk_ops->round_rate() has been changed to an unsigned long so for the sake of completeness and neatness this patch updates the helper function to return the same data-type. Signed-off-by: Bryan O'Donoghue Cc:

[PATCH v3 26/34] clk: tegra: pll: change clk_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v2] ARM: dts: imx6: RDU2: disable internal watchdog

2018-01-01 Thread Andrey Smirnov
From: Lucas Stach The system has an external watchdog in the environment processor so the internal watchdog is of no use. Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.o

[PATCH v2 28/34] clk: ti: fapll: change round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH -next] slimbus: Use GFP_ATOMIC under spin lock

2018-01-01 Thread Wei Yongjun
A spin lock is taken here so we should use GFP_ATOMIC. Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework") Signed-off-by: Wei Yongjun --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slimbus/messaging.c b/drivers/sli

[PATCH 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-01 Thread Shawn Lin
It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin --- drivers/phy/rockchip/phy-rockchip-emmc.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchi

[PATCH v3 18/34] clk: mvebu: change dove_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCHv2 1/8] MIPS: Loongson64: cleanup all cs5536 files to use SPDX Identifier

2018-01-01 Thread Huacai Chen
Zhangjin Wu (wuzhang...@gmail.com) is the original author, I hope he can give a signed-off. I can only give an ack. Huacai On Sun, Dec 31, 2017 at 9:54 PM, Philippe Ombredanne wrote: > On Sun, Dec 31, 2017 at 2:14 PM, Jiaxun Yang wrote: >> On 2017-12-31 Sun 12:17 +0100,Philippe Ombredanne wrote

[PATCH v3 28/34] clk: ti: fapll: change round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 03/34] clk: composite: allow round_rate to scale past LONG_MAX on 32 bit systems

2018-01-01 Thread Bryan O'Donoghue
Defining the return value of round_rate as a long and returning error codes as well as the rounded-clock value in the return value of a clk_ops->round_rate callback means that its not possible to return a clock greater than LONG_MAX Hz on a 32 bit system. This patch changes the handling of the ret

Re: [PATCH 3/4] extcon: axp288: Redo charger type dection a couple of seconds after probe()

2018-01-01 Thread Chanwoo Choi
Hi Hans, s/dection/detection on patch title. On 2017년 12월 22일 21:36, Hans de Goede wrote: > The axp288 extcon code depends on other drivers to do things like mux the > data lines, enable/disable vbus based on the id-pin, etc. > > Sometimes the BIOS has not set these things up correctly resulting

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-01 Thread Borislav Petkov
On Mon, Jan 01, 2018 at 10:04:47AM +0800, Jia Zhang wrote: > Instead of blacklisting all types of Broadwell processor when running > a late loading, only BDW-EP (signature 0x406f1, aka family 6, model 79, > stepping 1) with the microcode version less than 0x0b21 needs to > be blacklisted. > >

Re: [RESEND PATCH v2 03/15] ASoC: qcom: qdsp6: Add common qdsp6 helper functions

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > +static inline int q6dsp_map_channels(u8 *ch_map, int ch) > +{ > + memset(ch_map, 0, PCM_FORMAT_MAX_NUM_CHANNEL); This implies that ch_map is always an array of PCM_FORMAT_MAX_NUM_CHANNEL elements. As such it would be better

Re: [PATCH 4/4] extcon: axp288: Handle reserved charger-type values better

2018-01-01 Thread Chanwoo Choi
Hi Hans, On 2017년 12월 22일 21:36, Hans de Goede wrote: > According to the data sheets all the values not handled in the > switch-case are "reserved". Update the dev_warn message to reflect > this and set the cable-type to EXTCON_CHG_USB_SDP (so max 500mA > current draw) as safe default. > > Signed

Re: [RESEND PATCH v2 02/15] soc: qcom: add support to APR bus driver

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support toi APR bus (Asynchronous Packet Router) driver. > ARP driver is made as a bus driver so that the apr devices can added removed > more dynamically depending on the state of

linux-next: manual merge of the integrity tree with the iversion tree

2018-01-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the integrity tree got a conflict in: security/integrity/ima/ima_main.c between commits: ac0bf025d2c0 ("ima: Use i_version only when filesystem supports it") 57fe39d33423 ("IMA: switch IMA over to new i_version API") from the iversion tree and commit:

[PATCH v2 18/21] nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly

2018-01-01 Thread Andrey Smirnov
There already a "dev" variable for that. Use it. Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphe...@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org Cc: linux-rockc...@lists.infrad

[PATCH v2 07/34] clk: axs10x: change i2s_pll_round_rate return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH/RFC] NFS: add nostatflush mount option.

2018-01-01 Thread NeilBrown
On Sat, Dec 23 2017, Jeff Layton wrote: > On Fri, 2017-12-22 at 07:59 +1100, NeilBrown wrote: >> On Thu, Dec 21 2017, Trond Myklebust wrote: >> >> > On Thu, 2017-12-21 at 10:39 -0500, Chuck Lever wrote: >> > > Hi Neil- >> > > >> > > >> > > > On Dec 20, 2017, at 9:57 PM, NeilBrown wrote: >> > >

[PATCH v2 26/34] clk: tegra: pll: change clk_pll_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

[PATCH v3 04/34] clk: omap2: change omap2_round_to_table_rate return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX H

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2018-01-01 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, In this code, I'm only read/write 3 registers of 0x2ae8, 0x2a90, 0x2a80, but some register will read/write more than once. Should I change the code from port_probe() to attach() and re-write it as: 1: read the 3 register 2: change them will 12 pin desire value 3

Re: [PATCH net-next 2/2] tun: allow to attach ebpf socket filter

2018-01-01 Thread Jason Wang
On 2017年12月31日 18:14, Willem de Bruijn wrote: On Fri, Dec 29, 2017 at 3:44 AM, Jason Wang wrote: This patch allows userspace to attach eBPF filter to tun. This will allow to implement VM dataplane filtering in a more efficient way compared to cBPF filter. Is the idea to allow the trusted hyp

Re: [PATCH v2] f2fs: add an ioctl to disable GC for specific file

2018-01-01 Thread Chao Yu
On 2018/1/1 9:07, Jaegeuk Kim wrote: > On 12/29, Chao Yu wrote: >> On 2017/12/28 11:40, Jaegeuk Kim wrote: >>> This patch gives a flag to disable GC on given file, which would be useful, >>> when >>> user wants to keep its block map. It also conducts in-place-update for >>> dontmove >>> file. >>

Re: [PATCH net-next 2/2] tuntap: XDP transmission

2018-01-01 Thread Jason Wang
-tuntap/20180101-105946 config: i386-randconfig-x072-201800 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers//net/tun.c: In fu

[PATCH -next] soundwire: Fix typo in return value check of sdw_read()

2018-01-01 Thread Wei Yongjun
Fix the typo, 'status' should be instead of 'status2'. Fixes: b0a9c37b0178 ("soundwire: Add slave status handling") Signed-off-by: Wei Yongjun --- drivers/soundwire/bus.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bu

[PATCH -next] tee: shm: make local function __tee_shm_alloc() static

2018-01-01 Thread Wei Yongjun
Fixes the following sparse warnings: drivers/tee/tee_shm.c:115:16: warning: symbol '__tee_shm_alloc' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/tee/tee_shm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tee/tee_shm.c b/dri

[PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 ++

RE: linux-next: build warning after merge of the tpmdd tree

2018-01-01 Thread Shaikh, Azhar
Hi Stephen, Thanks for reporting this. I have uploaded new patchset to tpmdd mailing list. Regards, Azhar Shaikh >-Original Message- >From: Stephen Rothwell [mailto:s...@canb.auug.org.au] >Sent: Monday, January 1, 2018 6:51 PM >To: Jarkko Sakkinen >Cc: Linux-Next Mailing List ; Linux K

[PATCH v8 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2018-01-01 Thread Azhar Shaikh
Changes from v1: - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Add NULL checks before calling clk_toggle callback - Use IS_ENABLED instead of ifdef in tpm_tis_clkrun_toggle() - Do not call tpm_platform_begin_xfer() and tpm_platform_end_xfer() from tpm_t

[PATCH v8 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-01-01 Thread Azhar Shaikh
Commit 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") disabled CLKRUN protocol during TPM transactions and re-enabled once the transaction is completed. But there were still some corner cases observed where, reading of TPM header failed for savestate command while going to sus

Re: [PATCH 1/9] scsi: qla4xxx: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset >0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/qla4xxx/ql4_init.c |

Re: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Jason Gunthorpe
On Mon, Jan 01, 2018 at 08:05:43PM -0800, Azhar Shaikh wrote: > - return tpm_chip_register(chip); > + rc = tpm_chip_register(chip); > + if (rc && is_bsw()) > + iounmap(priv->ilb_base_addr); > + > + return rc; > out_err: > tpm_tis_remove(chip); > + if (is_bsw(

Re: [PATCH 3/9] scsi: qedi: Use zeroing allocator instead of allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset >0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/qedi/qedi_main.c | 42

Re: [PATCH 9/9] scsi: bnx2i: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by >memset 0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/bnx2i/bnx2i_hwi.c | 1

Re: [RESEND PATCH v2 06/15] ASoC: qcom: qdsp6: Add support to Q6ASM

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds basic support to Q6 ASM (Audio Stream Manager) module on > Q6DSP. ASM supports up to 8 concurrent streams. each stream can be setup > as playback/capture. "...streams, each one se

RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Shaikh, Azhar
>-Original Message- >From: Jason Gunthorpe [mailto:j...@ziepe.ca] >Sent: Monday, January 1, 2018 8:41 PM >To: Shaikh, Azhar >Cc: jarkko.sakki...@linux.intel.com; peterhu...@gmx.de; linux-security- >mod...@vger.kernel.org; linux-integr...@vger.kernel.org; linux- >ker...@vger.kernel.org >S

[RFC PATCH 2/4] rtc: sysfs: Export the valid range supported by RTC hardware

2018-01-01 Thread Baolin Wang
We have introduced one interface to get the RTC range, so this patch exports the valid range supported by RTC hardware to userspace. Signed-off-by: Baolin Wang --- Documentation/rtc.txt |2 ++ drivers/rtc/rtc-sysfs.c | 30 ++ 2 files changed, 32 insertions(+)

[RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Baolin Wang
In order to the setting time values are not beyond the limitation supported by RTC hardware, we introduce one interface to tell the hardware range to the RTC core, which are used to valid if the setting time values are in the RTC hardware range. Moreover we also need the RTC hardware range to expa

[RFC PATCH 4/4] rtc: sc27xx: Add the get_range interface

2018-01-01 Thread Baolin Wang
Add the get_range interface for sc27xx RTC driver to tell the RTC core what is the valid range for RTC hardware device. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c in

[RFC PATCH 3/4] rtc: Add one offset seconds to expand RTC range

2018-01-01 Thread Baolin Wang
>From our investigation for all RTC drivers, 1 driver will be expired before year 2017, 7 drivers will be expired before year 2038, 23 drivers will be expired before year 2069, 72 drivers will be expired before 2100 and 104 drivers will be expired before 2106. Especially for these early expired dri

[PATCH] cpu_cooling: Remove static-power related documentation

2018-01-01 Thread Viresh Kumar
commit 84fe2cab4859 ("cpu_cooling: Drop static-power related stuff") removed support for static-power in kernel, but it missed reflecting the same in documentation. Remove the static power related documentation bits as well. Reported-by: Javi Merino Signed-off-by: Viresh Kumar --- Documentation

RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Shaikh, Azhar
>-Original Message- >From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- >ow...@vger.kernel.org] On Behalf Of Shaikh, Azhar >Sent: Monday, January 1, 2018 9:02 PM >To: Jason Gunthorpe >Cc: jarkko.sakki...@linux.intel.com; peterhu...@gmx.de; linux-security- >mod...@vger.k

RE: [PATCH 8/9] scsi: bfa: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Gurumurthy, Anil
-Original Message- From: Himanshu Jha [mailto:himanshujha199...@gmail.com] Sent: 30 December 2017 20:59 To: j...@linux.vnet.ibm.com; martin.peter...@oracle.com; aacr...@adaptec.com Cc: Gurumurthy, Anil ; Kalluru, Sudarsana ; Dept-Eng QLogic Storage Upstream ; satis...@cisco.com; sebad.

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2018-01-01 Thread Manu Gautam
Hi, On 12/29/2017 11:58 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 December 2017 09:54 AM, Manu Gautam wrote: >> Hi, [snip] > > suggest using switch in such case.. and not all PHY drivers do specific > configurations for specific speeds. >> This looks clumsy. >> Where as if bits to

Re: [PATCH v6 4/5] clk: aspeed: Register gated clocks

2018-01-01 Thread Benjamin Herrenschmidt
On Sat, 2017-12-30 at 09:03 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2017-12-26 at 17:32 -0800, Stephen Boyd wrote: > > > I noticed we do have a few i2c based clock drivers... how are they ever > > > supposed to work ? i2c bus controllers are allowed to sleep and the i2c > > > core takes mute

Re: [RESEND PATCH v2 07/15] ASoC: qcom: q6asm: Add support to memory map and unmap

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to memory map and unmap regions commands in > q6asm module. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/qdsp6/q6asm.c | 343 >

<    1   2   3   4   5   6   7   >