Re: [PATCH v5 01/12] PCI: endpoint: BAR width should not depend on sizeof dma_addr_t

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > If a BAR supports 64-bit width or not depends on the hardware, > and should thus not depend on sizeof(dma_addr_t). > > If a certain hardware doesn't support 64-bit BARs, its > epc->ops->set_bar() implementation should return -EINVAL > w

Re: [PATCH v5 02/12] PCI: endpoint: Simplify epc->ops->set_bar()/pci_epc_set_bar()

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Add barno and flags to struct epf_bar. > That way we can simplify epc->ops->set_bar()/pci_epc_set_bar() > by passing a struct *epf_bar instead of a whole lot of arguments. > > This is needed so that epc->ops->set_bar() implementations c

RE: [PATCH] gpio: dwapb: Add support for 32 interrupts

2018-03-29 Thread Phil Edworthy
Hi, On 28 March 2018 15:23, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 or 32 interrupts, > but the driver currently only supports 1 interrupt. See the DesignWare > DW_apb_gpio Databook description of the 'GPIO_INTR_IO' parameter. > > This change allows the driver

Re: [PATCH v5 03/12] PCI: endpoint: Setting BAR_5 to 64-bits wide is invalid

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Since a 64-bit BAR consists of a BAR pair, and since there is no > BAR after BAR_5, BAR_5 cannot be 64-bits wide. > > This sanity check is done in pci_epc_set_bar(), so that we don't need > to do this sanity check in all epc->ops->set_b

Re: [PATCH v5 04/12] PCI: endpoint: Setting 64-bit/prefetch bit is invalid when IO is set

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > If flag PCI_BASE_ADDRESS_SPACE_IO is set, also having any > PCI_BASE_ADDRESS_MEM_* bit set is invalid. > > This sanity check is done in pci_epc_set_bar(), so that we don't need > to do this sanity check in all epc->ops->set_bar() implem

Re: [PATCH v5 05/12] PCI: endpoint: Setting a BAR size > 4 GB is invalid if 64-bit flag is not set

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Setting a BAR size > 4 GB is invalid if PCI_BASE_ADDRESS_MEM_TYPE_64 > flag is not set. > > This sanity check is done in pci_epc_set_bar(), so that we don't need > to do this sanity check in all epc->ops->set_bar() implementations. > >

Re: [PATCH 3/9] staging: ks7010: Reorder ks_wlan_netdev_ops members.

2018-03-29 Thread Greg KH
On Wed, Mar 28, 2018 at 10:51:46PM -0700, Quytelda Kahja wrote: > Reorder the members of 'ks_wlan_netdev_ops' to reflect the order > of their counterparts in the kernel's 'struct net_device_ops'. Why? This shouldn't matter at all, why make this change? greg k-h

linux-next: Tree for Mar 29

2018-03-29 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release tomorrow or Monday. Changes since 20180328: The kbuild tree gained a build failure for which I reverted 2 commits. The powerpc tree gained an allnoconfig build failure. The vfs tree gained conflicts against the syscalls tree and still had its b

RE: [RFC PATCH] sdhci: arasan: Add runtime PM support

2018-03-29 Thread Manish Narani
Hi Shawn, > -Original Message- > From: Shawn Lin [mailto:shawn@rock-chips.com] > Sent: Thursday, March 29, 2018 12:57 PM > To: naraniman...@gmail.com > Cc: adrian.hun...@intel.com; michal.si...@xilinx.com; > ulf.hans...@linaro.org; linux-...@vger.kernel.org; linux-arm- > ker...@lists.i

Re: [PATCH v3 2/8] efi: Decode IA32/X64 Processor Error Section

2018-03-29 Thread Borislav Petkov
On Sat, Mar 24, 2018 at 01:49:34PM -0500, Yazen Ghannam wrote: > From: Yazen Ghannam > > Recognize the IA32/X64 Processor Error Section. > > Do the section decoding in a new "cper-x86.c" file and add this to the > Makefile depending on a new "UEFI_CPER_X86" config option. > > Print the Local AP

Re: [PATCH] w1: gpio: fix problem with platfom data in w1-gpio

2018-03-29 Thread Paweł Dembicki
2018-03-17 12:55 GMT+01:00 Greg Kroah-Hartman : > Where is this patch supposed to go? Is this a stable backport patch, or > something to go into Linus's tree? I tested it in 4.9 and 4.14 kernels in OpenERT. So it is a stable backport patch. In current release this bug is fixed because w1-gpio u

Re: [PATCH v5 06/12] PCI: designware-ep: Make dw_pcie_ep_set_bar() handle 64-bit BARs properly

2018-03-29 Thread Kishon Vijay Abraham I
Hi, On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Since a 64-bit BAR consists of a BAR pair, we need to write to both > BARs in the BAR pair to setup the BAR properly. > > Signed-off-by: Niklas Cassel > --- > drivers/pci/dwc/pcie-designware-ep.c | 11 +-- > 1 file changed,

Re: [PATCH v5 08/12] PCI: endpoint: Handle 64-bit BARs properly

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > If a 64-bit BAR was set-up, we need to skip a BAR, > since a 64-bit BAR consists of a BAR pair. > > We need to check what BAR width the epc->ops->set_bar() specific > implementation actually did set-up, since some drivers, like the > Ca

Re: [PATCH 7/9] staging: ks7010: Remove trailing "_t" from all structure names.

2018-03-29 Thread Greg KH
On Wed, Mar 28, 2018 at 10:51:50PM -0700, Quytelda Kahja wrote: > The "_t" suffix is not needed for structure names in this driver, > and is a reflection of an older typedef system that is no longer > in place. Remove the "_t" suffix from every structure defined in this > driver. Again, please br

Re: [PATCH] [mmc_block] Prevent bus reference leak in mmc_blk_init

2018-03-29 Thread Shawn Lin
On 2018/3/29 6:18, Alexander Kappner wrote: Upon module load, mmc_block allocates a bus with bus_register in mmc_blk_init. This reference never gets freed during module unload. Subsequent re-insertions of the module fail and BUG() is triggered: WARN() is triggered. [ 84.583342] sysfs: cann

Re: [PATCH v4 02/16] riscv: Use generic free_initrd_mem.

2018-03-29 Thread Daniel Thompson
On 28/03/18 21:36, Shea Levy wrote: Signed-off-by: Shea Levy --- arch/riscv/mm/init.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index c77df8142be2..36f83fe8a726 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -62,9 +62

Re: [PATCH] Staging: comedi: ni_stc: Fixed comment coding style issue

2018-03-29 Thread Greg KH
On Mon, Mar 26, 2018 at 03:27:10PM +0200, Rene Hickersberger wrote: > Fixed a coding style issue where the comment * was not aligned. > > Signed-off-by: Rene Hickersberger > --- > drivers/staging/comedi/drivers/ni_stc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dr

Re: [PATCH] staging: mt7621-eth: Fix sparse warning in ethtool.c

2018-03-29 Thread Greg Kroah-Hartman
On Wed, Mar 28, 2018 at 10:18:48PM +0100, Chris Coffey wrote: > Include the local ethtool.h header file in mtk_eth_soc.h so > implementation files have centralized access to it. > > This fixes the following sparse warning: > > drivers/staging/mt7621-eth/ethtool.c:213:6: warning: symbol > 'mtk_set

Re: [PATCH v5 09/12] PCI: endpoint: Make epc->ops->clear_bar()/pci_epc_clear_bar() take struct *epf_bar

2018-03-29 Thread Kishon Vijay Abraham I
Hi Niklas, On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Make epc->ops->clear_bar()/pci_epc_clear_bar() take struct *epf_bar. > > This is needed so that epc->ops->clear_bar() can clear the BAR pair, > if the BAR is 64-bits wide. > > This also makes it possible for pci_epc_clear_bar

[RFC PATCH 2/2] ACPI/IORT: use swiotlb_dma_ops when smmu probe failed

2018-03-29 Thread Wang Dongsheng
If SMMU probe failed, master should use swiotlb as dma ops. SMMU may probe failed with specified environment, so there are not any iommu resources in iommu_device_list. The master will always get EPROBE_DEFER from really_probe (dma_configure) but in fact SMMU has probe failed. The issue causes all

[RFC PATCH 1/2] driver core: add new dl device status DL_DEV_PROBE_FAILED

2018-03-29 Thread Wang Dongsheng
Currently the initialization state of device is DL_DEV_NO_DRIVER. The problem is, after probe failure the state will also be set to DL_DEV_NO_DRIVER as well. And the device is not linked, it has no supplier or consumer. Thus adding a new state to distinguish probe failure and not-probed-yet. Signe

[RFC PATCH 0/2] driver core: add new dl device status DL_DEV_PROBE_FAILED

2018-03-29 Thread Wang Dongsheng
Recently we found the master of SMMU retries to probe endlessly. [3.658956] pci :00:00.0: Retrying from deferred list [3.658969] pci :00:00.0: Added to deferred list [3.658987] pci 0004:00:00.0: Retrying from deferred list [3.658994] pci 0004:00:00.0: Added to deferred list

Re: [PATCH] w1: gpio: fix problem with platfom data in w1-gpio

2018-03-29 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 11:47:25AM +0200, Paweł Dembicki wrote: > 2018-03-17 12:55 GMT+01:00 Greg Kroah-Hartman : > > > Where is this patch supposed to go? Is this a stable backport patch, or > > something to go into Linus's tree? > > I tested it in 4.9 and 4.14 kernels in OpenERT. So it is a st

Re: [PATCH v6 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder

2018-03-29 Thread jacopo mondi
Hi Vladimir, On Tue, Mar 27, 2018 at 02:03:25PM +0300, Vladimir Zapolskiy wrote: > Hi Jacopo, > > On 03/27/2018 01:10 PM, jacopo mondi wrote: > > Hi Vladimir, > > > > On Tue, Mar 27, 2018 at 12:37:31PM +0300, Vladimir Zapolskiy wrote: > >> Hi Jacopo, > >> > >> On 03/27/2018 11:57 AM, jacopo mondi

Re: [PATCH v5 10/12] PCI: endpoint: Make sure that BAR_5 does not have 64-bit flag set when clearing

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Since a 64-bit BAR consists of a BAR pair, and since there is no > BAR after BAR_5, BAR_5 cannot be 64-bits wide. > > This sanity check is done in pci_epc_clear_bar(), so that we don't need > to do this sanity check in all epc->ops->cle

Re: [PATCH] Documentation/usb: Fix dead links and convert others to https

2018-03-29 Thread Johan Hovold
On Thu, Mar 29, 2018 at 12:07:52AM +0800, Sanjeev Gupta wrote: > All links checked, for those dead, I have replaced with copies on > archive.org. For some, https is not supported, http has been > kept. > > The git log says this was last done by Justin P. Mattock in 2010. > Hi, Justin! Not sure t

Re: [PATCH v5 11/12] PCI: designware-ep: Make dw_pcie_ep_reset_bar() handle 64-bit BARs properly

2018-03-29 Thread Kishon Vijay Abraham I
On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > Since a 64-bit BAR consists of a BAR pair, we need to write to both > BARs in the BAR pair to clear the BAR properly. > > Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I > --- > drivers/pci/dwc/pcie-designware-ep.c | 4

Re: [v2,2/2] media: Add a driver for the ov7251 camera sensor

2018-03-29 Thread Todor Tomov
Hi Sakari On 29.03.2018 11:29, Sakari Ailus wrote: > Hi Todor and Jacopo, > > On Thu, Mar 29, 2018 at 10:50:10AM +0300, Todor Tomov wrote: > ... +static const struct of_device_id ov7251_of_match[] = { + { .compatible = "ovti,ov7251" }, + { /* sentinel */ } +}; +MODULE_D

[PATCH 0/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Jisheng Zhang
This series tries to optimize the mvneta's suspend/resume implementation by only taking necessary actions. Jisheng Zhang (2): net: mvneta: split rxq/txq init into SW and HW parts net: mvneta: improve suspend/resume drivers/net/ethernet/marvell/mvneta.c | 146 +++--

Re: 4.16-rc2+git: pata_serverworks: hanging ata detection thread on HP DL380G3

2018-03-29 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, March 29, 2018 11:54:09 AM Meelis Roos wrote: > > 4.16 git bootup on HP Proliant DL380 G3 pauses for a a minute or two and > > then continues with "blocked for more than 120 seconds" message with > > libata detection functions in ther stack - > > async_synchronize_cookie_domai

[PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-29 Thread Jisheng Zhang
This is to prepare the suspend/resume improvement in next patch. The SW parts can be optimized out during resume. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 70 ++- 1 file changed, 53 insertions(+), 17 deletions(-) diff --git a/drive

[PATCH 2/2] net: mvneta: improve suspend/resume

2018-03-29 Thread Jisheng Zhang
Current suspend/resume implementation reuses the mvneta_open() and mvneta_close(), but it could be optimized to take only necessary actions during suspend/resume. One obvious problem of current implementation is: after hundreds of system suspend/resume cycles, the resume of mvneta could fail due t

Re: [v2,2/2] media: Add a driver for the ov7251 camera sensor

2018-03-29 Thread Sakari Ailus
Hi Todor, On Thu, Mar 29, 2018 at 01:09:18PM +0300, Todor Tomov wrote: > > There's another change needed, too, which is not using of_match_ptr > > macro, but instead assigning the of_match_table unconditionally. > > In that case the MODULE_DEVICE_TABLE(i2c, ...) is again not needed? > And matchin

Re: [PATCH v8 00/14] iommu/rockchip: Use OF_IOMMU

2018-03-29 Thread Joerg Roedel
On Fri, Mar 23, 2018 at 03:38:00PM +0800, Jeffy Chen wrote: > > This series fixes some issues in rockchip iommu driver, and add of_iommu > support in it. > > Changes in v8: > Rebase on newest for-next. > Don't introduce the additional return. > Rename startup()/shutdown() to enable()/disable(). >

Re: [PATCH v2] lockdep: Show address of "struct lockdep_map" at print_lock().

2018-03-29 Thread Tetsuo Handa
>From 91c081c4c5f6a99402542951e7de661c38f928ab Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 27 Mar 2018 19:38:33 +0900 Subject: [PATCH v2] lockdep: Show address of "struct lockdep_map" at print_lock(). Since "struct lockdep_map" is embedded into lock objects, we can know which instance

[PATCH v1] kernel/trace:check the val against the available mem

2018-03-29 Thread Zhaoyang Huang
It is reported that some user app would like to echo a huge number to "/sys/kernel/debug/tracing/buffer_size_kb" regardless of the available memory, which will cause the coinstantaneous page allocation failed and introduce OOM. The commit checking the val against the available mem first to avoid t

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-29 Thread Alexandre Belloni
On 29/03/2018 at 10:01:26 +0200, Alexander Dahl wrote: > Hei hei, > > Am Mittwoch, 28. März 2018, 17:50:33 CEST schrieb Alexandre Belloni: > > On 28/03/2018 at 17:31:35 +0200, Alexandre Belloni wrote: > > > > Do you have an explanation of why the rate is much higher ? > > > > > > The core is givi

Re: 4.16-rc2+git: pata_serverworks: hanging ata detection thread on HP DL380G3

2018-03-29 Thread Meelis Roos
> On Thursday, March 29, 2018 11:54:09 AM Meelis Roos wrote: > > > 4.16 git bootup on HP Proliant DL380 G3 pauses for a a minute or two and > > > then continues with "blocked for more than 120 seconds" message with > > > libata detection functions in ther stack - > > > async_synchronize_cookie_d

Re: [RFC PATCH 1/2] driver core: add new dl device status DL_DEV_PROBE_FAILED

2018-03-29 Thread Rafael J. Wysocki
On Thu, Mar 29, 2018 at 12:00 PM, Wang Dongsheng wrote: > Currently the initialization state of device is DL_DEV_NO_DRIVER. > The problem is, after probe failure the state will also be set to > DL_DEV_NO_DRIVER as well. And the device is not linked, it has no > supplier or consumer. Thus adding a

Re: [PATCH v2] staging: vt6655: check for memory allocation failures

2018-03-29 Thread ji-hun Kim
2018-03-29 17:00 GMT+09:00 Jia-Ju Bai : > > > > On 2018/3/29 15:22, Ji-Hun Kim wrote: >> >> There are no null pointer checking on rd_info and td_info values which >> are allocated by kzalloc. It has potential null pointer dereferencing >> issues. Add return when allocation is failed. >> >> Signed-o

Re: [PATCH v3 3/8] efi: Decode IA32/X64 Processor Error Info Structure

2018-03-29 Thread Borislav Petkov
On Sat, Mar 24, 2018 at 01:49:35PM -0500, Yazen Ghannam wrote: > From: Yazen Ghannam > > Print the fields in the IA32/X64 Processor Error Info Structure. > > Based on UEFI 2.7 Table 253. IA32/X64 Processor Error Information > Structure. > > Signed-off-by: Yazen Ghannam > --- > Link: > https://

Re: [RFC][PATCH] ipc: Remove IPCMNI

2018-03-29 Thread Matthew Wilcox
On Thu, Mar 29, 2018 at 10:47:45AM +0200, Manfred Spraul wrote: > > > > > > This can be implemented trivially with the current code > > > > > > using idr_alloc_cyclic. > > Is there a performance impact? > Right now, the idr tree is only large if there are lots of objects. > What happens if we have

[PATCH net-next] MAINTAINERS: Update my email address from freescale to nxp

2018-03-29 Thread Claudiu Manoil
The freescale.com address will no longer be available. Signed-off-by: Claudiu Manoil --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 73c0cda..274ba58 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5637,7 +5637,7 @@ S:Mai

Re: [PATCH] pci: move pcie_pme_root_status_cleanup into SUSPEND section

2018-03-29 Thread Rafael J. Wysocki
On Wednesday, March 28, 2018 3:47:18 PM CEST Arnd Bergmann wrote: > The power management code in pci-driver.c is a maze of #ifdefs, and > the newly added pcie_pme_root_status_cleanup function ended up in the > wrong one of them, causing a harmless warning in some configurations: > > drivers/pci/pc

Re: 答复: 答复: [PATCH] Delete some unusefull operations for centaur CPU/platform

2018-03-29 Thread Rafael J. Wysocki
On Wednesday, March 28, 2018 11:21:15 AM CEST David Wang wrote: > Dear Rafael, > > After disscusion with engineer from Centaur, the orginal patch maybe not > safe for some older Centaur CPU/platform. So, I want to use another patch > like the following: OK I will drop the previous one, no pr

Re: [PATCH v3 6/8] DT: arm: Add Renesas RZ/N1 SoC base device tree file

2018-03-29 Thread jacopo mondi
Hi Michel The subject of all your patches for arch/arm should start with: ARM: dts: A git log on that directory clearly shows that's the preferred one. I would also say that you are missing a symbol definition in arch/arm/mach-shmobile/Kconfig (even if you got rid of any board file) I would ex

[PATCH v4 0/7] phy: qcom: Updates for USB PHYs on SDM845

2018-03-29 Thread Manu Gautam
SDM845 has two USB instances each with QUSB2 and QMP PHYs. One of the QMP PHY is USB-DP (DisplayPort) combo PHY where as other one is single lane UNI-PHY (without DP support). Changes are related to PHY configuration for electrical parameters tuning to improve eye-diagram and some fixes. Changes s

[PATCH v4 1/7] clk: msm8996-gcc: change halt check for USB/PCIE pipe_clk

2018-03-29 Thread Manu Gautam
The USB and PCIE pipe clocks are sourced from external clocks inside the QMP USB/PCIE PHYs. Enabling or disabling of PIPE RCG clocks is dependent on PHY initialization sequence hence update halt_check to BRANCH_HALT_DELAY for these clocks so that clock status bit is not polled when enabling or disa

[PATCH v4 2/7] phy: qcom-qmp: Enable pipe_clk before PHY initialization

2018-03-29 Thread Manu Gautam
QMP PHY for USB/PCIE requires pipe_clk for locking of retime buffers at the pipe interface. Driver checks for PHY_STATUS without enabling pipe_clk due to which phy_init() fails with initialization timeout. Though pipe_clk is output from PHY (after PLL is programmed during initialization sequence) t

[PATCH v4 5/7] phy: qcom-qmp: Add QMP V3 USB3 UNI PHY support for sdm845

2018-03-29 Thread Manu Gautam
QMP V3 UNI PHY is a single lane USB3 PHY without support for DisplayPort (DP). Main difference from DP combo QMPv3 PHY is that UNI PHY doesn't have dual RX/TX lanes and no separate DP_COM block for configuration related to type-c or DP. Also remove "qcom,qmp-v3-usb3-phy" compatible string which was

[PATCH v4 6/7] dt-bindings: phy-qcom-usb2: Add support to override tuning values

2018-03-29 Thread Manu Gautam
To improve eye diagram for PHYs on different boards of same SOC, some parameters may need to be changed. Provide device tree properties to override these from board specific device tree files. While at it, replace "qcom,qusb2-v2-phy" with compatible string for USB2 PHY on sdm845 which was earlier a

[PATCH v4 7/7] phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845

2018-03-29 Thread Manu Gautam
There are two QUSB2 PHYs present on sdm845. In order to improve eye diagram for both the PHYs some parameters need to be changed. Provide device tree properties to override these from board specific device tree files. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 112 +++

[PATCH v4 3/7] phy: qcom-qusb2: Fix crash if nvmem cell not specified

2018-03-29 Thread Manu Gautam
Driver currently crashes due to NULL pointer deference while updating PHY tune register if nvmem cell is NULL. Since, fused value for Tune1/2 register is optional, we'd rather bail out. Fixes: ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") Reviewed-by: Vivek Gautam Revie

[PATCH v4 4/7] dt-bindings: phy-qcom-qmp: Update bindings for sdm845

2018-03-29 Thread Manu Gautam
Update compatible strings for USB3 PHYs on SDM845. One is QMPv3 DisplayPort-USB combo PHY and other one is USB UNI PHY which is single lane USB3 PHY without DP capability. While at it also remove "qcom,qmp-v3-usb3-phy" compatible string which was earlier added for sdm845 only as there wouldn't be a

Re: [v2,2/2] media: Add a driver for the ov7251 camera sensor

2018-03-29 Thread jacopo mondi
Hi Todor, On Thu, Mar 29, 2018 at 10:50:10AM +0300, Todor Tomov wrote: > Hi Jacopo, > > > > > > With the above nits clarified, and as you addressed my v1 comments: > > > > Reviewed-by: Jacopo Mondi > > Would you like to see the corrections or I can add the tag before sending > them? > I don't h

[PATCH v4 8/9] pwm: add documentation for pwm push-pull mode

2018-03-29 Thread Claudiu Beznea
Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm.txt | 2 ++ Documentation/pwm.txt | 16 include/dt-bindings/pwm/pwm.h | 1 + 3 files changed,

[PATCH v4 4/9] pwm: pxa: populate PWM mode in of_xlate function

2018-03-29 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-pxa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index 4143a46684d2..4c88cb47d6ba 100644 --- a/drivers/pwm/pwm-pxa.c

[PATCH v4 9/9] pwm: atmel: add push-pull mode support

2018-03-29 Thread Claudiu Beznea
Add support for PWM push-pull mode. This is only supported by SAMA5D2 SoCs. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c in

[PATCH v4 2/9] pwm: clps711x: populate PWM mode in of_xlate function

2018-03-29 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-clps711x.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-clps711x.c b/drivers/pwm/pwm-clps711x.c index 26ec24e457b1..d742e8

[PATCH v4 6/9] pwm: atmel: add pwm capabilities

2018-03-29 Thread Claudiu Beznea
Add pwm capabilities for Atmel/Microchip PWM controllers. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 80 - 1 file changed, 52 insertions(+), 28 deletions(-) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 530d

[PATCH v4 0/9] extend PWM framework to support PWM modes

2018-03-29 Thread Claudiu Beznea
Hi all, Please give feedback on these patches which extends the PWM framework in order to support multiple PWM modes of operations. This series is a rework of [1] and [2]. The current patch series add the following PWM modes: - PWM mode normal - PWM mode complementary - PWM mode push-pull Normal

[GIT PULL] irqchip updates for v4.17

2018-03-29 Thread Marc Zyngier
Hi Thomas, This is the bulk of the irqchip changes for 4.17. On the menu, two new irqchip drivers, two GIC updates for kexec/kdump and suspend/resume, and the usual bunch of cleanups and fixes. Please pull, M. The following changes since commit 0c8efd610b58cb23cefdfa12015799079aef94ae:

[PATCH v4 7/9] pwm: add push-pull mode support

2018-03-29 Thread Claudiu Beznea
Add push-pull mode support. In push-pull mode the channels' outputs have same polarities and the edges are complementary delayed for one period. Signed-off-by: Claudiu Beznea --- drivers/pwm/core.c | 1 + include/linux/pwm.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/pwm/co

Re: [PATCH v4 02/16] riscv: Use generic free_initrd_mem.

2018-03-29 Thread Shea Levy
Daniel Thompson writes: > On 28/03/18 21:36, Shea Levy wrote: >> Signed-off-by: Shea Levy >> --- >> arch/riscv/mm/init.c | 6 -- >> 1 file changed, 6 deletions(-) >> >> diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c >> index c77df8142be2..36f83fe8a726 100644 >> --- a/arch/riscv

[PATCH v4 5/9] pwm: add PWM modes

2018-03-29 Thread Claudiu Beznea
Add PWM normal and complementary modes. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/pwm/pwm.txt | 9 +++-- Documentation/pwm.txt | 26 +++--- include/dt-bindings/pwm/pwm.h | 1 + 3 files changed, 31 inserti

RE: [PATCH v3 4/8] reset: Renesas RZ/N1 reboot driver

2018-03-29 Thread Michel Pollet
On 29 March 2018 08:47, I messed up: [snip] > > The Renesas RZ/N1 Family (Part #R9A06G0xx) needs a small driver to reboot > the Cortex-A7 cores. This driver is a sub driver of the sysctrl MFD. > > Signed-off-by: Michel Pollet > --- > drivers/power/reset/Kconfig | 7 +++ > drivers/power/r

[PATCH v4 1/9] pwm: extend PWM framework with PWM modes

2018-03-29 Thread Claudiu Beznea
Add basic PWM modes: normal and complementary. These modes should differentiate the single output PWM channels from two outputs PWM channels. These modes could be set as follow: 1. PWM channels with one output per channel: - normal mode 2. PWM channels with two outputs per channel: - normal mode -

[PATCH v4 3/9] pwm: cros-ec: populate PWM mode in of_xlate function

2018-03-29 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-cros-ec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 9c13694eaa24..78d28d60a468 100644 --- a/drivers/p

[GIT PULL 00/10] stm class/intel_th: Updates for v4.17

2018-03-29 Thread Alexander Shishkin
/linux/kernel/git/ash/stm.git tags/stm-intel_th-for-greg-20180329 for you to fetch changes up to 72ef0f24d587d38f235334aef69afe611bba0d16: hwtracing: Add HW tracing support menu (2018-03-29 13:38:10 +0300) stm class/intel_th

[GIT PULL 04/10] intel_th: Add SPDX GPL-2.0 header to replace GPLv2 boilerplate

2018-03-29 Thread Alexander Shishkin
This adds SPDX GPL-2.0 header to the Trace Hub driver and removes the GPLv2 boilerplate text. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/core.c | 10 +- drivers/hwtracing/intel_th/debug.c| 10 +- drivers/hwtracing/intel_th/debug.h| 10 +-

[GIT PULL 10/10] hwtracing: Add HW tracing support menu

2018-03-29 Thread Alexander Shishkin
From: Randy Dunlap Make a "HW tracing support" menu and move 2 entries into it. (No change in Coresight, which is ARM-specific and is only listed for ARM & ARM64.) This makes the Device Drivers menu more consistent and prevents these drivers from being listed at the top level of the Device Drive

[GIT PULL 08/10] intel_th: Allow forcing host mode through drvdata

2018-03-29 Thread Alexander Shishkin
Some devices can only operate in host mode, so we need means of communicating this to the core driver on per-device basis. This adds a flag to drvdata to signal host-only capability to the core. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/core.c | 6 -- drivers/hwtra

[GIT PULL 06/10] intel_th: Don't touch switch routing in host mode

2018-03-29 Thread Alexander Shishkin
When the Trace Hub is operating in Host Debugger mode, it is up to the debugger to configure master routing even for the software sources. Do not do this in the driver in this case. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/core.c | 4 1 file changed, 4 insertions(+)

[GIT PULL 09/10] intel_th: Add ACPI glue layer

2018-03-29 Thread Alexander Shishkin
The Trace Hub devices now can be enumerated as ACPI devices, which translates into "Host Debugger mode". There are two IDs: one for PCH Trace Hub, and one for the uncore Trace Hub. These are expected to stay the same across all platforms. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/i

[GIT PULL 02/10] stm class: Add SPDX GPL-2.0 header to replace GPLv2 boilerplate

2018-03-29 Thread Alexander Shishkin
This adds SPDX GPL-2.0 header to to stm core files and removes the GPLv2 boilerplate text. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/console.c | 10 +- drivers/hwtracing/stm/core.c | 10 +- drivers/hwtracing/stm/dummy_stm.c | 10 +- drivers/hwtrac

[GIT PULL 07/10] intel_th: Pick up irq number from resources

2018-03-29 Thread Alexander Shishkin
Platform devices pass their IRQs around as resources, so as a convenience for the glue layer code, allow them pass the IRQ to the core driver in the resources array. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[GIT PULL 05/10] intel_th: Use correct method of finding hub

2018-03-29 Thread Alexander Shishkin
Since commit 8edc514b01e9 ("intel_th: Make SOURCE devices children of the root device") the hub is not the parent of SOURCE devices any more, so the new helper function should be used for that instead of always using the parent. The intel_th_set_output() path, however, still uses the old logic, lea

[GIT PULL 01/10] MAINTAINERS: Bestow upon myself the care for drivers/hwtracing

2018-03-29 Thread Alexander Shishkin
Although all components of drivers/hwtracing are Maintained, the directory itself isn't, which leads to confusion when people want to patch the Kconfig file, for example. This adds an entry to the MAINTAINERS file with myself as a maintainer. Signed-off-by: Alexander Shishkin --- MAINTAINERS |

[GIT PULL 03/10] stm class: Make dummy's master/channel ranges configurable

2018-03-29 Thread Alexander Shishkin
To allow for more flexible testing of the stm class, make it possible to specify the ranges of masters and channels that the dummy_stm devices cover. This is done via module parameters. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/dummy_stm.c | 24 +--- include

Re: [PATCH] drm: Use srcu to protect drm_device.unplugged

2018-03-29 Thread Oleksandr Andrushchenko
On 03/28/2018 06:09 PM, Daniel Vetter wrote: On Wed, Mar 28, 2018 at 10:38:35AM +0300, Oleksandr Andrushchenko wrote: From: Noralf Trønnes Use srcu to protect drm_device.unplugged in a race free manner. Drivers can use drm_dev_enter()/drm_dev_exit() to protect and mark sections preventing acce

Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-29 Thread Michal Hocko
On Wed 28-03-18 19:55:32, Kirill A. Shutemov wrote: > Modify several page allocation routines to pass down encryption KeyID to > be used for the allocated page. > > There are two basic use cases: > > - alloc_page_vma() use VMA's KeyID to allocate the page. > > - Page migration and NUMA balanci

[PATCH 2/3] virt: vbox: Use __get_free_pages instead of kmalloc for DMA32 memory

2018-03-29 Thread Hans de Goede
It is not possible to get DMA32 zone memory through kmalloc, causing the vboxguest driver to malfunction due to getting memory above 4G which the PCI device cannot handle. This commit changes the kmalloc calls where the 4G limit matters to using __get_free_pages() fixing vboxguest not working on x

[PATCH 3/3] virt: vbox: Log an error whenwe fail to get the host version

2018-03-29 Thread Hans de Goede
This was the only error path during probe without a message being logged about what went wrong, this fixes this. Signed-off-by: Hans de Goede --- drivers/virt/vboxguest/vboxguest_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/virt/vboxguest/vboxguest_core.c

[PATCH 1/3] virt: vbox: Add vbg_req_free() helper function

2018-03-29 Thread Hans de Goede
This is a preparation patch for fixing issues on x86_64 virtual-machines with more then 4G of RAM, atm we pass __GFP_DMA32 to kmalloc, but kmalloc does not honor that, so we need to switch to get_pages, which means we will not be able to use kfree to free memory allocated with vbg_alloc_req. While

Re: [RFC PATCH 1/2] driver core: add new dl device status DL_DEV_PROBE_FAILED

2018-03-29 Thread Wang, Dongsheng
On Thu, 2018-03-29 at 12:51 +0200, Rafael J. Wysocki wrote: > On Thu, Mar 29, 2018 at 12:00 PM, Wang Dongsheng > wrote: > > Currently the initialization state of device is DL_DEV_NO_DRIVER. > > The problem is, after probe failure the state will also be set to > > DL_DEV_NO_DRIVER as well. And the

[PATCH 048/109] fs: add do_readlinkat() helper; remove internal call to sys_readlinkat()

2018-03-29 Thread Dominik Brodowski
Using the do_readlinkat() helper removes an in-kernel call to the sys_readlinkat() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dom

[PATCH 055/109] fs: add do_lookup_dcookie() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_lookup_dcookie() helper allows us to get rid of fs-internal calls to the sys_lookup_dcookie() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.or

[PATCH 038/109] ipc: add msgrcv syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_msgrcv() and compat_ksys_msgrcv() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgrcv() and compat_sys_msgrcv(). This p

[PATCH 013/109] net: socket: add __sys_connect() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_connect() allows us to avoid the internal calls to the sys_connect() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018032516

[PATCH 041/109] kernel: add do_compat_sigaltstack() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the compat_sys_sigaltstack() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@ligh

[PATCH 076/109] fs: add do_symlinkat() helper and ksys_symlink() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_symlinkat() helper allows us to get rid of fs-internal calls to the sys_symlinkat() syscall. Introducing the ksys_symlink() wrapper allows us to avoid the in-kernel calls to the sys_symlink() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replac

[PATCH 032/109] ipc: add semctl syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_semctl() and compat_ksys_semctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_semctl() and compat_sys_semctl(). This p

[PATCH 003/109] kernel: open-code sys_rt_sigpending() in sys_sigpending()

2018-03-29 Thread Dominik Brodowski
A similar but not fully equivalent code path is already open-coded three times (in sys_rt_sigpending and in the two compat stubs), so do it a fourth time here. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For de

[PATCH 106/109] syscalls/x86: auto-create compat_sys_*() prototypes

2018-03-29 Thread Dominik Brodowski
compat_sys_*() functions are no longer called from within the kernel on x86 except from the system call table. Linking the system call does not require compat_sys_*() function prototypes at least on x86. Therefore, generate compat_sys_*() prototypes on-the-fly within the COMPAT_SYSCALL_DEFINEx() ma

[PATCH 096/109] mm: add ksys_fadvise64_64() helper; remove in-kernel call to sys_fadvise64_64()

2018-03-29 Thread Dominik Brodowski
Using the ksys_fadvise64_64() helper allows us to avoid the in-kernel calls to the sys_fadvise64_64() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as ksys_fadvise64_64(). Some compat stubs

[PATCH 061/109] fs: add do_compat_futimesat() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_compat_futimesat() helper allows us to get rid of the fs-internal call to the compat_sys_futimesat() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.ke

[PATCH 036/109] ipc: add shmctl syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_shmctl() and compat_ksys_shmctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_shmctl() and compat_sys_shmctl(). This p

[PATCH 024/109] net: socket: replace call to sys_recv() with __sys_recvfrom()

2018-03-29 Thread Dominik Brodowski
sys_recv() merely expands the parameters to __sys_recvfrom() by NULL and NULL. Open-code this in the two places which used sys_recv() as a wrapper to __sys_recvfrom(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined

[PATCH 028/109] net: socket: add __compat_sys_recvmmsg() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_recvmmsg() allows us to avoid the internal calls to the compat_sys_recvmmsg() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.

[PATCH 090/109] kernel: add ksys_unshare() helper; remove in-kernel calls to sys_unshare()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_unshare() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_unshare(). This patch is part of a series which removes in

<    1   2   3   4   5   6   7   8   9   10   >