Re: [Linaro-mm-sig] [PATCH 2/4] staging: android: ion: Restrict cache maintenance to dma mapped memory

2019-02-06 Thread Christoph Hellwig
The CPU may only access DMA mapped memory if ownership has been transferred back to the CPU using dma_sync_{single,sg}_to_cpu, and then before the device can access it again ownership needs to be transferred back to the device using dma_sync_{single,sg}_to_device. > I've run some testing, and

[PATCH 6/9] staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Cleanup patch to have proper follow clear namespace in wilc_sdio.c file. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_sdio.c | 92 ++-- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git

[PATCH 9/9] staging: wilc1000: rename linux_wlan.c and linux_mon.c

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Rename linux_wlan.c and linux_mon.c to wilc_netdev.c and wilc_mon.c to include 'wilc_' prefix. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/Makefile| 2 +- drivers/staging/wilc1000/{linux_mon.c => wilc_mon.c} | 0

[PATCH 8/9] staging: wilc1000: remove 'linux_' prefix in function names

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Remove 'linux_' prefix and replace it with 'wilc_' namespace. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/linux_wlan.c | 17 - drivers/staging/wilc1000/wilc_sdio.c | 10 +- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git

[PATCH 7/9] staging: wilc1000: rename wilc_frmw_to_linux()

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Rename wilc_frmw_to_linux() to wilc_frmw_to_host() to be remove the _linux suffix. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/linux_wlan.c | 3 ++- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 5

[PATCH 4/9] staging: wilc1000: move macro and function prototype from wilc_wlan_if.h file

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Move data structure and function prototype from 'wilc_wlan_if.h file. Now, this file contains constant specific to the firmware. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 1 + drivers/staging/wilc1000/host_interface.h | 11 ++

[PATCH 0/9] staging: wilc1000: fixes & changes for mainline review comments

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh This series contains the following changes: - fix to set 'vif_num' value correctly. The previous Fixes patch for vif count had not fixed the issue completely, so reverted it and added a new patch to fix the issue. - use 'wilc_' prefix for variables and function names. -

[PATCH 3/9] staging: wilc1000: add 'wilc_' prefix to have proper namespace

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Cleanup patch to rename data structure and function name to have 'wilc_' prefix. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 54 +++ drivers/staging/wilc1000/host_interface.h | 12 ++---

[PATCH 2/9] staging: wilc1000: fix to set the correct value for 'vif_num'

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Set correct interface count value in '->vif_num'. 'vif_num' was incorrectly set one less than total number of interfaces because 'i' is used to set its value, which starts from 0. Fixes: 735bb39ca3be ("staging: wilc1000: simplify vif[i]->ndev accesses") Cc: # v4.10

[PATCH 5/9] staging: wilc1000: avoid function forward declaration in wilc_sdio.c file

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh Cleanup patch to avoid function forward declaration by reordering the function. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_sdio.c | 91 +--- 1 file changed, 43 insertions(+), 48 deletions(-) diff --git

[PATCH 1/9] staging: wilc1000: revert fix related to vif index

2019-02-06 Thread Ajay.Kathat
From: Ajay Singh This patch reverts 0e490657c721 ("staging: wilc1000: Fix problem with wrong vif index") commit. The issue was not completely fixed with the above commit. After 'for' loop completion, '->idx' value is correct but '->vif_num' still contains incorrect interface count. Fixes:

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-06 Thread Joe Perches
On Wed, 2019-02-06 at 17:25 +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 05, 2019 at 10:59:40AM -0800, Joe Perches wrote: > > On Tue, 2019-02-05 at 19:44 +0100, Greg Kroah-Hartman wrote: > > > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > > > This patch corrects the style

Re: [PATCH 1/3] sched/wait: use freezable_schedule when possible

2019-02-06 Thread Hugo Lefeuvre
Hi Joel, > I'm curious did you try the freezing process and see if pointless wakeups are > reduced? That would be an added bonus if you did. I'm currently testing these changes. I hope to be able to come back with more concrete results soon. Also, I just noticed that the third patch removes a

[PATCH v14.1] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2019-02-06 Thread Rui Miguel Silva
Adds MIPI CSI-2 subdev for i.MX7 to connect with sensors with a MIPI CSI-2 interface. Signed-off-by: Rui Miguel Silva --- kbuild-bot: - remove __exit from debugfs_exit to solve tree: git://linuxtv.org/hverkuil/media_tree.git imx7 head: a95edaa9069c275170a9ecf5aedc68be974678a2 commit:

Re: [PATCH net-next v4 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread David Miller
From: David Miller Date: Wed, 06 Feb 2019 13:50:50 -0800 (PST) > From: Florian Fainelli > Date: Wed, 6 Feb 2019 09:45:34 -0800 > >> Based on discussion with Ido and feedback from Jakub there are clearly >> two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: >> >> - PF/VF

Re: [PATCH net-next v4 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread David Miller
From: Florian Fainelli Date: Wed, 6 Feb 2019 09:45:34 -0800 > Based on discussion with Ido and feedback from Jakub there are clearly > two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > > - PF/VF drivers which typically only implement return the port's parent > ID, yet

Re: [PATCH net-next v4 12/12] net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2019-02-06 Thread Ido Schimmel
On Wed, Feb 06, 2019 at 09:45:46AM -0800, Florian Fainelli wrote: > Now that we have a dedicated NDO for getting a port's parent ID, get rid > of SWITCHDEV_ATTR_ID_PORT_PARENT_ID and convert all callers to use the > NDO exclusively. This is a preliminary change to getting rid of > switchdev_ops

Re: [PATCH net-next v4 01/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Ido Schimmel
On Wed, Feb 06, 2019 at 09:45:35AM -0800, Florian Fainelli wrote: > In preparation for getting rid of switchdev_ops, create a dedicated NDO > operation for getting the port's parent identifier. There are > essentially two classes of drivers that need to implement getting the > port's parent ID

Re: [PATCH net-next v4 05/12] mlxsw: Implement ndo_get_port_parent_id()

2019-02-06 Thread Ido Schimmel
On Wed, Feb 06, 2019 at 09:45:39AM -0800, Florian Fainelli wrote: > mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid > of switchdev_ops eventually, ease that migration by implementing a > ndo_get_port_parent_id() function which returns what > switchdev_port_attr_get() would

Re: [PATCH net-next v3 11/12] net: dsa: Implement ndo_get_port_parent_id()

2019-02-06 Thread Vivien Didelot
Hi Florian, On Tue, 5 Feb 2019 15:53:25 -0800, Florian Fainelli wrote: > DSA implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid > of switchdev_ops eventually, ease that migration by implementing a > ndo_get_port_parent_id() function which returns what >

[PATCH net-next v4 12/12] net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2019-02-06 Thread Florian Fainelli
Now that we have a dedicated NDO for getting a port's parent ID, get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID and convert all callers to use the NDO exclusively. This is a preliminary change to getting rid of switchdev_ops eventually. Signed-off-by: Florian Fainelli --- include/net/switchdev.h

[PATCH net-next v4 03/12] liquidio: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
Liquidio only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 04/12] net/mlx5e: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
mlx5e only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Since mlx5e makes use of switchdev_port_parent_id() convert it to use netdev_port_same_parent_id().

[PATCH net-next v4 05/12] mlxsw: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 11/12] net: dsa: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
DSA implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 10/12] staging: fsl-dpaa2: ethsw: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
ethsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 08/12] rocker: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid of switchdev_ops eventually, ease that migration by implementing a ndo_get_port_parent_id() function which returns what switchdev_port_attr_get() would do. Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 06/12] mscc: ocelot: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
Ocelot only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID as a valid switchdev attribute getter, convert it to use ndo_get_port_parent_id() and get rid of the switchdev_ops::switchdev_port_attr_get altogether. Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli ---

[PATCH net-next v4 09/12] netdevsim: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
netdevsim only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Acked-by: Jiri Pirko Signed-off-by: Florian Fainelli --- drivers/net/netdevsim/netdev.c | 23

[PATCH net-next v4 07/12] nfp: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
NFP only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). Since NFP uses switchdev_port_same_parent_id() convert it to use netdev_port_same_parent_id(). Acked-by:

[PATCH net-next v4 01/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
In preparation for getting rid of switchdev_ops, create a dedicated NDO operation for getting the port's parent identifier. There are essentially two classes of drivers that need to implement getting the port's parent ID which are VF/PF drivers with a built-in switch, and pure switchdev drivers

[PATCH net-next v4 02/12] bnxt: Implement ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
BNXT only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a great candidate to be converted to use the ndo_get_port_parent_id() NDO instead of implementing switchdev_port_attr_get(). The conversion is straight forward here since the PF and VF code use the same getter. Since bnxt makes

[PATCH net-next v4 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Florian Fainelli
Hi all, Based on discussion with Ido and feedback from Jakub there are clearly two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: - PF/VF drivers which typically only implement return the port's parent ID, yet have to implement switchdev_port_attr_get() just for that -

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 05, 2019 at 10:59:40AM -0800, Joe Perches wrote: > On Tue, 2019-02-05 at 19:44 +0100, Greg Kroah-Hartman wrote: > > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > > This patch corrects the style for SPDX license Identifier in mac.h > > > by using "/* */" in place of

[PATCH v14.1] media: staging/imx: refactor imx media device probe

2019-02-06 Thread Rui Miguel Silva
Refactor and move media device initialization code to a new common module, so it can be used by other devices, this will allow for example a near to introduce imx7 CSI driver, to use this media device. Signed-off-by: Rui Miguel Silva --- v14->v14.1: - Fix SPDX in dev-common

Re: [Linaro-mm-sig] [PATCH 2/4] staging: android: ion: Restrict cache maintenance to dma mapped memory

2019-02-06 Thread Ørjan Eide
On Wed, Jan 30, 2019 at 11:31:23AM +, Brian Starkey wrote: > > On Tue, Jan 29, 2019 at 03:44:53PM -0800, Liam Mark wrote: > > On Fri, 18 Jan 2019, Liam Mark wrote: > > > > > On Fri, 18 Jan 2019, Andrew F. Davis wrote: > > > > > > > On 1/18/19 12:37 PM, Liam Mark wrote: > > > > > The ION

Re: [PATCH v14 01/13] media: staging/imx: refactor imx media device probe

2019-02-06 Thread Hans Verkuil
On 2/6/19 4:13 PM, Rui Miguel Silva wrote: > Refactor and move media device initialization code to a new common > module, so it can be used by other devices, this will allow for example > a near to introduce imx7 CSI driver, to use this media device. > > Signed-off-by: Rui Miguel Silva > --- >

[PATCH v2 3/3] staging: rtl8192e: rename members of struct rtllib_device - style

2019-02-06 Thread Himadri Pandya
Rename following members of struct rtllib_device to fix checkpatch warning: Avoid CamelCase pDot11dInfo -> dot11d_info bGlobalDomain -> global_domain IbssStartChnl -> bss_start_channel Signed-off-by: Himadri Pandya --- Changes in V2: Rename "IbssStartChnl" to

[PATCH v2 2/3] staging: rtl8192e: rename members of struct rt_dot11d_info - style

2019-02-06 Thread Himadri Pandya
Rename following members of struct rt_dot11d_info to fix checkpatch warning: Avoid Camelcase bEnabled -> enabled CountryIeLen -> country_len CountryIeBuf -> country_buffer CountryIeSrcAddr -> country_src_addr CountryIeWatchdog -> country_watchdog

[PATCH v2 1/3] staging: rtl8192e: rename members of struct chnl_txpow_triple - style

2019-02-06 Thread Himadri Pandya
Rename following members of chnl_txpow_triple to fix checkpatch warning: Avoid CamelCase FirstChnl -> first_channel NumChnls -> num_channels MaxTxPowerInDbm -> max_tx_power Signed-off-by: Himadri Pandya --- Changes in V2: Rename "FirstChnl" to "first_channel" instead of

[PATCH v14 12/13] media: video-mux: add bayer formats

2019-02-06 Thread Rui Miguel Silva
Add non vendor bayer formats to the allowed format array. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel Acked-by: Sakari Ailus --- drivers/media/platform/video-mux.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/media/platform/video-mux.c

[PATCH v14 11/13] media: staging/imx: add i.MX7 entries to TODO file

2019-02-06 Thread Rui Miguel Silva
Add some i.MX7 related entries to TODO file. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- drivers/staging/media/imx/TODO | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO index aeeb15494a49..6f29b5ca5324

[PATCH v14 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add rst document to describe the i.MX7 media driver and also a working example from the Warp7 board usage with a OV2680 sensor. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- Documentation/media/v4l-drivers/imx7.rst | 159 ++

[PATCH v14 13/13] media: MAINTAINERS: add entry for Freescale i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add maintainer entry for the imx7 media csi, mipi csis driver, dt-bindings and documentation. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3e211916d2bc..d8e0c9040736

[PATCH v14 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node

2019-02-06 Thread Rui Miguel Silva
Warp7 comes with a Omnivision OV2680 sensor, add the node here to make complete the camera data path for this system. Add the needed regulator to the analog voltage supply, the port and endpoints in mipi_csi node and the pinctrl for the reset gpio. Signed-off-by: Rui Miguel Silva ---

[PATCH v14 05/13] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2019-02-06 Thread Rui Miguel Silva
Adds MIPI CSI-2 subdev for i.MX7 to connect with sensors with a MIPI CSI-2 interface. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile |1 + drivers/staging/media/imx/imx7-mipi-csis.c | 1186 2 files changed, 1187 insertions(+) create mode

[PATCH v14 08/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections

2019-02-06 Thread Rui Miguel Silva
This patch adds the device tree nodes for csi, video multiplexer and mipi-csi besides the graph connecting the necessary endpoints to make the media capture entities to work in imx7 Warp board. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 51

[PATCH v14 02/13] media: staging/imx: rearrange group id to take in account IPU

2019-02-06 Thread Rui Miguel Silva
Some imx system do not have IPU, so prepare the imx media drivers to support this kind of devices. Rename the group ids to include an _IPU_ prefix, add a new group id to support systems with only a CSI without IPU, and also rename the create internal links to make it clear that only systems with

[PATCH v14 06/13] ARM: dts: imx7s: add mipi phy power domain

2019-02-06 Thread Rui Miguel Silva
Add power domain index 0 related with mipi-phy to imx7s. While at it rename pcie power-domain node to remove pgc prefix. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7s.dtsi

[PATCH v14 00/13] media: staging/imx7: add i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Hi, This series introduces the Media driver to work with the i.MX7 SoC. it uses the already existing imx media core drivers but since the i.MX7, contrary to i.MX5/6, do not have an IPU and because of that some changes in the imx media core are made along this series to make it support that case.

[PATCH v14 03/13] media: dt-bindings: add bindings for i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add bindings documentation for i.MX7 media drivers. The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring Acked-by: Sakari Ailus --- .../devicetree/bindings/media/imx7-csi.txt| 45 ++ .../bindings/media/imx7-mipi-csi2.txt

[PATCH v14 07/13] ARM: dts: imx7s: add multiplexer controls

2019-02-06 Thread Rui Miguel Silva
The IOMUXC General Purpose Register has bitfield to control video bus multiplexer to control the CSI input between the MIPI-CSI2 and parallel interface. Add that register and mask. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel --- arch/arm/boot/dts/imx7s.dtsi | 9 - 1 file

[PATCH v14 04/13] media: staging/imx7: add imx7 CSI subdev driver

2019-02-06 Thread Rui Miguel Silva
This add the media entity subdevice and control driver for the i.MX7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- drivers/staging/media/imx/Kconfig |9 +- drivers/staging/media/imx/Makefile |2 +

[PATCH v14 01/13] media: staging/imx: refactor imx media device probe

2019-02-06 Thread Rui Miguel Silva
Refactor and move media device initialization code to a new common module, so it can be used by other devices, this will allow for example a near to introduce imx7 CSI driver, to use this media device. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile| 1 +

Re: [PATCH 1/2] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-02-06 Thread Dan Carpenter
On Wed, Feb 06, 2019 at 02:05:41PM +0200, Beniamin Bia wrote: > Frequency attribute is added with a standard type from iio framework > instead of custom attribute. This is a small step towards removing any > unnecessary custom attribute. > > Signed-off-by: Beniamin Bia This doesn't match your

[PATCH v2] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-06 Thread Nishad Kamdar
This patch corrects the style for SPDX license Identifier in mac.h by using "/* */" in place of "//" as per Linux kernel licensing rules. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- Changes in v2: - Use the "/* */" comment style specifically for the SPDX identifier as per

Re: [PATCH v13 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Hi Hans, On Wed 06 Feb 2019 at 10:54, Hans Verkuil wrote: On 2/6/19 11:25 AM, Rui Miguel Silva wrote: Add rst document to describe the i.MX7 media driver and also a working example from the Warp7 board usage with a OV2680 sensor. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus

Re: [PATCH net-next v3 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Ido Schimmel
On Wed, Feb 06, 2019 at 09:51:36AM +0200, Ido Schimmel wrote: > On Tue, Feb 05, 2019 at 03:53:14PM -0800, Florian Fainelli wrote: > > Hi all, > > > > Based on discussion with Ido and feedback from Jakub there are clearly > > two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: >

[PATCH 1/2] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-02-06 Thread Beniamin Bia
Frequency attribute is added with a standard type from iio framework instead of custom attribute. This is a small step towards removing any unnecessary custom attribute. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 97 +- 1 file changed, 80

Re: [PATCH net-next v3 12/12] net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:26AM CET, f.faine...@gmail.com wrote: >Now that we have a dedicated NDO for getting a port's parent ID, get rid >of SWITCHDEV_ATTR_ID_PORT_PARENT_ID and convert all callers to use the >NDO exclusively. This is a preliminary change to getting rid of >switchdev_ops

[PATCH 2/2] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-02-06 Thread Beniamin Bia
The custom phase and scale attributes were moved to standard iio types. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 54 +++--- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/drivers/staging/iio/frequency/ad9834.c

Re: [PATCH net-next v3 11/12] net: dsa: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:25AM CET, f.faine...@gmail.com wrote: >DSA implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid >of switchdev_ops eventually, ease that migration by implementing a >ndo_get_port_parent_id() function which returns what >switchdev_port_attr_get() would do. >

Re: [PATCH net-next v3 09/12] netdevsim: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:23AM CET, f.faine...@gmail.com wrote: >netdevsim only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). > >Signed-off-by: Florian

Re: [PATCH net-next v3 08/12] rocker: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:22AM CET, f.faine...@gmail.com wrote: >mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid >of switchdev_ops eventually, ease that migration by implementing a >ndo_get_port_parent_id() function which returns what >switchdev_port_attr_get() would do.

Re: [PATCH net-next v3 07/12] nfp: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:21AM CET, f.faine...@gmail.com wrote: >NFP only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). > >Since NFP uses

Re: [PATCH net-next v3 06/12] mscc: ocelot: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:20AM CET, f.faine...@gmail.com wrote: >Ocelot only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID as a valid >switchdev attribute getter, convert it to use ndo_get_port_parent_id() >and get rid of the switchdev_ops::switchdev_port_attr_get altogether. > >Signed-off-by:

Re: [PATCH net-next v3 05/12] mlxsw: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:19AM CET, f.faine...@gmail.com wrote: >mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid >of switchdev_ops eventually, ease that migration by implementing a >ndo_get_port_parent_id() function which returns what >switchdev_port_attr_get() would do.

Re: [PATCH net-next v3 04/12] net/mlx5e: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:18AM CET, f.faine...@gmail.com wrote: >mlx5e only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). > >Since mlx5e makes use of

Re: [PATCH net-next v3 03/12] liquidio: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:17AM CET, f.faine...@gmail.com wrote: >Liquidio only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it >a great candidate to be converted to use the ndo_get_port_parent_id() >NDO instead of implementing switchdev_port_attr_get(). > >Signed-off-by: Florian

Re: [PATCH net-next v3 02/12] bnxt: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:16AM CET, f.faine...@gmail.com wrote: >BNXT only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). The conversion is >straight forward

Re: [PATCH net-next v3 01/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:15AM CET, f.faine...@gmail.com wrote: >In preparation for getting rid of switchdev_ops, create a dedicated NDO >operation for getting the port's parent identifier. There are >essentially two classes of drivers that need to implement getting the >port's parent ID which

[PATCH 2/2] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-02-06 Thread Beniamin Bia
From: Beniamin Bia The custom phase and scale attributes were moved to standard iio types. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 54 +++--- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git

[PATCH 1/2] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-02-06 Thread Beniamin Bia
From: Beniamin Bia Frequency attribute is added with a standard type from iio framework instead of custom attribute. This is a small step towards removing any unnecessary custom attribute. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 97 +-

Re: [PATCH v13 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-02-06 Thread Hans Verkuil
On 2/6/19 11:25 AM, Rui Miguel Silva wrote: > Add rst document to describe the i.MX7 media driver and also a working > example from the Warp7 board usage with a OV2680 sensor. > > Signed-off-by: Rui Miguel Silva > Acked-by: Sakari Ailus Checkpatch gives me: Applying: media: imx7.rst: add

[PATCH v13 06/13] ARM: dts: imx7s: add mipi phy power domain

2019-02-06 Thread Rui Miguel Silva
Add power domain index 0 related with mipi-phy to imx7s. While at it rename pcie power-domain node to remove pgc prefix. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7s.dtsi

[PATCH v13 07/13] ARM: dts: imx7s: add multiplexer controls

2019-02-06 Thread Rui Miguel Silva
The IOMUXC General Purpose Register has bitfield to control video bus multiplexer to control the CSI input between the MIPI-CSI2 and parallel interface. Add that register and mask. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel --- arch/arm/boot/dts/imx7s.dtsi | 9 - 1 file

[PATCH v13 08/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections

2019-02-06 Thread Rui Miguel Silva
This patch adds the device tree nodes for csi, video multiplexer and mipi-csi besides the graph connecting the necessary endpoints to make the media capture entities to work in imx7 Warp board. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 51

[PATCH v13 12/13] media: video-mux: add bayer formats

2019-02-06 Thread Rui Miguel Silva
Add non vendor bayer formats to the allowed format array. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel Acked-by: Sakari Ailus --- drivers/media/platform/video-mux.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/media/platform/video-mux.c

[PATCH v13 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node

2019-02-06 Thread Rui Miguel Silva
Warp7 comes with a Omnivision OV2680 sensor, add the node here to make complete the camera data path for this system. Add the needed regulator to the analog voltage supply, the port and endpoints in mipi_csi node and the pinctrl for the reset gpio. Signed-off-by: Rui Miguel Silva ---

[PATCH v13 11/13] media: staging/imx: add i.MX7 entries to TODO file

2019-02-06 Thread Rui Miguel Silva
Add some i.MX7 related entries to TODO file. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- drivers/staging/media/imx/TODO | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO index aeeb15494a49..6f29b5ca5324

[PATCH v13 05/13] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2019-02-06 Thread Rui Miguel Silva
Adds MIPI CSI-2 subdev for i.MX7 to connect with sensors with a MIPI CSI-2 interface. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile |1 + drivers/staging/media/imx/imx7-mipi-csis.c | 1186 2 files changed, 1187 insertions(+) create mode

[PATCH v13 13/13] media: MAINTAINERS: add entry for Freescale i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add maintainer entry for the imx7 media csi, mipi csis driver, dt-bindings and documentation. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3e211916d2bc..d8e0c9040736

[PATCH v13 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add rst document to describe the i.MX7 media driver and also a working example from the Warp7 board usage with a OV2680 sensor. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- Documentation/media/v4l-drivers/imx7.rst | 157 ++

[PATCH v13 01/13] media: staging/imx: refactor imx media device probe

2019-02-06 Thread Rui Miguel Silva
Refactor and move media device initialization code to a new common module, so it can be used by other devices, this will allow for example a near to introduce imx7 CSI driver, to use this media device. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile| 1 +

[PATCH v13 04/13] media: staging/imx7: add imx7 CSI subdev driver

2019-02-06 Thread Rui Miguel Silva
This add the media entity subdevice and control driver for the i.MX7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- drivers/staging/media/imx/Kconfig |9 +- drivers/staging/media/imx/Makefile |2 +

[PATCH v13 02/13] media: staging/imx: rearrange group id to take in account IPU

2019-02-06 Thread Rui Miguel Silva
Some imx system do not have IPU, so prepare the imx media drivers to support this kind of devices. Rename the group ids to include an _IPU_ prefix, add a new group id to support systems with only a CSI without IPU, and also rename the create internal links to make it clear that only systems with

[PATCH v13 03/13] media: dt-bindings: add bindings for i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Add bindings documentation for i.MX7 media drivers. The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring Acked-by: Sakari Ailus --- .../devicetree/bindings/media/imx7-csi.txt| 45 ++ .../bindings/media/imx7-mipi-csi2.txt

[PATCH v13 00/13] media: staging/imx7: add i.MX7 media driver

2019-02-06 Thread Rui Miguel Silva
Hi, This series introduces the Media driver to work with the i.MX7 SoC. it uses the already existing imx media core drivers but since the i.MX7, contrary to i.MX5/6, do not have an IPU and because of that some changes in the imx media core are made along this series to make it support that case.

Re: [PATCH net-next v3 00/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Ido Schimmel
On Tue, Feb 05, 2019 at 03:53:14PM -0800, Florian Fainelli wrote: > Hi all, > > Based on discussion with Ido and feedback from Jakub there are clearly > two classes of users that implement SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > > - PF/VF drivers which typically only implement return the port's