[PATCH RFT/RFC v2 17/47] staging: media: zoran: move v4l_settings out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the v4l_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_driver.c | 38 ++ 2 files changed, 17 insertions(+), 22 deletions

[PATCH RFT/RFC v2 15/47] staging: media: zoran: do not print random guest 0

2020-09-25 Thread Corentin Labbe
The slot 0 of guest is never initialized and so we print later random data. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran

[PATCH RFT/RFC v2 19/47] staging: media: zoran: move overlay_settings out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the overlay_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_device.c | 8 ++--- drivers/staging/media/zoran/zoran_driver.c | 40

[PATCH RFT/RFC v2 20/47] staging: media: zoran: Use video_drvdata to get struct zoran

2020-09-25 Thread Corentin Labbe
Using video_drvdata() is proper and shorter than using directly fh pointers. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 40 -- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b

[PATCH RFT/RFC v2 22/47] staging: media: zoran: remove overlay

2020-09-25 Thread Corentin Labbe
Supporting overlay is not necessary today, so let's reduce the code size by removing it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 16 - drivers/staging/media/zoran/zoran_card.c | 6 - drivers/staging/media/zoran/zoran_device.c | 143 + drivers

[PATCH RFT/RFC v2 16/47] staging: media: zoran: move buffer_size out of zoran_fh

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the buffer_size directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 3 +- drivers/staging/media/zoran/zoran_device.c | 3 +- drivers/staging/media/zoran/zoran_driver.c | 62

[PATCH RFT/RFC v2 23/47] staging: media: zoran: Use DMA coherent for stat_com

2020-09-25 Thread Corentin Labbe
Instead of using a fragile virt_to_bus, let's use proper DMA coherent for the stat_com entry. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 ++ drivers/staging/media/zoran/zoran_card.c | 22 +++--- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC v2 21/47] staging: media: zoran: Change zoran_v4l_set_format parameter from zoran_fh to zoran

2020-09-25 Thread Corentin Labbe
We need to get rid of zoran_fh, so let's change function arguments. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran

[PATCH RFT/RFC v2 14/47] staging: media: zoran: use v4l2_buffer_set_timestamp

2020-09-25 Thread Corentin Labbe
The ns_to_timeval function is removed, so replace it with v4l2_buffer_set_timestamp(). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers

[PATCH RFT/RFC v2 13/47] staging: media: zoran: use VFL_TYPE_VIDEO

2020-09-25 Thread Corentin Labbe
The VFL_TYPE_GRABBER type was removed, so let's use the new type. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC v2 10/47] staging: media: zoran: convert dprintk debug

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(debug) to pci_dbg. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 30 -- drivers/staging/media/zoran/zoran_card.h | 6 - drivers/staging/media/zoran/zoran_device.c | 2 +- drivers/staging/media/zoran

[PATCH RFT/RFC v2 06/47] staging: media: zoran: do not forward declare zr36057_init_vfe

2020-09-25 Thread Corentin Labbe
move function for avoiding forward declaration Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 44 +++--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran

[PATCH RFT/RFC v2 11/47] staging: media: zoran: zoran_device.c: convert pr_x to pci_x

2020-09-25 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 61b4cfccc168..e50153218f72 100644

[PATCH RFT/RFC v2 08/47] staging: media: zoran: convert dprintk warn

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(warn) to pci_warn. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 18 -- drivers/staging/media/zoran/zoran_device.c | 13 +++--- drivers/staging/media/zoran/zoran_driver.c | 29 +- 3 files changed, 14

[PATCH RFT/RFC v2 12/47] staging: media: zoran: remove proc_fs

2020-09-25 Thread Corentin Labbe
The zoran driver give some debug information in procfs, but this is not the right place. So let's remove them, we will use debugfs later. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Makefile | 2 +- drivers/staging/media/zoran/zoran.h| 5 - drivers/staging

[PATCH RFT/RFC v2 04/47] staging: media: zoran: Documentation: fix typo

2020-09-25 Thread Corentin Labbe
Fix some typo in doc. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/zoran.rst b/Documentation/media/v4l-drivers/zoran.rst index a0586514cd8a..2b82b9a47a71

[PATCH RFT/RFC v2 09/47] staging: media: zoran: convert dprintk info to pci_info

2020-09-25 Thread Corentin Labbe
This patch convert dprintk(info) to pci_info (or pci_dbg if the message is not important). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 46 +++--- drivers/staging/media/zoran/zoran_device.c | 27 - drivers/staging/media/zoran

[PATCH RFT/RFC v2 07/47] staging: media: zoran: convert all error dprintk to pci_err/pr_err

2020-09-25 Thread Corentin Labbe
This patch converts all errors dprintk to pci_err/pr_err. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 39 +-- drivers/staging/media/zoran/zoran_card.c | 96 ++ drivers/staging/media/zoran/zoran_device.c | 28 +- drivers/staging/media/zoran

[PATCH RFT/RFC v2 02/47] MAINTAINERS: change maintainer of the zoran driver

2020-09-25 Thread Corentin Labbe
Add myself as maintainer. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 22 +++--- MAINTAINERS| 10 ++ drivers/staging/media/zoran/zoran_card.c | 5 - drivers/staging/media/zoran/zoran_card.h | 5

[PATCH RFT/RFC v2 03/47] staging: media: zoran: datasheet is no longer available from zoran.com

2020-09-25 Thread Corentin Labbe
Simply remove this broken reference Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 04162be80420..79da964c678b 100644

[PATCH RFT/RFC v2 00/47] staging: media: bring back zoran driver

2020-09-25 Thread Corentin Labbe
fallthough patch - removed unsplit lines patch - fixed line size in "Use DMA coherent for stat_com" patch Corentin Labbe (47): staging: media: Revert "media: zoran: remove deprecated driver" MAINTAINERS: change maintainer of the zoran driver staging: media: zoran: datasheet is

Re: WARNING: at kernel/workqueue.c:1473 __queue_work+0x3b8/0x3d0

2020-09-25 Thread Corentin Labbe
On Tue, Mar 03, 2020 at 04:31:11PM -0500, Daniel Jordan wrote: > On Tue, Mar 03, 2020 at 08:48:19AM +0100, Corentin Labbe wrote: > > The patch fix the issue. Thanks! > > Thanks for trying it! > > > So you could add: > > Reported-by: Corentin Labbe > > T

Re: [v2 PATCH] crypto: sun4i-ss - Fix sparse endianness markers

2020-09-24 Thread Corentin Labbe
On Thu, Sep 24, 2020 at 01:08:59PM +1000, Herbert Xu wrote: > On Mon, Sep 14, 2020 at 12:40:58PM +0200, Corentin Labbe wrote: > > > > I got this on next-20200910/multi_v7_defconfig BigEndian > > [ 12.137856] alg: hash: skipping comparison tests for md5-sun4i-ss &g

[PATCH RFT/RFC 08/49] staging: media: zoran: convert all error dprintk to pci_err/pr_err

2020-09-21 Thread Corentin Labbe
This patch converts all errors dprintk to pci_err/pr_err. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 39 +-- drivers/staging/media/zoran/zoran_card.c | 96 ++ drivers/staging/media/zoran/zoran_device.c | 28 +- drivers/staging/media/zoran

[PATCH RFT/RFC 11/49] staging: media: zoran: convert dprintk debug

2020-09-21 Thread Corentin Labbe
This patch convert dprintk(debug) to pci_dbg. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 30 -- drivers/staging/media/zoran/zoran_card.h | 6 - drivers/staging/media/zoran/zoran_device.c | 2 +- drivers/staging/media/zoran

[PATCH RFT/RFC 07/49] staging: media: zoran: do not forward declare zr36057_init_vfe

2020-09-21 Thread Corentin Labbe
move function for avoiding forward declaration Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 44 +++--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran

[PATCH RFT/RFC 12/49] staging: media: zoran: zoran_device.c: convert pr_x to pci_x

2020-09-21 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 516a7f18ce7a..03ad3562a807 100644

[PATCH RFT/RFC 10/49] staging: media: zoran: convert dprintk info to pci_info

2020-09-21 Thread Corentin Labbe
This patch convert dprintk(info) to pci_info (or pci_dbg if the message is not important). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 46 +++--- drivers/staging/media/zoran/zoran_device.c | 27 - drivers/staging/media/zoran

[PATCH RFT/RFC 13/49] staging: media: zoran: remove proc_fs

2020-09-21 Thread Corentin Labbe
The zoran driver give some debug information in procfs, but this is not the right place. So let's remove them, we will use debugfs later. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Makefile | 2 +- drivers/staging/media/zoran/zoran.h| 5 - drivers/staging

[PATCH RFT/RFC 18/49] staging: media: zoran: move v4l_settings out of zoran_fh

2020-09-21 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the v4l_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_driver.c | 38 ++ 2 files changed, 17 insertions(+), 22 deletions

[PATCH RFT/RFC 20/49] staging: media: zoran: move overlay_settings out of zoran_fh

2020-09-21 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the overlay_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 1 - drivers/staging/media/zoran/zoran_device.c | 8 ++--- drivers/staging/media/zoran/zoran_driver.c | 40

[PATCH RFT/RFC 22/49] staging: media: zoran: Change zoran_v4l_set_format parameter from zoran_fh to zoran

2020-09-21 Thread Corentin Labbe
We need to get rid of zoran_fh, so let's change function arguments. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran

[PATCH RFT/RFC 21/49] staging: media: zoran: Use video_drvdata to get struct zoran

2020-09-21 Thread Corentin Labbe
Using video_drvdata() is proper and shorter than using directly fh pointers. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 40 -- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b

[PATCH RFT/RFC 16/49] staging: media: zoran: do not print random guest 0

2020-09-21 Thread Corentin Labbe
The slot 0 of guest is never initialized and so we print later random data. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran

[PATCH RFT/RFC 17/49] staging: media: zoran: move buffer_size out of zoran_fh

2020-09-21 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the buffer_size directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 3 +- drivers/staging/media/zoran/zoran_device.c | 3 +- drivers/staging/media/zoran/zoran_driver.c | 62

[PATCH RFT/RFC 26/49] staging: media: zoran: zoran does not support STD_ALL

2020-09-21 Thread Corentin Labbe
In fact, zoran does not support V4L2_STD_ALL, so let's enumerate what we support. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media

[PATCH RFT/RFC 34/49] staging: media: zoran: constify struct tvnorm

2020-09-21 Thread Corentin Labbe
The structure tvnorm could be consified. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.h | 2 +- drivers/staging/media/zoran/zoran.h| 4 ++-- drivers/staging/media/zoran/zoran_card.c | 24 +++--- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC 29/49] staging: media: zoran: convert mdelay to udelay

2020-09-21 Thread Corentin Labbe
As asked by checkpath, let's use udelay. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index

[PATCH RFT/RFC 24/49] staging: media: zoran: Use DMA coherent for stat_com

2020-09-21 Thread Corentin Labbe
Instead of using a fragile virt_to_bus, let's use proper DMA coherent for the stat_com entry. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 ++ drivers/staging/media/zoran/zoran_card.c | 20 +--- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC 19/49] staging: media: zoran: move jpg_settings out of zoran_fh

2020-09-21 Thread Corentin Labbe
We need to get rid of zoran_fh, so move the jpg_settings directly in the zoran structure. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 - drivers/staging/media/zoran/zoran_driver.c | 103 ++--- 2 files changed, 47 insertions(+), 58 deletions

[PATCH RFT/RFC 23/49] staging: media: zoran: remove overlay

2020-09-21 Thread Corentin Labbe
Supporting overlay is not necessary today, so let's reduce the code size by removing it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 16 - drivers/staging/media/zoran/zoran_card.c | 6 - drivers/staging/media/zoran/zoran_device.c | 143 + drivers

[PATCH RFT/RFC 25/49] staging: media: zoran: use ZR_NORM

2020-09-21 Thread Corentin Labbe
Instead of using hardcoded numbers, let's use some define for ZR NORM. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 4 drivers/staging/media/zoran/zoran_card.c | 8 drivers/staging/media/zoran/zoran_driver.c | 6 +++--- 3 files changed, 11

[PATCH RFT/RFC 27/49] staging: media: zoran: convert irq to pci irq

2020-09-21 Thread Corentin Labbe
This patch convert zoran to pci_irq functions. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index

[PATCH RFT/RFC 30/49] staging: media: zoran: use devm for videocodec_master alloc

2020-09-21 Thread Corentin Labbe
Let's use devm allocations for videocodec, this simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media

[PATCH RFT/RFC 31/49] staging: media: zoran: use pci_request_regions

2020-09-21 Thread Corentin Labbe
Use pci_request_regions so now we can see zoran in /proc/iomem. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran

[PATCH RFT/RFC 39/49] staging: media: zoran: disable output

2020-09-21 Thread Corentin Labbe
Zoran is picky about jpeg data it accepts. At least it seems to not support COM and APPn. So until a way to filter data will be done, disable output. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 ++ drivers/staging/media/zoran/zoran_driver.c | 20

[PATCH RFT/RFC 43/49] staging: media: zoran: add vidioc_g_parm

2020-09-21 Thread Corentin Labbe
Adding vidioc_g_parm made v4l compliance happy. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 0b4bfc184b57

[PATCH RFT/RFC 41/49] staging: media: zoran: enable makefile

2020-09-21 Thread Corentin Labbe
This patch enables compilation of the zoran driver. Signed-off-by: Corentin Labbe --- drivers/staging/media/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/Makefile b/drivers/staging/media/Makefile index 25910221b100..965a8b0e6cf2 100644 --- a/drivers/staging

[PATCH RFT/RFC 48/49] staging: media: zoran: convert to vb2

2020-09-21 Thread Corentin Labbe
This is it! the ultimate last step, the vb2 conversion. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig|2 +- drivers/staging/media/zoran/zoran.h| 83 +- drivers/staging/media/zoran/zoran_card.c | 45 +- drivers/staging/media/zoran/zoran_device.c

[PATCH RFT/RFC 42/49] staging: media: zoran: remove framebuffer support

2020-09-21 Thread Corentin Labbe
The framebuffer support is obsolete, so let's reduce code size. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 4 - drivers/staging/media/zoran/zoran_card.c | 6 -- drivers/staging/media/zoran/zoran_driver.c | 85 -- 3 files changed, 95

[PATCH RFT/RFC 46/49] staging: media: zoran: fix some compliance test

2020-09-21 Thread Corentin Labbe
Add TODO for "TRY_FMT cannot handle an invalid pixelformat" We need to set pixelformat in some case. We should also handle some minimum requirement. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 12 +++- 1 file changed, 11 insertions(+),

[PATCH RFT/RFC 35/49] staging: media: zoran: constify codec_name

2020-09-21 Thread Corentin Labbe
The codec_name could be const. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index 176ce8a355ba

[PATCH RFT/RFC 37/49] staging: media: zoran: add fallthrough keyword

2020-09-21 Thread Corentin Labbe
This patch adds fallthrough keyword where appropriate. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index

[PATCH RFT/RFC 49/49] staging: media: zoran: update TODO

2020-09-21 Thread Corentin Labbe
Update the TODO of the zoran driver Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/TODO | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/TODO b/drivers/staging/media/zoran/TODO index 54464095d0d7

[PATCH RFT/RFC 44/49] staging: media: zoran: remove test_interrupts

2020-09-21 Thread Corentin Labbe
The test_interrupts function is useless, remove it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 3 --- drivers/staging/media/zoran/zoran_card.c | 27 -- drivers/staging/media/zoran/zoran_device.c | 16 - 3 files changed, 46

[PATCH RFT/RFC 40/49] staging: media: zoran: device support only 32bit DMA address

2020-09-21 Thread Corentin Labbe
The zoran device only supports 32bit DMA address. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index 864196e7acae

[PATCH RFT/RFC 28/49] staging: media: zoran: convert zoran alloc to devm

2020-09-21 Thread Corentin Labbe
Allocate the zoran structure with devm_ functions permit to simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran

[PATCH RFT/RFC 15/49] staging: media: zoran: use v4l2_buffer_set_timestamp

2020-09-21 Thread Corentin Labbe
The ns_to_timeval function is removed, so replace it with v4l2_buffer_set_timestamp(). Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers

[PATCH RFT/RFC 33/49] staging: media: zoran: add stat_com buffer

2020-09-21 Thread Corentin Labbe
This patch adds the allocation of the stat_com buffer which be used later. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h | 2 ++ drivers/staging/media/zoran/zoran_card.c | 11 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH RFT/RFC 03/49] staging: media: zoran: datasheet is no longer available from zoran.com

2020-09-21 Thread Corentin Labbe
Simply remove this broken reference Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 04162be80420..79da964c678b 100644

[PATCH RFT/RFC 14/49] staging: media: zoran: use VFL_TYPE_VIDEO

2020-09-21 Thread Corentin Labbe
The VFL_TYPE_GRABBER type was removed, so let's use the new type. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c

[PATCH RFT/RFC 02/49] MAINTAINERS: change maintainer of the zoran driver

2020-09-21 Thread Corentin Labbe
Add myself as maintainer. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 22 +++--- MAINTAINERS| 10 ++ drivers/staging/media/zoran/zoran_card.c | 5 - drivers/staging/media/zoran/zoran_card.h | 5

[PATCH RFT/RFC 06/49] staging: media: zoran: unsplit lines

2020-09-21 Thread Corentin Labbe
This patch un-split some lines. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 27 drivers/staging/media/zoran/zoran_device.c | 49 +++--- drivers/staging/media/zoran/zoran_driver.c | 27 3 files changed, 34 insertions

[PATCH RFT/RFC 36/49] staging: media: zoran: Add more check for compliance

2020-09-21 Thread Corentin Labbe
The zoran driver miss some sanity checks, and this made v4l compliance happy. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media

[PATCH RFT/RFC 00/49] staging: media: bring back zoran driver

2020-09-21 Thread Corentin Labbe
. This driver is tested on a DC10+ (on x86). Tests on different hardware are welcome. I would like to thanks all people that helped me to achieve this (mostly #v4l) Regards Corentin Labbe (49): staging: media: Revert "media: zoran: remove deprecated driver" MAINTAINERS: change

[PATCH RFT/RFC 32/49] staging: media: zoran: use devm_ioremap

2020-09-21 Thread Corentin Labbe
Using devm_ioremap simplify code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index ed4ecf92c040

[PATCH RFT/RFC 38/49] staging: media: zoran: Add vb_queue

2020-09-21 Thread Corentin Labbe
This patchs adds a vb_queue without using it. This reduce the final VB2 conversion patch. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig| 1 + drivers/staging/media/zoran/zoran.h| 30 +++ drivers/staging/media/zoran/zoran_card.c | 7 + drivers

[PATCH RFT/RFC 09/49] staging: media: zoran: convert dprintk warn

2020-09-21 Thread Corentin Labbe
This patch convert dprintk(warn) to pci_warn. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 18 -- drivers/staging/media/zoran/zoran_device.c | 13 +++--- drivers/staging/media/zoran/zoran_driver.c | 29 +- 3 files changed, 14

[PATCH RFT/RFC 04/49] staging: media: zoran: Documentation: fix typo

2020-09-21 Thread Corentin Labbe
Fix some typo in doc. Signed-off-by: Corentin Labbe --- Documentation/media/v4l-drivers/zoran.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/zoran.rst b/Documentation/media/v4l-drivers/zoran.rst index a0586514cd8a..2b82b9a47a71

[PATCH RFT/RFC 47/49] staging: media: zoran: remove deprecated .vidioc_g_jpegcomp

2020-09-21 Thread Corentin Labbe
This patchs removed the deprecated .vidioc_g_jpegcomp and replace it with corresponding v4l2_ctrl_ops code. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 22 ++ drivers/staging/media/zoran/zoran_driver.c | 48 -- 2 files changed, 22

[PATCH RFT/RFC 45/49] staging: media: zoran: fix use of buffer_size and sizeimage

2020-09-21 Thread Corentin Labbe
buffer_size was not set when it should be. Furthermore, use it instead of recalculate it. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 2 ++ drivers/staging/media/zoran/zoran_driver.c | 9 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH v2 3/7] crypto: sun4i-ss: IV register does not work on A10 and A13

2020-09-20 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- .../allwinner/sun4i-ss/sun4i-ss-cipher.c | 34 +++ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c index 2614640231dc..c6

[PATCH v2 0/7] crypto: sun4i-ss: prevent always fallback for ciphers

2020-09-20 Thread Corentin Labbe
patch #4 is sufficient to fix BE problem (removed todo) Corentin Labbe (7): crypto: sun4i-ss: linearize buffers content must be kept crypto: sun4i-ss: checking sg length is not sufficient crypto: sun4i-ss: IV register does not work on A10 and A13 crypto: sun4i-ss: handle BigEndian for cipher cr

[PATCH v2 4/7] crypto: sun4i-ss: handle BigEndian for cipher

2020-09-20 Thread Corentin Labbe
Ciphers produce invalid results on BE. Key and IV need to be written in LE. Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 12 ++-- 1 fi

[PATCH v2 5/7] crypto: sun4i-ss: initialize need_fallback

2020-09-20 Thread Corentin Labbe
The need_fallback is never initialized and seem to be always true at runtime. So all hardware operations are always bypassed. Fixes: 0ae1f46c55f87 ("crypto: sun4i-ss - fallback when length is not multiple of blocksize") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinne

[PATCH v2 7/7] crypto: sun4i-ss: add SPDX header and remove blank lines

2020-09-20 Thread Corentin Labbe
This patchs fixes some remaining style issue. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 3 --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/allwinner/sun4i-ss

[PATCH v2 2/7] crypto: sun4i-ss: checking sg length is not sufficient

2020-09-20 Thread Corentin Labbe
rypto accelerator") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-ciph

[PATCH v2 1/7] crypto: sun4i-ss: linearize buffers content must be kept

2020-09-20 Thread Corentin Labbe
When running the non-optimized cipher function, SS produce partial random output. This is due to linearize buffers being reseted after each loop. Fixes: 8d3bcb9900ca ("crypto: sun4i-ss - reduce stack usage") Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-s

[PATCH v2 6/7] crypto: sun4i-ss: enabled stats via debugfs

2020-09-20 Thread Corentin Labbe
This patch enable to access usage stats for each algorithm. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 9 .../allwinner/sun4i-ss/sun4i-ss-cipher.c | 21 .../crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 54 +++ .../crypto

[PATCH v7 08/17] crypto: sun8i-ce: move iv data to request context

2020-09-18 Thread Corentin Labbe
Instead of storing IV data in the channel context, store them in the request context. Storing them in the channel structure was conceptualy wrong since they are per request related. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 27 +-- drivers

[PATCH v7 01/17] crypto: sun8i-ss: Add SS_START define

2020-09-18 Thread Corentin Labbe
Instead of using an hardcoded value, let's use a defined value for SS_START. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 2 +- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v7 13/17] crypto: sun8i-ce: Add stat_bytes debugfs

2020-09-18 Thread Corentin Labbe
This patch adds a new stat_bytes counter in the sun8i-ce debugfs. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h

[PATCH v7 09/17] crypto: sun8i-ce: split into prepare/run/unprepare

2020-09-18 Thread Corentin Labbe
This patch split the do_one_request into three. Prepare will handle all DMA mapping and initialisation of the task structure. Unprepare will clean all DMA mapping. And the do_one_request will be limited to just executing the task. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i

[PATCH v7 12/17] crypto: sun8i-ce: support hash algorithms

2020-09-18 Thread Corentin Labbe
The CE support multiples hash algorithms, this patch adds support for MD5, SHA1, SHA224, SHA256, SHA384 and SHA512. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 10 + drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i

[PATCH v7 10/17] crypto: sun8i-ce: handle different error registers

2020-09-18 Thread Corentin Labbe
Error registers are different across SoCs. This patch handle those difference. Signed-off-by: Corentin Labbe --- .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 62 --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 8 +++ 2 files changed, 62 insertions(+), 8 deletions

[PATCH v7 16/17] crypto: sun8i-ce: fix comparison of integer expressions of different signedness

2020-09-18 Thread Corentin Labbe
This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

[PATCH v7 02/17] crypto: sun8i-ss: Add support for the PRNG

2020-09-18 Thread Corentin Labbe
This patch had support for the PRNG present in the SS. The output was tested with rngtest without any failure. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 + drivers/crypto/allwinner/sun8i-ss/Makefile| 1 + .../crypto/allwinner/sun8i-ss/sun8i-ss

[PATCH v7 15/17] crypto: sun8i-ce: Add support for the TRNG

2020-09-18 Thread Corentin Labbe
-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 ++ drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 18 +++ .../crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 127 ++ drivers/crypto/allwinner/sun8i-ce

[PATCH v7 06/17] crypto: sun8i-ss: better debug printing

2020-09-18 Thread Corentin Labbe
This patch reworks the way debug info are printed. Instead of printing raw numbers, let's add a bit of context. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/allwinner

[PATCH v7 03/17] crypto: sun8i-ss: support hash algorithms

2020-09-18 Thread Corentin Labbe
The SS support multiples hash algorithms, this patch adds support for MD5, SHA1, SHA224 and SHA256. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 9 + drivers/crypto/allwinner/sun8i-ss/Makefile| 1 + .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 155

[PATCH v7 04/17] crypto: sun8i-ss: fix a trivial typo

2020-09-18 Thread Corentin Labbe
This fixes a trivial typo. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h index 377ea7acb54d

[PATCH v7 14/17] crypto: sun8i-ce: Add support for the PRNG

2020-09-18 Thread Corentin Labbe
This patch had support for the PRNG present in the CE. The output was tested with rngtest without any failure. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 + drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-ce

[PATCH v7 07/17] crypto: sun8i-ce: handle endianness of t_common_ctl

2020-09-18 Thread Corentin Labbe
t;) Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c index 138759dc8190..08ed1ca12

[PATCH v7 11/17] crypto: sun8i-ce: rename has_t_dlen_in_bytes to cipher_t_dlen_in_bytes

2020-09-18 Thread Corentin Labbe
Hash algorithms will need also a spetial t_dlen handling, but since the meaning will be different, rename the current flag to specify it apply only on ciphers algorithms. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 2 +- drivers/crypto/allwinner/sun8i

[PATCH v7 17/17] crypto: sun8i-ss: fix comparison of integer expressions of different signedness

2020-09-18 Thread Corentin Labbe
This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

[PATCH v7 00/17] crypto: allwinner: add xRNG and hashes

2020-09-18 Thread Corentin Labbe
since v6: - fix sparse error in sun8i-ce-cipher.c Corentin Labbe (17): crypto: sun8i-ss: Add SS_START define crypto: sun8i-ss: Add support for the PRNG crypto: sun8i-ss: support hash algorithms crypto: sun8i-ss: fix a trivial typo crypto: sun8i-ss: Add more comment on some structures

[PATCH v7 05/17] crypto: sun8i-ss: Add more comment on some structures

2020-09-18 Thread Corentin Labbe
This patch adds some comment on structures used by sun8i-ss. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h index

[PATCH] crypto: procfs: Removing some useless only space lines

2020-09-17 Thread Corentin Labbe
Some line got only spaces, remove them Signed-off-by: Corentin Labbe --- crypto/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/proc.c b/crypto/proc.c index 08d8c2bc7e62..12fccb9c5205 100644 --- a/crypto/proc.c +++ b/crypto/proc.c @@ -36,7 +36,7 @@ static

[PATCH 2/7] crypto: sun4i-ss: checking sg length is not sufficient

2020-09-17 Thread Corentin Labbe
rypto accelerator") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-ciph

[PATCH 3/7] crypto: sun4i-ss: IV register does not work on A10 and A13

2020-09-17 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- .../allwinner/sun4i-ss/sun4i-ss-cipher.c | 34 +++ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c index 2614640231dc..c6

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