[PATCH 14/19] floppy: use a separate gendisk for each media format

2020-08-25 Thread Christoph Hellwig
The floppy driver usually autodetects the media when used with the normal /dev/fd? devices, which also are the only nodes created by udev. But it also supports various aliases that force a given media format. That is currently supported using the blk_register_region framework which finds the floppy

Re: [PATCH v1 1/9] extcon: extcon-ptn5150: Switch to GENMASK() for vendor and device ID's

2020-08-25 Thread Krzysztof Kozlowski
On Tue, Aug 18, 2020 at 02:57:19PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to GENMASK() for vendor_id and device_id macros. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > drivers/extcon/extcon-ptn5150.c | 16 +--- > 1 file c

Re: [PATCH] USB: core: limit access to rawdescriptors which were not allocated

2020-08-25 Thread Xu, Yanfei
On 8/26/20 2:00 AM, Alan Stern wrote: On Wed, Aug 26, 2020 at 12:16:59AM +0800, yanfei...@windriver.com wrote: From: Yanfei Xu When using systemcall to read the rawdescriptors, make sure we won't access to the rawdescriptors never allocated, which are number exceed the USB_MAXCONFIG. Repor

[PATCH 13/19] ide: switch to __register_blkdev for command set probing

2020-08-25 Thread Christoph Hellwig
ide is the last user of the blk_register_region framework except for the tracking of allocated gendisk. Switch to __register_blkdev, even if that doesn't allow us to trivially find out which command set to probe for. That means we now always request all modules when a user tries to access an uncla

[PATCH] net: cdc_ncm: Fix build error

2020-08-25 Thread YueHaibing
If USB_NET_CDC_NCM is y and USB_NET_CDCETHER is m, build fails: drivers/net/usb/cdc_ncm.o:(.rodata+0x1d8): undefined reference to `usbnet_cdc_update_filter' Select USB_NET_CDCETHER for USB_NET_CDC_NCM to fix this. Reported-by: Hulk Robot Fixes: e10dcb1b6ba7 ("net: cdc_ncm: hook into set_rx_mod

[PATCH 12/19] md: use __register_blkdev to allocate devices on demand

2020-08-25 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a brd device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig --- drivers/md/md.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/

[PATCH v3 2/3] media: atmel: introduce microchip csi2dc driver

2020-08-25 Thread Eugen Hristev
Microchip CSI2DC (CSI2 Demultiplexer Controller) is a misc bridge device that converts a byte stream in IDI Synopsys format (coming from a CSI2HOST) to a pixel stream that can be captured by a sensor controller. Signed-off-by: Eugen Hristev --- Changes in v2: - moved driver to platform/atmel - fi

[PATCH v3 3/3] MAINTAINERS: add microchip csi2dc

2020-08-25 Thread Eugen Hristev
Add Microchip CSI2DC driver in the list. Signed-off-by: Eugen Hristev --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index deaafb617361..a07d3f5597a6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11375,6 +11375,13 @@ L: alsa-de...@alsa-p

[PATCH v3 1/3] dt-bindings: media: atmel: csi2dc: add bindings for microchip csi2dc

2020-08-25 Thread Eugen Hristev
Add bindings documentation for Microchip CSI2 Demultiplexer controller. CSI2DC is a demultiplexer from Synopsys IDI interface specification to parallel interface connection or direct memory access. Signed-off-by: Eugen Hristev --- Changes in v3: - Removed some text from description, as it was ex

Re: [RFC v4 09/20] drm/i915/dp: Extract drm_dp_has_mst()

2020-08-25 Thread Jani Nikula
On Tue, 25 Aug 2020, Lyude Paul wrote: > Just a tiny drive-by cleanup, we can consolidate i915's code for > checking for MST support into a helper to be shared across drivers. > > Signed-off-by: Lyude Paul > Reviewed-by: Sean Paul > --- > drivers/gpu/drm/i915/display/intel_dp.c | 18 ++-

[PATCH 11/19] loop: use __register_blkdev to allocate devices on demand

2020-08-25 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a brd device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/drivers/block/l

Re: [PATCH v2 5/5] f2fs: support age threshold based garbage collection

2020-08-25 Thread Chao Yu
Thanks, Jaegeuk, :) On 2020/8/26 3:34, Jaegeuk Kim wrote: Hi Chao, I modified directly like below which makes fsck complain wrong free segment number.

[PATCH] clk: imx: fix composite peripheral flags

2020-08-25 Thread peng . fan
From: Peng Fan According to RM, for peripheral clock slice, "IP clock slices must be stopped to change the clock source.". So we must have CLK_SET_PARENT_GATE flag to avoid glitch. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-composite-8m.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 10/19] brd: use __register_blkdev to allocate devices on demand

2020-08-25 Thread Christoph Hellwig
Use the simpler mechanism attached to major_name to allocate a brd device when a currently unregistered minor is accessed. Signed-off-by: Christoph Hellwig --- drivers/block/brd.c | 39 +++ 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/driver

[PATCH 09/19] sd: use __register_blkdev to avoid a modprobe for an unregistered dev_t

2020-08-25 Thread Christoph Hellwig
Switch from using blk_register_region to the probe callback passed to __register_blkdev to disable the request_module call for an unclaimed dev_t in the SD majors. Signed-off-by: Christoph Hellwig --- drivers/scsi/sd.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) d

Re: [PATCH 3/3] ARM: defconfig: Enable ax88796c driver

2020-08-25 Thread Krzysztof Kozlowski
On Wed, Aug 26, 2020 at 07:11:18AM +0200, Lukasz Stelmach wrote: > It was <2020-08-25 wto 20:51>, when Krzysztof Kozlowski wrote: > > On Tue, Aug 25, 2020 at 07:03:11PM +0200, Łukasz Stelmach wrote: > >> Enable ax88796c driver for the ethernet chip on Exynos3250-based > >> ARTIK5 boards. > >> > >>

[PATCH 08/19] swim: don't call blk_register_region

2020-08-25 Thread Christoph Hellwig
The swim driver (unlike various other floppy drivers) doesn't have magic device nodes for certain modes, and already registers a gendisk for each of the floppies supported by a device. Thus the region registered is a no-op and can be removed. Signed-off-by: Christoph Hellwig --- drivers/block/s

[PATCH 07/19] ide: remove ide_{,un}register_region

2020-08-25 Thread Christoph Hellwig
There is no need to ever register the fake gendisk used for ide-tape. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-probe.c | 32 drivers/ide/ide-tape.c | 2 -- include/linux/ide.h | 3 --- 3 files changed, 37 deletions(-) diff --git a/drivers/ide/

[PATCH] iio: frequency: adf4350: Replace indio_dev->mlock with own device lock

2020-08-25 Thread Alexandru Ardelean
From: Sergiu Cuciurean As part of the general cleanup of indio_dev->mlock, this change replaces it with a local lock on the device's state structure. Signed-off-by: Sergiu Cuciurean Signed-off-by: Alexandru Ardelean --- drivers/iio/frequency/adf4350.c | 15 +-- 1 file changed, 9 i

[PATCH] iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock

2020-08-25 Thread Alexandru Ardelean
From: Sergiu Cuciurean As part of the general cleanup of indio_dev->mlock, this change replaces it with a local lock on the device's state structure. Signed-off-by: Sergiu Cuciurean Signed-off-by: Alexandru Ardelean --- drivers/iio/dac/ti-dac7612.c | 7 +-- 1 file changed, 5 insertions(+)

[PATCH 06/19] block: add an optional probe callback to major_names

2020-08-25 Thread Christoph Hellwig
Add a callback to the major_names array that allows a driver to override how to probe for dev_t that doesn't currently have a gendisk registered. This will help separating the lookup of the gendisk by dev_t vs probe action for a not currently registered dev_t. Signed-off-by: Christoph Hellwig ---

[PATCH v9 05/32] drm: etnaviv: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 07/32] drm: exynos: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 15/32] drm: panfrost: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

Re: fsl_espi errors on v5.7.15

2020-08-25 Thread Heiner Kallweit
On 26.08.2020 08:07, Chris Packham wrote: > > On 26/08/20 1:48 pm, Chris Packham wrote: >> >> On 26/08/20 10:22 am, Chris Packham wrote: >>> On 25/08/20 7:22 pm, Heiner Kallweit wrote: >>> >>> I've been staring at spi-fsl-espi.c for while now and I think I've > identified a couple of def

[PATCH v9 10/32] drm: mediatek: use common helper for a scatterlist contiguity check

2020-08-25 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf and do this check before allocating resources, so the error path is simpler. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 28 ++ 1 file changed, 6 insertions(+), 22 delet

[PATCH v9 14/32] drm: omapdrm: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-08-25 Thread Alexandru Ardelean
From: Sergiu Cuciurean As part of the general cleanup of indio_dev->mlock, this change replaces it with a local lock on the device's state structure. The patch also does a minor whitespace change to align the 'lock' with the 'common' field via tabs. Signed-off-by: Sergiu Cuciurean Signed-off-b

[PATCH v9 06/32] drm: exynos: use common helper for a scatterlist contiguity check

2020-08-25 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski Reviewed-by: Andrzej Hajda Acked-by : Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/drivers

Re: [PATCH 3/3] PM / Domains: Add support for PM domain on/off notifiers for genpd

2020-08-25 Thread Ulf Hansson
On Tue, 25 Aug 2020 at 18:16, Lina Iyer wrote: > > On Wed, Aug 19 2020 at 04:41 -0600, Ulf Hansson wrote: > >A device may have specific HW constraints that must be obeyed to, before > >its corresponding PM domain (genpd) can be powered off - and vice verse at > >power on. These constraints can't b

[PATCH v9 08/32] drm: i915: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 11/32] drm: mediatek: use common helper for extracting pages array

2020-08-25 Thread Marek Szyprowski
Use common helper for converting a sg_table object into struct page pointer array. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/med

[PATCH v9 26/32] dmabuf: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 17/32] drm: rockchip: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 09/32] drm: lima: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 20/32] drm: virtio: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 03/32] drm: core: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 12/32] drm: msm: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 22/32] drm: xen: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 13/32] drm: omapdrm: use common helper for extracting pages array

2020-08-25 Thread Marek Szyprowski
Use common helper for converting a sg_table object into struct page pointer array. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/omapdrm/omap_gem.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omap

[PATCH 05/19] block: rework requesting modules for unclaimed devices

2020-08-25 Thread Christoph Hellwig
Instead of reusing the ranges in bdev_map, add a new helper that is called if no ranges was found. This is a first step to unpeel and eventually remove the complex ranges structure. Signed-off-by: Christoph Hellwig --- block/genhd.c | 25 +++-- 1 file changed, 15 insertions(

[PATCH v9 23/32] xen: gntdev: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 19/32] drm: v3d: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 29/32] rapidio: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 31/32] media: pci: fix common ALSA DMA-mapping related codes

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[PATCH v9 28/32] misc: fastrpc: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 24/32] drm: host1x: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 32/32] videobuf2: use sgtable-based scatterlist wrappers

2020-08-25 Thread Marek Szyprowski
Use recently introduced common wrappers operating directly on the struct sg_table objects and scatterlist page iterators to make the code a bit more compact, robust, easier to follow and copy/paste safe. No functional change, because the code already properly did all the scaterlist related calls.

[PATCH v9 30/32] samples: vfio-mdev/mbochs: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 18/32] drm: tegra: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 25/32] drm: rcar-du: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 16/32] drm: rockchip: use common helper for a scatterlist contiguity check

2020-08-25 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gp

[PATCH 04/19] block: split block_class_lock

2020-08-25 Thread Christoph Hellwig
Split the block_class_lock mutex into one each to protect bdev_map and major_names. Signed-off-by: Christoph Hellwig --- block/genhd.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/block/genhd.c b/block/genhd.c index df6485223a2c3d..0ae6210e1

[PATCH v9 27/32] staging: tegra-vde: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 21/32] drm: vmwgfx: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 02/32] drm: prime: use sgtable iterators in drm_prime_sg_to_page_addr_arrays()

2020-08-25 Thread Marek Szyprowski
Replace the current hand-crafted code for extracting pages and DMA addresses from the given scatterlist by the much more robust code based on the generic scatterlist iterators and recently introduced sg_table-based wrappers. The resulting code is simple and easy to understand, so the comment descri

[PATCH v9 00/32] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-08-25 Thread Marek Szyprowski
map_sg function. In this patchset I only fixed the sg_table objects exported by dmabuf related functions. I hope that I didn't break anything there. Patches are based on top of Linux next-20200825. The required changes to DMA-mapping framework has been already merged to v5.8-rc1. I would l

[PATCH v9 04/32] drm: armada: fix common struct sg_table related issues

2020-08-25 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v9 01/32] drm: prime: add common helper to check scatterlist contiguity

2020-08-25 Thread Marek Szyprowski
It is a common operation done by DRM drivers to check the contiguity of the DMA-mapped buffer described by a scatterlist in the sg_table object. Let's add a common helper for this operation. Signed-off-by: Marek Szyprowski Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/drm_gem_cma_helper.c | 23

Re: [PATCH v1 2/6] power: supply: Add battery gauge driver for Acer Iconia Tab A500

2020-08-25 Thread Dmitry Osipenko
25.08.2020 00:38, Sebastian Reichel пишет: > Hi, ... >> Hello, Sebastian! The battery isn't hot-swappable on A500, but it also >> should be okay to always re-read the serialno. I'll consider removing >> the caching in the v2, thanks. > > I assumed it would be hot-swappable because of a500_battery_

linux-next: Tree for Aug 26

2020-08-25 Thread Stephen Rothwell
Hi all, News: There will be no linux-next releases next Monday or Tuesday. Changes since 20200825: The bpf-next tree lost its build failure. The drm-misc tree gained conflicts against Linus' tree and the amdgpu tree. It also gained a semantic conflict against the drm-misc-fixes tree.

[PATCH 03/19] block: cleanup del_gendisk a bit

2020-08-25 Thread Christoph Hellwig
Merge three hidden gendisk checks into one. Signed-off-by: Christoph Hellwig --- block/genhd.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/block/genhd.c b/block/genhd.c index cb9a51be35b053..df6485223a2c3d 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -

Re: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding

2020-08-25 Thread Vinod Koul
On 25-08-20, 20:21, Vinod Koul wrote: > Hey Rob, > > On 24-08-20, 11:40, Rob Herring wrote: > > On Mon, 24 Aug 2020 14:17:10 +0530, Vinod Koul wrote: > > > Add devicetree binding documentation for GPI DMA controller > > > implemented on Qualcomm SoCs > > > > > > Signed-off-by: Vinod Koul > > > -

[PATCH 02/19] block: merge drivers/base/map.c into block/genhd.c

2020-08-25 Thread Christoph Hellwig
Now that there is just a single user of the kobj_map functionality left, merge it into the user to prepare for additional simplications. Signed-off-by: Christoph Hellwig --- block/genhd.c| 130 + drivers/base/Makefile| 2 +- drivers/base/map.c

[PATCH 01/19] char_dev: replace cdev_map with an xarray

2020-08-25 Thread Christoph Hellwig
None of the complicated overlapping regions bits of the kobj_map are required for the character device lookup, so just a trivial xarray instead. Signed-off-by: Christoph Hellwig --- fs/char_dev.c | 94 +-- fs/dcache.c | 1 - fs/internal.h | 5 -

[PATCH -next] btrfs: Remove unused variable 'fs_info'

2020-08-25 Thread YueHaibing
fs/btrfs/volumes.c: In function ‘btrfs_rm_dev_replace_free_srcdev’: fs/btrfs/volumes.c:2217:24: warning: unused variable ‘fs_info’ [-Wunused-variable] struct btrfs_fs_info *fs_info = srcdev->fs_info; ^~~ Caused by commit 65237ee3b6b3 ("btrfs: get fs_info from device

simplify gendisk lookup and remove struct block_device aliases

2020-08-25 Thread Christoph Hellwig
Hi all, this series removes the annoying struct block_device aliases, which can happen for a bunch of old floppy drivers (and z2ram). In that case multiple struct block device instances for different dev_t's can point to the same gendisk, without being partitions. The cause for that is the probe

Re: [PATCH RFC 2/2] ARM: dts: imx: add devicetree for Tolino Shine 2 HD

2020-08-25 Thread Andreas Kemnade
On Sun, 16 Aug 2020 14:54:41 +0200 Jonathan Neuschäfer wrote: > On Sat, Aug 15, 2020 at 09:33:36PM +0200, Andreas Kemnade wrote: > > This adds a devicetree for the Tolino Shine 2 HD Ebook reader. It is based > > on boards marked with "37NB-E60QF0+4A2". It is equipped with an i.MX6SL > > SoC. > >

[PATCH v2] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread Chih-En Hsu
This patch is to remove function "mtk_reg_write" since Mediatek EFUSE hardware only supports read functionality for NVMEM consumers. Fixes: 4c7e4fe37766 ("nvmem: mediatek: Add Mediatek EFUSE driver") Signed-off-by: Chih-En Hsu --- drivers/nvmem/mtk-efuse.c | 14 -- 1 file changed, 14

Re: Issue with iwd + Linux 5.8.3 + WPA Enterprise

2020-08-25 Thread Paul Menzel
Dear Caleb, Thank you for the report. Linux has a no regression policy, so the correct forum to report this to is the Linux kernel folks. I am adding the crypto and stable folks to the receiver list. Am 26.08.20 um 07:51 schrieb caljor...@hotmail.com: I wanted to note an issue that I hav

Re: Re: [RFC PATCH 4/4] i2c: at91: Move to generic GPIO bus recovery

2020-08-25 Thread Wolfram Sang
> Thanks, this would be great! I tested this on a sam9x60, with the HW > feature for the 9 pulses disabled, with a picky audio codec as I2C device. > Please let me know of the result. I can't make use of the feature on the platform I had in mind, sadly. It doesn't really support switching from/t

RE: [PATCH] scsi: ufs-pci: Add LTR support for Intel controllers

2020-08-25 Thread Avri Altman
> > Intel host controllers support the setting of latency tolerance. > Accordingly, implement the PM QoS ->set_latency_tolerance() callback. The > raw register values are also exposed via debugfs. > > Signed-off-by: Adrian Hunter Reviewed-by: Avri Altman Some nits below. Thanks, Avri > ---

Re: [PATCH] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread Chih-En Hsu
Hi CK: I see. I will add the following fix tag into the next patch version. Fixes: 4c7e4fe37766 ("nvmem: mediatek: Add Mediatek EFUSE driver") Thanks a lot. Alex On Wed, 2020-08-26 at 13:16 +0800, CK Hu wrote: > Hi, Chih-En: > > On Wed, 2020-08-26 at 13:01 +0800, Chih-En Hsu wrote: > > This

Re: fsl_espi errors on v5.7.15

2020-08-25 Thread Chris Packham
On 26/08/20 1:48 pm, Chris Packham wrote: > > On 26/08/20 10:22 am, Chris Packham wrote: >> On 25/08/20 7:22 pm, Heiner Kallweit wrote: >> >> >>> I've been staring at spi-fsl-espi.c for while now and I think I've identified a couple of deficiencies that may or may not be related to my

Re: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-25 Thread Tetsuhiro Kohada
Thank you for quick reply! On 2020/08/26 13:19, Namjae Jeon wrote: On 2020/08/26 10:03, Namjae Jeon wrote: Second: Range validation and type validation should not be separated. When I started making this patch, I intended to add only range validation. However, after the caller gets the ep, the

[PATCH] dtbs: hikey970: add wifi support

2020-08-25 Thread Mauro Carvalho Chehab
The dwmmc2 is used on Hikey 970 for WiFi support. The hi3670.dtsi adds it, but with status="disabled". For WiFi to work,it needs to be enabled. While here, add the missing properties: #address-cells = <0x1>; #size-cells = <0x0>; and add ti,non-removable To DT properties,

Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-08-25 Thread Alex Shi
LKP reported a preemptiable issue on this patch. update and refresh the commit log. >From f18e8c87a045bbb8040006b6816ded1f55fa6f9c Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Sat, 25 Jul 2020 22:31:03 +0800 Subject: [PATCH] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-25 Thread Kai-Heng Feng
> On Aug 25, 2020, at 14:56, Christoph Hellwig wrote: > > On Tue, Aug 25, 2020 at 02:39:55PM +0800, Kai Heng Feng wrote: >> Hi Christoph, >> >>> On Aug 25, 2020, at 2:23 PM, Christoph Hellwig wrote: >>> >>> On Fri, Aug 21, 2020 at 08:32:20PM +0800, Kai-Heng Feng wrote: New Intel laptop

[PATCH] Revert "wlcore: Adding suppoprt for IGTK key in wlcore driver"

2020-08-25 Thread Mauro Carvalho Chehab
This patch causes a regression betwen Kernel 5.7 and 5.8 at wlcore: with it applied, WiFi stops working, and the Kernel starts printing this message every second: wlcore: PHY firmware version: Rev 8.2.0.0.242 wlcore: firmware booted (Rev 8.9.0.0.79) wlcore: ERROR command execute failure 1

RE: [PATCH 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-25 Thread Tian, Kevin
> From: Lu Baolu > Sent: Wednesday, August 26, 2020 10:58 AM > > The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG > General > Description) that: > > If multiple control fields in this register need to be modified, software > must serialize the modifications through multiple writes

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
On (20/08/26 07:08), Wolfram Sang wrote: > On Wed, Aug 26, 2020 at 01:29:37PM +0900, Sergey Senozhatsky wrote: > > Unlike acpi_match_device(), acpi_driver_match_device() does > > consider devices that provide of_match_table and performs > > of_compatible() matching for such devices. The key point h

[PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444

2020-08-25 Thread Kai-Heng Feng
LSPCON only supports 8 bpc for RGB/YCbCr444. Set the correct bpp otherwise it renders blank screen. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2195 Signed-off-by: Kai-Heng Feng --- drivers/gpu/drm/i915/display/intel_lspcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-08-25 Thread Joonsoo Kim
2020년 8월 26일 (수) 오전 9:42, Andrew Morton 님이 작성: > > On Tue, 25 Aug 2020 14:34:32 +0900 Joonsoo Kim wrote: > > > > > > > That's a bunch more code on a very hot path to serve an obscure feature > > > which has a single obscure callsite. > > > > > > Can we instead put the burden on that callsite rathe

[PATCH] net: hns3: Fix for geneve tx checksum bug

2020-08-25 Thread Yi Li
when skb->encapsulation is 0, skb->ip_summed is CHECKSUM_PARTIAL and it is udp packet, which has a dest port as the IANA assigned. the hardware is expected to do the checksum offload, but the hardware will not do the checksum offload when udp dest port is 6081. This patch fixes it by doing the che

Re: [PATCH] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread CK Hu
Hi, Chih-En: On Wed, 2020-08-26 at 13:01 +0800, Chih-En Hsu wrote: > This patch is to remove function "mtk_reg_write" since > Mediatek EFUSE hardware only supports read functionality > for NVMEM consumers. > This is a bug-fix patch, so need a 'Fixes' tag. You could refer to [1]. [1] https://www

Re: [PATCH for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-08-25 Thread Joonsoo Kim
2020년 8월 25일 (화) 오후 6:43, Vlastimil Babka 님이 작성: > > > On 8/25/20 6:59 AM, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > memalloc_nocma_{save/restore} APIs can be used to skip page allocation > > on CMA area, but, there is a missing case and the page on CMA area could > > be allocated even

Re: [PATCH 3/3] ARM: defconfig: Enable ax88796c driver

2020-08-25 Thread Lukasz Stelmach
It was <2020-08-25 wto 20:51>, when Krzysztof Kozlowski wrote: > On Tue, Aug 25, 2020 at 07:03:11PM +0200, Łukasz Stelmach wrote: >> Enable ax88796c driver for the ethernet chip on Exynos3250-based >> ARTIK5 boards. >> >> Signed-off-by: Łukasz Stelmach >> --- >> arch/arm/configs/exynos_defconfig

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Wolfram Sang
On Wed, Aug 26, 2020 at 01:29:37PM +0900, Sergey Senozhatsky wrote: > Unlike acpi_match_device(), acpi_driver_match_device() does > consider devices that provide of_match_table and performs > of_compatible() matching for such devices. The key point here is > that ACPI of_compatible() matching - acp

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
On (20/08/26 13:29), Sergey Senozhatsky wrote: > Unlike acpi_match_device(), acpi_driver_match_device() does > consider devices that provide of_match_table and performs > of_compatible() matching for such devices. The key point here is > that ACPI of_compatible() matching - acpi_of_match_device() -

[PATCH] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-25 Thread Chih-En Hsu
This patch is to remove function "mtk_reg_write" since Mediatek EFUSE hardware only supports read functionality for NVMEM consumers. Signed-off-by: Chih-En Hsu --- drivers/nvmem/mtk-efuse.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/nvmem/mtk-efuse.c b/drivers/nvm

[PATCH v2] dt-bindings: convert spmi.txt to spmi.yaml

2020-08-25 Thread Mauro Carvalho Chehab
Convert the SPMI bus documentation to JSON/yaml. Signed-off-by: Mauro Carvalho Chehab --- v2: - addressed issues pointed by Rob; - made clear that group ID is a future extension, that it is not currently supported. .../bindings/mfd/qcom,spmi-pmic.txt | 2 +- .../bindings/spmi/qcom

Re: [PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index

2020-08-25 Thread Bjorn Andersson
On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > The dp_com resource is always at index 1 according to the dts files in > the kernel. Get this resource by index so that we don't need to make > future additions to the DT binding use 'reg-names'. > Afaict the DT binding for the USB/DP phy defin

Re: [net-next v5 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-08-25 Thread Chris Packham
Hi Vadym, On 26/08/20 12:20 am, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. I think there's a typo here or possibly in patch 1. The AC3x family has model nu

[PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-25 Thread Sergey Senozhatsky
Unlike acpi_match_device(), acpi_driver_match_device() does consider devices that provide of_match_table and performs of_compatible() matching for such devices. The key point here is that ACPI of_compatible() matching - acpi_of_match_device() - is part of ACPI and does not depend on CONFIG_OF. Con

Re: [PATCH] [v2] blk-mq: use BLK_MQ_NO_TAG for no tag

2020-08-25 Thread Ming Lei
On Wed, Aug 26, 2020 at 10:06:51AM +0800, Xianting Tian wrote: > Replace various magic -1 constants for tags with BLK_MQ_NO_TAG. > And move the definition of BLK_MQ_NO_TAG from 'block/blk-mq-tag.h' > to 'include/linux/blk-mq.h' All three symbols are supposed for block core internal code only, so l

[PATCH 2/2] i2c: do not export i2c_of_match_device() symbol

2020-08-25 Thread Sergey Senozhatsky
Do not export i2c_of_match_device(). Signed-off-by: Sergey Senozhatsky --- drivers/i2c/i2c-core-of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c index 3ed74aa4b44b..77faa9cc05c9 100644 --- a/drivers/i2c/i2c-core-of.c +++ b/drivers/i2c/

[PATCH 2/2] perf parse-events: Avoid an uninitialized read.

2020-08-25 Thread Ian Rogers
With a fake_pmu the pmu_info isn't populated by perf_pmu__check_alias. In this case, don't try to copy the uninitialized values to the evsel. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff

[PATCH 1/2] perf expr: Force encapsulation on expr_id_data

2020-08-25 Thread Ian Rogers
This patch resolves some undefined behavior where variables in expr_id_data were accessed (for debugging) without being defined. To better enforce the tagged union behavior, the struct is moved into expr.c and accessors provided. Tag values (kinds) are explicitly identified. Signed-off-by: Ian Rog

RE: [PATCH v3] exfat: integrates dir-entry getting and validation

2020-08-25 Thread Namjae Jeon
> On 2020/08/26 10:03, Namjae Jeon wrote: > >> Second: Range validation and type validation should not be separated. > >> When I started making this patch, I intended to add only range validation. > >> However, after the caller gets the ep, the type validation follows. > >> Get ep, null check of ep

Re: [PATCH] dt-bindings: convert spmi.txt to spmi.yaml

2020-08-25 Thread Mauro Carvalho Chehab
Em Wed, 19 Aug 2020 17:08:12 -0600 Rob Herring escreveu: > Need to also define 'reg' constraints as defined by the bus: > > properties: > reg: > minItems: 1 > maxItems: 2 #??? Not sure about this. Is it 1 SPMI_USID and 1 \ > SPMI_GSID entry at most? Each child have just one user ID

  1   2   3   4   5   6   7   8   9   10   >