[PATCH v2 23/34] clk: sirf: remove unnecessary long cast on return

2018-01-01 Thread Bryan O'Donoghue
Due to the old function signature of clk_ops->round_rate pll_clk_round_rate does a cast of an internal unsigned long to a long. After updating clk_ops->round_rate() to be an unsigned long though the cast isn't necessary. Remove the cast now. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette

Re: [PATCH 2/4] extcon: axp288: Remove unused platform data

2018-01-01 Thread Chanwoo Choi
+ MFD Maintainer (Lee Jones ) Hi Hans, You better to use the scripts/get_maintainer.pl for the mailing list. I added the MFD maintainer. This patch looks good to me. Reviewed-by: Chanwoo Choi Best Regards, Chanwoo Choi On 2017년 12월 22일 21:36, Hans de Goede wrote: > This is not used / set

[PATCH v2 04/21] nvmem: imx-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:

[PATCH v3 14/34] clk: vc5: change vc5_pfd_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

[PATCH v3 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

[PATCH] arch/x86: add __noreturn __cold to fortify_panic()

2018-01-01 Thread Joey Pabalinas
Definition of `fortify_panic()` doesn't match the declaration in include/linux/string.h. Add the missing __noreturn __cold attributes to `fortify_panic()`. Signed-off-by: Joey Pabalinas --- arch/x86/boot/compressed/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-01 Thread Shawn Lin
Just use the API instead of open-coding it, no functional change intended. Signed-off-by: Shawn Lin --- drivers/phy/rockchip/phy-rockchip-emmc.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-emmc.c

[PATCH v2 02/21] nvmem: Introduce devm_nvmem_(un)register()

2018-01-01 Thread Andrey Smirnov
Introduce devm_nvmem_register()/devm_nvmem_unregister() to make .remove() unnecessary in trivial drivers. 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:

[PATCH v3 23/34] clk: sirf: remove unnecessary long cast on return

2018-01-01 Thread Bryan O'Donoghue
Due to the old function signature of clk_ops->round_rate pll_clk_round_rate does a cast of an internal unsigned long to a long. After updating clk_ops->round_rate() to be an unsigned long though the cast isn't necessary. Remove the cast now. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette

[PATCH v2 24/34] clk: tegra: change clk_sync_source_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

[PATCH v2 11/21] nvmem: meson-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:

Re: [RFC] does ioremap() cause memory leak?

2018-01-01 Thread Hanjun Guo
On 2017/12/23 13:32, Xishi Qiu wrote: > On 2017/12/21 16:55, Xishi Qiu wrote: > >> When we use iounmap() to free the mapping, it calls unmap_vmap_area() to >> clear page table, >> but do not free the memory of page table, right? >> >> So when use ioremap() to mapping another area(incluce the

Re: [PATCH] arch/x86: add __noreturn __cold to fortify_panic()

2018-01-01 Thread Joey Pabalinas
On Mon, Jan 01, 2018 at 01:41:55PM -0800, Joe Perches wrote: > This should not be necessary as the prototype > has those attributes. > > Otherwise, all the __printf attributes would > also have to be added to the definitions and > not the just the declarations. Ah I see, gotcha. -- Joey

Re: [RESEND PATCH v2 04/15] ASoC: qcom: qdsp6: Add support to Q6AFE

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: [..] > + > +config SND_SOC_QDSP6_AFE > + tristate > + default n Do you see a particular benefit of having one kernel module per function? Why not just compile them all into the same q6dsp.ko? > + > +config SND_SOC_QDSP6

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

2018-01-01 Thread Joey Pabalinas
On Mon, Jan 01, 2018 at 07:03:46AM -0800, Joe Perches wrote: > > Might as well add static too > That's a good idea; I'll make a v2. -- Joey Pabalinas signature.asc Description: PGP signature

[PATCH v3 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

[PATCH v3 08/34] clk: bcm2835: change bcm2835_pll_rate_from_divisors to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
bcm2835_pll_rate_from_divisors() 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

[PATCH v3 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

Re: [RESEND PATCH v2 05/15] ASoC: qcom: qdsp6: Add support to Q6ADM

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 q6 ADM (Audio Device Manager) module in > q6dsp. ADM performs routing between audio streams and AFE ports. > It does Rate matching for streams going to devices driven

[PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since device_wakeup_disable() checks the device's power.can_wakeup flag, device_init_wakeup() doesn't need to do that before calling it, so drop that redundant check from device_init_wakeup(). No intentional changes in functionality. Signed-off-by: Rafael J. Wysocki

[PATCH v3 12/34] clk: cdce925: remove unnecessary long casts on return

2018-01-01 Thread Bryan O'Donoghue
Due to the old function signature of clk_ops->round_rate the cdce925 round_rate functions end up doing a cast of an internal unsigned long to a long. After updating clk_ops->round_rate() to be an unsigned long though the cast isn't necessary. Remove the extraneous cast from: -

[PATCH v2 06/21] nvmem: snvs_lgpr: 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:

[PATCH v2 01/34] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
Right now it is not possible to return a value larger than LONG_MAX on 32 bit systems. You can pass a rate of ULONG_MAX but can't return anything past LONG_MAX due to the fact both the rounded_rate and negative error codes are represented in the return value of round_rate(). Most implementations

[PATCH v2 20/21] nvmem: imx-iim: Do not use ">dev" explicitly

2018-01-01 Thread Andrey Smirnov
There's already "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:

Re: [PATCH] MIPS: Fix early CM probing

2018-01-01 Thread NeilBrown
[Resending with some addresses converted to @mips.com] On Mon, Feb 08 2016, Paul Burton wrote: > Commit c014d164f21d ("MIPS: Add platform callback before initializing > the L2 cache") added a platform_early_l2_init function in order to allow > platforms to probe for the CM before L2

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

2018-01-01 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:219:6: error: redefinition of 'dm_dp_mst_dc_sink_create' void dm_dp_mst_dc_sink_create(struct drm_connector *connector)

[PATCH v3 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

[PATCH v2 25/34] clk: tegra: bpmp: change tegra_bpmp_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

[PATCH v2 15/34] clk: vc5: change vc5_dbl_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

Re: [PATCH 12/12] hpfs: drop unneeded newline

2018-01-01 Thread Mikulas Patocka
On Wed, 27 Dec 2017, Julia Lawall wrote: > hpfs_error 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 Reviewed-by: Mikulas Patocka > --- > fs/hpfs/dnode.c |

[PATCH v3 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

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

2018-01-01 Thread 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) > calltrace, I'm not sure whether it is caused by this

[PATCH v2 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

[PATCH v3 32/34] clk: ARC: change hsdk_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

[PATCH v3 01/34] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
Right now it is not possible to return a value larger than LONG_MAX on 32 bit systems. You can pass a rate of ULONG_MAX but can't return anything past LONG_MAX due to the fact both the rounded_rate and negative error codes are represented in the return value of round_rate(). Most implementations

[PATCH v2 32/34] clk: ARC: change hsdk_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

[PATCH] ethernet/mediatek: Delete an error message for a failed memory allocation in mtk_add_mac()

2018-01-01 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 1 Jan 2018 21:06:50 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1

[PATCH -next] slimbus: Fix missing unlock on error in slim_msg_response()

2018-01-01 Thread Wei Yongjun
Add the missing unlock before return from function slim_msg_response() in the error handling case. Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework") Signed-off-by: Wei Yongjun --- drivers/slimbus/messaging.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 15/34] clk: vc5: change vc5_dbl_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

Re: [PATCH] KVM: nVMX: remove unnecessary vmwrite from L2->L1 vmexit

2018-01-01 Thread Jim Mattson
Reviewed-by: Jim Mattson On Mon, Jan 1, 2018 at 2:58 PM, Paolo Bonzini wrote: > The POSTED_INTR_NV field is constant (though it differs between the vmcs01 and > vmcs02), there is no need to reload it on vmexit to L1. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/vmx.c | 3 --- > 1

Re: [PATCH] MIPS: Fix early CM probing

2018-01-01 Thread NeilBrown
On Mon, Feb 08 2016, Paul Burton wrote: > Commit c014d164f21d ("MIPS: Add platform callback before initializing > the L2 cache") added a platform_early_l2_init function in order to allow > platforms to probe for the CM before L2 initialisation is performed, so > that CM GCRs are available to

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2018-01-01 Thread Chao Fan
On Fri, Dec 29, 2017 at 01:23:05PM +0100, Michal Hocko wrote: Hi Michal, >Always make sure to CC linux-api mailing list when proposing user >visible API patches. Sorry for that, since scripts/get_maintainer.pl didn't show that, so I don't know should Cc that. > >On Wed 27-12-17 20:30:12, Chao

[PATCH v3 00/34] change clk_ops->round_rate to scale past LONG_MAX

2018-01-01 Thread Bryan O'Donoghue
v3: - No change. Sending email from outside of my usual geographic location Google servers suspended this account mid-way through the send. Resending original v2 as v3 v2: - Added change for vc5_dbl_round_rate kbuild found this - rename patch vc5_mux_round_rate -> vc5_pfd_round_rate bod

[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

[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

[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

[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

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")

[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

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:

[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

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

[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:

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

[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

[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

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:

[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

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

[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

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

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 > +++

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:

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

[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

[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

[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

[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

[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)

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

[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:

[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:

[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

[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

[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 +---

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. > >

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) >>

[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

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

[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

[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

[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:

[PATCH v2 21/21] nvmem: bcm-ocotp: Do not use ">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:

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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

<    7   8   9   10   11   12   13   >