Re: [PATCH 0/7] Misc GDT fixes and a cleanup

2017-03-23 Thread Ingo Molnar
* Andy Lutomirski wrote: > Hi all- > > This applies to tip:x86/mm. For ease of testing, the series is here, too: > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/tag/?h=review_20170322_gdt_and_wp > > This fixes a few issues, most of which appear to be rather old. For >

Re: [PATCH] hangcheck-timer: Fix typo in comment

2017-03-23 Thread Greg KH
On Thu, Mar 23, 2017 at 10:51:09AM +0800, Shile Zhang wrote: > Signed-off-by: Shile Zhang I can't take patches with no changelog comment at all, sorry. greg k-h

Re: Updates, autofocus, 5Mpix mode on N900? Re: [RFC 08/13] smiapp-pll: Take existing divisor into account in minimum divisor check

2017-03-23 Thread Sakari Ailus
Hi Pavel, On Thu, Mar 23, 2017 at 12:46:51AM +0100, Pavel Machek wrote: > On Tue 2017-02-28 16:16:21, Sakari Ailus wrote: > > On Tue, Feb 28, 2017 at 03:09:21PM +0100, Pavel Machek wrote: > > > Can I get you to apply this one? :-). > > > > Let me try to understand again what does that change

Re: [PATCH] drivers/staging/dgnc: Updating dev_dbg function

2017-03-23 Thread Greg Kroah-Hartman
On Wed, Mar 22, 2017 at 01:17:57PM +0530, Pushkar Jambhlekar wrote: > Making use of __func__ instead of using function name directly in dev_dbg. > > Signed-off-by: Pushkar Jambhlekar > --- > drivers/staging/dgnc/dgnc_tty.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

[PATCH] staging:fbtft/fbtft-io: Fix incorrect type in assignment

2017-03-23 Thread Zhengyi Shen
Fix endian sparse warnings of incorrect type in assignment. This patch changes type to the appropriate endian specific versions. Signed-off-by: Zhengyi Shen --- drivers/staging/fbtft/fbtft-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-io.c

Re: [PATCH] staging: vt6656: removed coding style errors

2017-03-23 Thread Greg KH
On Wed, Mar 22, 2017 at 09:39:24PM +0530, Prasant Jalan wrote: > The patch replaces spaces with tabs as required by kernel coding > standards. > > Signed-off-by: Prasant Jalan > --- > drivers/staging/vt6656/rxtx.c | 40 ++-- > 1 file changed, 22

Re: [PATCH v2 12/53] mtd: nand: denali: support HW_ECC_FIXUP capability

2017-03-23 Thread Masahiro Yamada
Hi Boris, 2017-03-23 6:09 GMT+09:00 Boris Brezillon : > On Wed, 22 Mar 2017 23:07:19 +0900 > Masahiro Yamada wrote: > >> @@ -339,6 +352,7 @@ struct denali_nand_info { >> int bbtskipbytes; >> int max_banks; >> unsigned int caps; >> +#define DENALI_CAP_HW_ECC_FIXUP

Re: [PATCH v2 10/53] mtd: nand: denali: fix erased page checking

2017-03-23 Thread Masahiro Yamada
Hi Boris, 2017-03-23 5:56 GMT+09:00 Boris Brezillon : > On Wed, 22 Mar 2017 23:07:17 +0900 > Masahiro Yamada wrote: >> dev_err(denali->dev, >> @@ -1148,12 +1136,15 @@ static int denali_read_page(struct mtd_info *mtd, >> struct nand_chip *chip, >> if (check_erased_page) { >>

Re: [PATCH v2 12/53] mtd: nand: denali: support HW_ECC_FIXUP capability

2017-03-23 Thread Masahiro Yamada
Hi Boris, 2017-03-23 6:12 GMT+09:00 Boris Brezillon : > On Wed, 22 Mar 2017 23:07:19 +0900 > Masahiro Yamada wrote: > >> +static int denali_hw_ecc_fixup(struct mtd_info *mtd, >> +struct denali_nand_info *denali) >> +{ >> + int bank = denali->flash_bank; >> +

Re: Still OOM problems with 4.9er/4.10er kernels

2017-03-23 Thread Gerhard Wiesinger
On 21.03.2017 08:13, Mike Galbraith wrote: On Tue, 2017-03-21 at 06:59 +0100, Gerhard Wiesinger wrote: Is this the correct information? Incomplete, but enough to reiterate cgroup_disable=memory suggestion. How to collect complete information? Thnx. Ciao, Gerhard

[PATCH] ipmi: Fix kernel panic at ipmi_ssif_thread()

2017-03-23 Thread Joeseph Chang
From: Joeseph Chang msg_written_handler() may set ssif_info->multi_data to NULL when using ipmitool to write fru. Change the ssif i2c send data sequence in msg_written_handler() to fix NULL pointer kernel panic and incorrect ssif_info->multi_pos. Signed-off-by: Joeseph Chang ---

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-23 Thread Leo Yan
On Wed, Mar 22, 2017 at 05:25:50PM +, Sudeep Holla wrote: > > > On 22/03/17 17:09, Suzuki K Poulose wrote: > > On 22/03/17 16:17, Sudeep Holla wrote: > > [...] > > >> > >> Point taken. So we could just specify that all necessary power > >> domains need to be on for proper functionality

Re: [BUG] 4.11.0-rc3 xterm hung in D state on exit, wchan is tty_release_struct

2017-03-23 Thread lkml
On Wed, Mar 22, 2017 at 11:44:18PM -0700, l...@pengaru.com wrote: > On Wed, Mar 22, 2017 at 07:08:46PM -0700, l...@pengaru.com wrote: > > Hello list, > > > > After approximately one day day of running 4.11.0-rc3 with 7e54d9d reverted > > to > > enable regular use, this happened upon destroying

Re: [PATCH v2 11/53] mtd: nand: denali: fix bitflips calculation in handle_ecc()

2017-03-23 Thread Masahiro Yamada
Hi Boris, 2017-03-23 5:57 GMT+09:00 Boris Brezillon : > On Wed, 22 Mar 2017 23:07:18 +0900 > Masahiro Yamada wrote: > >> + do { >> + err_addr = ioread32(denali->flash_reg + ECC_ERROR_ADDRESS); >> + err_sector = ECC_SECTOR(err_addr); >> + err_byte =

RE: [PATCH v3] ASoC: rt286: fix headphone click/crack noise on Dell XPS 9343 I2S mode

2017-03-23 Thread Bard Liao
> -Original Message- > From: Kai-Heng Feng [mailto:kai.heng.f...@canonical.com] > Sent: Thursday, March 23, 2017 12:42 PM > To: Bard Liao > Cc: broo...@kernel.org; lgirdw...@gmail.com; Oder Chiou; > alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3] ASoC:

Re: [PATCH v4] USB: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-03-23 Thread gre...@linuxfoundation.org
On Fri, Mar 17, 2017 at 10:56:37AM +, Ajay Kaher wrote: > There is race condition when two USB class drivers try to call > init_usb_class at the same time and leads to crash. > code path: probe->usb_register_dev->init_usb_class > > To solve this, mutex locking has been added in

Re: [RESEND PATCH v2 26/53] mtd: nand: denali: support 1024 byte ECC step size

2017-03-23 Thread Masahiro Yamada
Hi Boris, 2017-03-23 6:32 GMT+09:00 Boris Brezillon : > On Thu, 23 Mar 2017 05:07:25 +0900 > Masahiro Yamada wrote: > >> This driver was originally written for the Intel MRST platform with >> several platform specific parameters hard-coded. Another thing we >> need to fix is the hard-coded ECC

Re: [PATCH v2 02/10] x86: assembly, FUNC_START for fn, DATA_START for data

2017-03-23 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Wed, Mar 22, 2017 at 08:46:16AM +0100, Ingo Molnar wrote: > > > > * Jiri Slaby wrote: > > > > > On 03/22/2017, 08:25 AM, Ingo Molnar wrote: > > > > > > > > * Pavel Machek wrote: > > > > > > > >> Hi! > > > >> > > > >>> -ENTRY(saved_rbp) .quad 0 > > > >>>

Re: [PATCH v2 3/5] mm: use a dedicated workqueue for the free workers

2017-03-23 Thread Minchan Kim
On Wed, Mar 22, 2017 at 09:43:04PM +0800, Aaron Lu wrote: > On Wed, Mar 22, 2017 at 05:55:12PM +0900, Minchan Kim wrote: > > On Wed, Mar 22, 2017 at 04:41:04PM +0800, Aaron Lu wrote: > > > My understanding of the unbound workqueue is that it will create a > > > thread pool for each node, versus

Re: [PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-23 Thread Jonathan Cameron
On 22 March 2017 19:22:20 GMT+00:00, Jonathan Cameron wrote: >On 22/03/17 16:20, simran singhal wrote: >> The IIO subsystem is redefining iio_dev->mlock to be used by >> the IIO core only for protecting device operating mode changes. >> ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_*

[PATCH 2/2] DT: leds: Add Qualcomm Light Pulse Generator binding

2017-03-23 Thread Bjorn Andersson
This adds the binding document describing the three hardware blocks related to the Light Pulse Generator found in a wide range of Qualcomm PMICs. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/leds/leds-qcom-lpg.txt | 194 + 1 file changed, 194 insertions(+)

Re: [PATCH v3] refcount: add refcount_t API kernel-doc comments

2017-03-23 Thread Ingo Molnar
* Kees Cook wrote: > On Fri, Mar 10, 2017 at 7:34 AM, David Windsor wrote: > > v3: rebase against latest Linus tree; re-add include/linux/refcount.h > > missing from v2 series > > > > Signed-off-by: David Windsor > > Reviewed-by: Kees Cook > > Ingo, can you pull this into tip? I like

Re: [PATCH] PCI: dwc: fix crash seen due to missing ops

2017-03-23 Thread Niklas Cassel
On 03/22/2017 04:47 PM, Joao Pinto wrote: > Hi Niklas, > > Às 2:43 PM de 3/21/2017, Niklas Cassel escreveu: >> From: Niklas Cassel >> >> Fix the following crash, seen in dwc/pcie-artpec6. >> >> Unable to handle kernel NULL pointer dereference at virtual address >> 0004 >> pgd = c0204000

Re: [PATCH net-next v2 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-23 Thread Andrew Lunn
> +static int > +mt7623_trgmii_write(struct mt7530_priv *priv, u32 reg, u32 val) > +{ > + int ret; > + > + ret = regmap_write(priv->ethernet, TRGMII_BASE(reg), val); > + if (ret < 0) > + dev_err(priv->dev, > + "failed to priv write register\n"); > +

Re: [REGRESSION] 07ec51480b5e ("virtio_pci: use shared interrupts for virtqueues") causes crashes in guest

2017-03-23 Thread Jason Wang
On 2017年03月23日 08:30, Laura Abbott wrote: Hi, Fedora has received multiple reports of crashes when running 4.11 as a guest https://bugzilla.redhat.com/show_bug.cgi?id=1430297 https://bugzilla.redhat.com/show_bug.cgi?id=1434462 https://bugzilla.kernel.org/show_bug.cgi?id=194911

Re: linux-next: manual merge of the usb tree with the usb-gadget-fixes tree

2017-03-23 Thread Greg KH
On Thu, Mar 23, 2017 at 01:16:33PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the usb tree got a conflict in: > > drivers/usb/gadget/udc/pch_udc.c > > between commit: > > 1f459262b0e1 ("usb: gadget: udc: remove pointer dereference after free") > > from the

[PATCH v2] stm class: Document the stm_ftrace

2017-03-23 Thread Chunyan Zhang
This patch adds a description to the stm_ftrace device source, an interface for collecting Ftrace's function trace information via STM devices. Signed-off-by: Chunyan Zhang --- Documentation/trace/stm.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] genirq: Notify clients whenever there is change in affinity

2017-03-23 Thread kbuild test robot
-whenever-there-is-change-in-affinity/20170323-094431 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:264:8: sparse: attribute 'no_sanitize_a

Re: [PATCH] sched: Prefer sibiling only if local group is under-utilized

2017-03-23 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 11:27:50PM +0530, Srikar Dronamraju wrote: > @@ -7536,8 +7537,8 @@ static inline void update_sd_lb_stats(struct lb_env > *env, struct sd_lb_stats *sd >* the tasks on the system). >*/ > if (prefer_sibling && sds->local && > -

Re: [PATCH] block: trace completion of all bios.

2017-03-23 Thread NeilBrown
On Wed, Mar 22 2017, Christoph Hellwig wrote: > On Wed, Mar 22, 2017 at 01:38:09PM +1100, NeilBrown wrote: >> >> Currently only dm and md/raid5 bios trigger trace_block_bio_complete(). >> Now that we have bio_chain(), it is not possible, in general, for a >> driver to know when the bio is really

[PATCH v2] block: trace completion of all bios.

2017-03-23 Thread NeilBrown
Currently only dm and md/raid5 bios trigger trace_block_bio_complete(). Now that we have bio_chain(), it is not possible, in general, for a driver to know when the bio is really complete. Only bio_endio() knows that. So move the trace_block_bio_complete() call to bio_endio(). Now

Re: [PATCH] checkpatch: Allow space leading blank lines in email headers

2017-03-23 Thread Darren Hart
On Wed, Mar 22, 2017 at 10:35:21PM -0700, Joe Perches wrote: > Allow a leading space and otherwise blank link in the email headers > as it can be a line wrapped Spamassassin multiple line string or any > other valid rfc 2822/5322 email header. > > The line with space causes checkpatch to

Re: [PATCH] checkpatch: Flag spam header (X-Spam-Report) to prevent spurious warnings

2017-03-23 Thread Darren Hart
On Wed, Mar 22, 2017 at 11:17:33AM -0700, Joe Perches wrote: > On Wed, 2017-03-22 at 08:25 -0700, Darren Hart wrote: > > On Tue, Mar 21, 2017 at 11:31:08AM -0700, Joe Perches wrote: > > > On Tue, 2017-03-21 at 09:30 -0700, John 'Warthog9' Hawley (VMware) wrote: > > > > Spamassassin sticks a long

[PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-03-23 Thread Bjorn Andersson
The Light Pulse Generator (LPG) is a PWM-block found in a wide range of PMICs from Qualcomm. It can operate on fixed parameters or based on a lookup-table, altering the duty cycle over time - which provides the means for e.g. hardware assisted transitions of LED brightness. Signed-off-by: Bjorn

[PATCH v2 1/2] usb: phy: Introduce one extcon device into usb phy

2017-03-23 Thread Baolin Wang
Usually usb phy need register one extcon device to get the connection notifications. It will remove some duplicate code if the extcon device is registered using common code instead of each phy driver having its own related extcon APIs. So we add one pointer of extcon device into usb phy structure,

Re: [PATCH] checkpatch: Allow space leading blank lines in email headers

2017-03-23 Thread Joe Perches
On Wed, 2017-03-22 at 23:20 -0700, Darren Hart wrote: > I do have an open question regarding how we're going about testing for the end > of the header lines. Since we're not just testing for an empty line to > separate > headers and body, there is clearly more going on here - but I'm not sure

Re: [PATCHv2 09/11] Bluetooth: add nokia driver

2017-03-23 Thread Frédéric Danis
Hello Sebastian, Le 21/03/2017 à 23:32, Sebastian Reichel a écrit : This adds a driver for the Nokia H4+ protocol, which is used at least on the Nokia N9, N900 & N950. Signed-off-by: Sebastian Reichel --- Changes since PATCHv1: * replace __u8 and uint8_t with u8 * replace __u16 and

[PATCH 3/3] mm: fix a coding style issue

2017-03-23 Thread Kristaps Civkulis
Fix a coding style issue. Signed-off-by: Kristaps Civkulis --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1916,8 +1916,7 @@ static long

Re: [PATCH v2 2/2] iio: Aspeed AST2400/AST2500 ADC

2017-03-23 Thread Quentin Schulz
Hi, On 22/03/2017 21:46, Rick Altherr wrote: > On Wed, Mar 22, 2017 at 12:21 AM, Quentin Schulz > wrote: >> Hi, >> >> On 21/03/2017 21:48, Rick Altherr wrote: >>> Aspeed AST2400/AST2500 BMC SoCs include a 16 channel, 10-bit ADC. Low >>> and high threshold interrupts are supported by the hardware

Re: maybe revert commit c275a57f5ec3 "xen/balloon: Set balloon's initial state to number of existing RAM pages"

2017-03-23 Thread Juergen Gross
On 23/03/17 03:13, Boris Ostrovsky wrote: > > > On 03/22/2017 05:16 PM, Dan Streetman wrote: >> I have a question about a problem introduced by this commit: >> c275a57f5ec3056f732843b11659d892235faff7 >> "xen/balloon: Set balloon's initial state to number of existing RAM >> pages" >> >> It

Re: [PATCH v2 10/53] mtd: nand: denali: fix erased page checking

2017-03-23 Thread Boris Brezillon
On Thu, 23 Mar 2017 14:04:44 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2017-03-23 5:56 GMT+09:00 Boris Brezillon > : > > On Wed, 22 Mar 2017 23:07:17 +0900 > > Masahiro Yamada wrote: > >> dev_err(denali->dev, > >> @@ -1148,12 +1136,15 @@ static int denali_read_page(struct

Re: [PATCH 1/1] tty: serial: st-asc: Make the locking RT aware

2017-03-23 Thread Patrice CHOTARD
Hi Lionel On 03/22/2017 06:12 PM, Lionel Debieve wrote: > The lock is a sleeping lock and local_irq_save() is not the > standard implementation now. Working for both -RT and non > RT. > > Signed-off-by: Lionel Debieve Acked-by: Patrice Chotard > --- > drivers/tty/serial/st-asc.c | 8

[PATCH v3 2/2] iio: Aspeed ADC

2017-03-23 Thread Rick Altherr
Aspeed BMC SoCs include a 16 channel, 10-bit ADC. Low and high threshold interrupts are supported by the hardware but are not currently implemented. Signed-off-by: Rick Altherr --- Changes in v3: - Drop model numbers from description as same IP is used in every generation - Remove unused macros

Re: [PATCH v2 0/2] kconfig/mconf: propagate jumping function in search result view

2017-03-23 Thread Du, Changbin
Sencond ping... if this is realy not necessary I give up. On Mon, Mar 06, 2017 at 06:28:50PM +0800, Du, Changbin wrote: > Hello, any new update need for this or new comments? :) > > On Wed, Feb 08, 2017 at 11:09:37AM +0800, changbin...@intel.com wrote: > > From: Changbin Du > > > > While I am

[PATCH] checkpatch: Allow space leading blank lines in email headers

2017-03-23 Thread Joe Perches
Allow a leading space and otherwise blank link in the email headers as it can be a line wrapped Spamassassin multiple line string or any other valid rfc 2822/5322 email header. The line with space causes checkpatch to erroniously think that it's in the content body, as opposed to headers and thus

Re: [PATCH net-next 1/8] ptr_ring: introduce batch dequeuing

2017-03-23 Thread Jason Wang
On 2017年03月22日 21:43, Michael S. Tsirkin wrote: On Tue, Mar 21, 2017 at 12:04:40PM +0800, Jason Wang wrote: Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 65 1 file changed, 65 insertions(+) diff --git a/include/linux/ptr_ring.h

Re: [RFC][PATCH 1/4] printk: introduce printing kernel thread

2017-03-23 Thread Sergey Senozhatsky
On (03/22/17 17:40), Petr Mladek wrote: [..] > > +void console_printing_thread_off(void) > > +{ > > + printk_kthread_disable++; > > + barrier(); > > +} > > + > > +/* This re-enables printk_kthread offloading. */ > > +void console_printing_thread_on(void) > > +{ > > + barrier(); > > +

Re: [PATCH v3 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-03-23 Thread Maxime Ripard
On Wed, Mar 22, 2017 at 08:26:07AM -0500, Rob Herring wrote: > Similar to the previous commit, convert drivers open coding OF graph > parsing to use drm_of_find_panel_or_bridge instead. > > This changes some error messages to debug messages (in the graph core). > Graph connections are often "no

Re: [PATCH v2 10/53] mtd: nand: denali: fix erased page checking

2017-03-23 Thread Boris Brezillon
On Thu, 23 Mar 2017 14:15:59 +0900 Masahiro Yamada wrote: > Hi Boris, > > > 2017-03-23 5:36 GMT+09:00 Boris Brezillon > : > > On Wed, 22 Mar 2017 23:07:17 +0900 > > Masahiro Yamada wrote: > > > >> This part is wrong in multiple ways: > >> > >> [1] is_erased() is called against "buf" twice,

Re: [PATCH 0/3] staging: media: Replace a bit shift.

2017-03-23 Thread Chris Moore
Hi, Le 22/03/2017 à 05:26, Arushi Singhal a écrit : Replace a bit shift by a use of BIT in media driver. Arushi Singhal (3): staging: media: Replace a bit shift by a use of BIT. staging: media: davinci_vpfe: Replace a bit shift by a use of BIT. staging: media: omap4iss: Replace a bit

[PATCH v4 5/6] mfd: exynos-lpass: Add missing remove() function

2017-03-23 Thread Marek Szyprowski
Disable device on driver remove and release allocated regmap. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrocki Acked-for-MFD-by: Lee Jones --- drivers/mfd/exynos-lpass.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v4 2/6] pinctrl: samsung: Add support for pad retention control for Exynos5433 SoCs

2017-03-23 Thread Marek Szyprowski
This patch adds support for retention control for Exynos5433 SoCs. Three groups of pins has been defined for retention control: common shared group for ALIVE, CPIF, eSE, FINGER, IMEM, NFC, PERIC, TOUCH pin banks and separate control for FSYS and AUD pin banks, for which PMU retention registers

[PATCH v4 1/6] pinctrl: samsung: Ensure that pad retention is disabled on driver init

2017-03-23 Thread Marek Szyprowski
When pin controller device is a part of power domain, there is no guarantee that the power domain was not turned off and then on during boot process before probing of the pin control driver. If it happened, then pin control driver should ensure that pad retention is turned off during its probe

[PATCH v4 3/6] mfd: exynos-lpass: Remove pad retention control

2017-03-23 Thread Marek Szyprowski
Pad retention should be controlled from pin control driver, so remove it from Exynos LPASS driver. After this change, no more access to PMU regmap is needed, so remove also the code for handling PMU regmap. Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Acked-by: Sylwester

[PATCH v4 4/6] mfd: exynos-lpass: Add support for clocks

2017-03-23 Thread Marek Szyprowski
Exynos LPASS requires some clocks to be enabled to make any access to its registers. This patch adds code for handling such clocks. For current set of registers it is enough to keep sfr0_ctrl clock enabled. Till now it worked only because those clocks were enabled by bootloader and driver probe()

[PATCH v4 6/6] mfd: exynos-lpass: Add runtime PM support

2017-03-23 Thread Marek Szyprowski
Convert exisitng lpass-suspend/resume callbacks into runtime PM callbacks. This way Exynos LPASS driver will be ready for use with power domains enabled. LPASS will be runtime resumed/suspended as a result of its child devices runtime PM transitions. Signed-off-by: Marek Szyprowski Acked-by:

[PATCH v4 0/6] Pad retentions support for Exynos5433

2017-03-23 Thread Marek Szyprowski
Hello, This patchset is a next step to add support for all power domains on Exynos5433 SoCs. This patchset contains patches for Exynos pin control driver and Exynos LPASS MFD driver, which are needed to make the platform ready for adding power domains support. Patches in this patchset have

[PATCH] staging: iio: accel: remove unneeded braces around single statements

2017-03-23 Thread Mark Stenglein
Fixes three checkpatch warnings due to braces used when single statements are sufficient. Signed-off-by: Mark Stenglein --- drivers/staging/iio/accel/adis16209.c | 3 +-- drivers/staging/iio/accel/adis16240.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git

Re: [PATCH net-next v2 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-23 Thread Sean Wang
Hi Andrew, The purpose for the regmap table registered is to provide a way which helps us to look up a specific register on the switch through regmap-debugfs. And not all ranges of register is defined so I only include the meaningful ones in a sparse way for the table. Sean On

Re: [PATCH v2 11/53] mtd: nand: denali: fix bitflips calculation in handle_ecc()

2017-03-23 Thread Boris Brezillon
On Thu, 23 Mar 2017 16:02:02 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2017-03-23 5:57 GMT+09:00 Boris Brezillon > : > > On Wed, 22 Mar 2017 23:07:18 +0900 > > Masahiro Yamada wrote: > > > >> + do { > >> + err_addr = ioread32(denali->flash_reg + ECC_ERROR_ADDRESS); > >> +

[PATCH v2 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen --- Changes in v2: Don't change the resource_list_create_entry's behavior. drivers/of/of_pci.c | 57

[PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (2): PCI: return resource_entry in pci_add_resource helpers of/pci:

[PATCH] mm: fix a coding style issue

2017-03-23 Thread Kristaps Civkulis
Fix a coding style issue. Signed-off-by: Kristaps Civkulis --- Resend, because it should be only [PATCH] in subject. --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3d0aab9ee80d..4c72c1974c8c 100644 --- a/mm/hugetlb.c +++

[PATCH v2 1/2] PCI: return resource_entry in pci_add_resource helpers

2017-03-23 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/pci/bus.c | 13 - include/linux/pci.h | 8 +--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index bc56cf1..36a1861 100644 --- a/drivers/pci/bus.c +++

Re: [PATCH v17 0/3] USB Type-C Connector class

2017-03-23 Thread Heikki Krogerus
Hi Mats, On Wed, Mar 22, 2017 at 10:15:20PM +0100, Mats Karrman wrote: > On 03/21/2017 11:37 AM, Heikki Krogerus wrote: > > > > I'm lost in the long thread here, is this series still ready to be > > > merged in, or is there another version that is being worked on? > > There was one documentation

[PATCH 1/2] f2fs: clean up xattr operation

2017-03-23 Thread Chao Yu
1. don't allocate redundant memory in read_all_xattrs. 2. introduce RESERVED_XATTR_SIZE for cleanup. Signed-off-by: Chao Yu Reviewed-by: Kinglong Mee --- fs/f2fs/xattr.c | 25 +++-- fs/f2fs/xattr.h | 3 ++- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git

[PATCH 2/2] f2fs: don't reserve additional space in xattr block

2017-03-23 Thread Chao Yu
In this patch, we change xattr block disk layout as below: Before: xattr node block layout +-+---+-+ | node block xattr entries | reserved| node footer | | 4068

Re: [PATCH 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread jeffy
Hi Rob, On 03/22/2017 10:55 PM, Rob Herring wrote: On Wed, Mar 22, 2017 at 9:39 AM, Rob Herring wrote: On Tue, Mar 21, 2017 at 9:25 PM, Jeffy Chen wrote: Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list.

[PATCH v3 1/2] Documentation: dt-bindings: Document bindings for Aspeed ADC

2017-03-23 Thread Rick Altherr
Signed-off-by: Rick Altherr --- Changes in v3: - Consistently write hex contstants with lowercase letters - Drop model numbers from description as same IP is used in every generation Changes in v2: - Rewritten as an IIO ADC device .../devicetree/bindings/iio/adc/aspeed_adc.txt | 20

Re: [PATCH v2 12/53] mtd: nand: denali: support HW_ECC_FIXUP capability

2017-03-23 Thread Boris Brezillon
On Thu, 23 Mar 2017 16:06:19 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2017-03-23 6:09 GMT+09:00 Boris Brezillon > : > > On Wed, 22 Mar 2017 23:07:19 +0900 > > Masahiro Yamada wrote: > > > >> @@ -339,6 +352,7 @@ struct denali_nand_info { > >> int bbtskipbytes; > >> int

[PATCH v2] serial: 8250_lpss: Unconditionally set PCI master for Quark

2017-03-23 Thread Jan Kiszka
MSI needs it as well. Should have no practical impact, though, as DMA is always available on the Quark. But given the few users of pci_alloc_irq_vectors so far, this incorrect pattern may spread otherwise. Fixes: 3f3a46951e02 ("serial: 8250_lpss: set PCI master only for private DMA")

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-23 Thread Lionel DEBIEVE
On 03/22/2017 07:47 PM, Julia Cartwright wrote: > On Wed, Mar 22, 2017 at 01:30:12PM -0500, Grygorii Strashko wrote: >> On 03/22/2017 01:01 PM, Steven Rostedt wrote: >>> On Wed, 22 Mar 2017 12:37:59 -0500 >>> Julia Cartwright wrote: >>> Which kernel were you testing on, here? From what I

Re: [PATCH] staging: wilc1000: use kernel define byte order macros

2017-03-23 Thread Dan Carpenter
On Wed, Mar 22, 2017 at 07:53:28PM -0600, Robert Perry Hooker wrote: > I don't think buff is an ieee80211_hdr struct. I think it's the rx_buffer > allocated at wilc_wlan.c:1417. > The rx_buffer is going to end up filled with endian data, right? regards, dan carpenter

[PATCH] usb: phy: Remove unused config

2017-03-23 Thread Baolin Wang
Since the old common Samsung USB PHY code has been removed by commit ea2fdf8423 ("usb: phy: samsung: remove old common USB PHY code"), thus remove the unused config. Signed-off-by: Baolin Wang --- drivers/usb/phy/Kconfig |7 --- drivers/usb/phy/Makefile |1 - 2 files changed, 8

Re: [PATCH] checkpatch: Flag spam header (X-Spam-Report) to prevent spurious warnings

2017-03-23 Thread Joe Perches
On Wed, 2017-03-22 at 23:01 -0700, Darren Hart wrote: > I still haven't figured out why we test for this specific set of patterns. Why > is a line that starts with a space and ends with a newline considered still > in_header_lines. Or more specifically, why aren't we just testing for an empty >

Re: [PATCH] sched: Prefer sibiling only if local group is under-utilized

2017-03-23 Thread Vincent Guittot
On 22 March 2017 at 18:57, Srikar Dronamraju wrote: > If the child domain prefers tasks to go siblings, the local group could > end up pulling tasks to itself even if the local group is almost equally > loaded as the source group. > > Lets assume a 4 core,smt==2 machine running 5 thread ebizzy

[PATCH] staging: most: Adds parentheses around macros with complex values

2017-03-23 Thread Mark Stenglein
Fixes three instances of the following checklist error: - ERROR: Macros with complex values should be enclosed in parentheses Simply adds parentheses around the macros to fix the problem. Signed-off-by: Mark Stenglein --- drivers/staging/most/mostcore/core.c | 12 ++-- 1 file

Re: [RESEND PATCH v2 26/53] mtd: nand: denali: support 1024 byte ECC step size

2017-03-23 Thread Boris Brezillon
On Thu, 23 Mar 2017 15:53:14 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2017-03-23 6:32 GMT+09:00 Boris Brezillon > : > > On Thu, 23 Mar 2017 05:07:25 +0900 > > Masahiro Yamada wrote: > > > >> This driver was originally written for the Intel MRST platform with > >> several platform

Re: Still OOM problems with 4.9er/4.10er kernels

2017-03-23 Thread Mike Galbraith
On Thu, 2017-03-23 at 08:16 +0100, Gerhard Wiesinger wrote: > On 21.03.2017 08:13, Mike Galbraith wrote: > > On Tue, 2017-03-21 at 06:59 +0100, Gerhard Wiesinger wrote: > > > > > Is this the correct information? > > Incomplete, but enough to reiterate cgroup_disable=memory > > suggestion. > > >

Re: [PATCH] mm: workingset: fix premature shadow node shrinking with cgroups

2017-03-23 Thread Vladimir Davydov
On Tue, Mar 21, 2017 at 08:53:20PM -0400, Johannes Weiner wrote: > 0a6b76dd23fa ("mm: workingset: make shadow node shrinker memcg aware") > enabled cgroup-awareness in the shadow node shrinker, but forgot to > also enable cgroup-awareness in the list_lru the shadow nodes sit on. > > Consequently,

Re: race condition in kernel/padata.c

2017-03-23 Thread Steffen Klassert
On Thu, Mar 23, 2017 at 12:03:43AM +0100, Jason A. Donenfeld wrote: > Hey Steffen, > > WireGuard makes really heavy use of padata, feeding it units of work > from different cores in different contexts all at the same time. For > the most part, everything has been fine, but one particular user has

[PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister

2017-03-23 Thread Baolin Wang
Since usb phy core has added common code to register or unregister extcon device, then phy-qcom-8x16-usb driver does not need its own code to register/unregister extcon device, then remove them. Signed-off-by: Baolin Wang --- Changes since v1: - No updates. ---

Re: [PATCH] staging: vt6656: removed coding style errors

2017-03-23 Thread Prasant Jalan
On Thu, Mar 23, 2017 at 1:02 PM, Greg KH wrote: > > On Wed, Mar 22, 2017 at 09:39:24PM +0530, Prasant Jalan wrote: > > The patch replaces spaces with tabs as required by kernel coding > > standards. > > > > Signed-off-by: Prasant Jalan > > --- > > drivers/staging/vt6656/rxtx.c | 40

[PATCH] drivers/staging/dgnc: Removing manual function tracing using dev_dbg

2017-03-23 Thread Pushkar Jambhlekar
Current implementation manually traces function using 'dev_dbg'. This way is not needed because of ftrace, making these calls redundant. Signed-off-by: Pushkar Jambhlekar --- drivers/staging/dgnc/dgnc_tty.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c

[PATCH] hangcheck-timer: Fix typo in comment

2017-03-23 Thread Shile Zhang
Fix the typo "alloted" -> "allowed" in comment. Signed-off-by: Shile Zhang --- drivers/char/hangcheck-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c index 4f33737..dcd37b1 100644 ---

Re: [RFC][PATCH 0/4] printk: introduce printing kernel thread

2017-03-23 Thread Peter Zijlstra
On Thu, Mar 23, 2017 at 01:09:58PM +0900, Sergey Senozhatsky wrote: > Hello Peter, > > thanks for taking a look. > > On (03/22/17 18:59), Peter Zijlstra wrote: > > On Mon, Mar 06, 2017 at 09:45:50PM +0900, Sergey Senozhatsky wrote: > > > sysrq is potentially even trickier. can we always

Re: [PATCH 2/3] pinctrl: meson-gxl: Fix inverted registers and add missing pins

2017-03-23 Thread Linus Walleij
On Wed, Mar 15, 2017 at 10:49 AM, Neil Armstrong wrote: > On 03/15/2017 10:43 AM, Linus Walleij wrote: >> On Tue, Mar 7, 2017 at 2:31 PM, Neil Armstrong >> wrote: >> >>> Fix some inverted bit numbers in some pinctrl groups and add missing pins >>> and groups to be in pair with the GXBB pinctrl

[PATCH] drm/fb-helper: Allow var->x/yres(_virtual) < fb->width/height again

2017-03-23 Thread Michel Dänzer
From: Michel Dänzer Otherwise this can also prevent modesets e.g. for switching VTs, when multiple monitors with different native resolutions are connected. The depths must match though, so keep the != test for that. Also update the DRM_DEBUG output to be slightly more accurate, this doesn't

Re: [PATCH 1/2] gpio: mmio: add support for NI 169445 NAND GPIO

2017-03-23 Thread Linus Walleij
On Tue, Mar 14, 2017 at 5:13 PM, Nathan Sullivan wrote: > The GPIO-based NAND controller on National Instruments 169445 hardware > exposes a set of simple lines for the control signals. > > Signed-off-by: Nathan Sullivan Patch applied. Yours, Linus Walleij

Re: [PATCH 2/3] pinctrl: meson-gxl: Fix inverted registers and add missing pins

2017-03-23 Thread Neil Armstrong
Le 23/03/2017 09:53, Linus Walleij a écrit : > On Wed, Mar 15, 2017 at 10:49 AM, Neil Armstrong > wrote: >> On 03/15/2017 10:43 AM, Linus Walleij wrote: >>> On Tue, Mar 7, 2017 at 2:31 PM, Neil Armstrong >>> wrote: >>> Fix some inverted bit numbers in some pinctrl groups and add missing

Re: [PATCH] asm-generic: fix compilation failure in cmpxchg_double()

2017-03-23 Thread Dmitry Vyukov
On Wed, Mar 22, 2017 at 10:27 PM, Arnd Bergmann wrote: > On Wed, Mar 22, 2017 at 12:27 PM, Arnd Bergmann wrote: >> On Wed, Mar 22, 2017 at 12:10 PM, Dmitry Vyukov wrote: >>> Arnd reported that the new code leads to compilation failures >>> with some versions of gcc. I've filed gcc issue 72873,

Re: [PATCH v12 6/9] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-03-23 Thread Jan Glauber
On Fri, Mar 17, 2017 at 03:58:26PM +0100, Ulf Hansson wrote: > On 10 March 2017 at 14:25, Jan Glauber wrote: > > Add a platform driver for ThunderX ARM SOCs. > > > > Signed-off-by: Jan Glauber > > --- > > drivers/mmc/host/Kconfig | 10 ++ > > drivers/mmc/host/Makefile

[PATCH v6] vfio error recovery: kernel support

2017-03-23 Thread Cao jin
From: "Michael S. Tsirkin" 0. What happens now (PCIE AER only) Fatal errors cause a link reset. Non fatal errors don't. All errors stop the QEMU guest eventually, but not immediately, because it's detected and reported asynchronously. Interrupts are forwarded as usual. Correctable

Re: [PATCH] staging: most: Adds parentheses around macros with complex values

2017-03-23 Thread Greg KH
On Thu, Mar 23, 2017 at 04:38:38AM -0400, Mark Stenglein wrote: > Fixes three instances of the following checklist error: > - ERROR: Macros with complex values should be enclosed > in parentheses > > Simply adds parentheses around the macros to fix the problem. > > Signed-off-by: Mark

Re: [RFC][PATCH 2/4] printk: offload printing from wake_up_klogd_work_func()

2017-03-23 Thread Sergey Senozhatsky
On (03/20/17 17:09), Petr Mladek wrote: [..] > > BTW: wake_up_klogd_work does not need to be per-CPU as well. > irq_work infrastructure heavily uses per-CPU variables. > But a global struct irq_work is safe, see irq_work_claim(). so I have a patch that turns wake_up_klogd_work into a global

Re: [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Shawn Lin
Hi Jeffy, On 2017/3/23 16:12, Jeffy Chen wrote: In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Tested-by: Shawn Lin Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy

Re: [PATCH] staging: vt6656: removed coding style errors

2017-03-23 Thread Greg KH
On Thu, Mar 23, 2017 at 01:55:31PM +0530, Prasant Jalan wrote: > On Thu, Mar 23, 2017 at 1:02 PM, Greg KH wrote: > > > > On Wed, Mar 22, 2017 at 09:39:24PM +0530, Prasant Jalan wrote: > > > The patch replaces spaces with tabs as required by kernel coding > > > standards. > > > > > >

Re: [PATCHv2 1/1] mmc: core: export emmc revision via sysfs

2017-03-23 Thread Ulf Hansson
On 23 March 2017 at 01:18, Jin Qian wrote: > Extend sysfs to access ext_csd revision information. > > Signed-off-by: Jin Qian > --- > drivers/mmc/core/mmc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c > index

Re: [PATCH v2 1/4] pinctrl: rockchip: remove unnecessary locking

2017-03-23 Thread Linus Walleij
On Wed, Mar 15, 2017 at 6:46 PM, John Keeping wrote: > regmap_update_bits does its own locking and everything else accessed > here is a local variable so there is no need to lock around it. > > Signed-off-by: John Keeping > Reviewed-by: Heiko Stuebner > Tested-by: Heiko Stuebner > --- > v2: >

Re: [PATCH] pinctrl: rockchip: add irq_enable & irq_disable ops

2017-03-23 Thread Linus Walleij
On Thu, Mar 2, 2017 at 6:56 AM, Jeffy Chen wrote: > Currently we are trying to enable/disable the clk of irq's gpio bank when > unmask/mask irq. But the kernel's "lazy disable approach" will skip masking > irq when the irq chip doesn't support irq_disable ops. > > So we may hit this case: >

<    6   7   8   9   10   11   12   13   14   15   >