[PATCH 2/6] scripts: get_feat.pl: improve matrix output

2020-11-30 Thread Mauro Carvalho Chehab
Instead of producing a too wide table, let's split it per subsystem, and use a better notation in order to make easier for the reader to identify how a feature is supported on multiple architectures. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_feat.pl | 113

[PATCH 0/6] Add documentation for Documentation/features at the built docs

2020-11-30 Thread Mauro Carvalho Chehab
, a good thing to do. Regards, Mauro Mauro Carvalho Chehab (6): scripts: get_feat.pl: add a script to handle Documentation/features scripts: get_feat.pl: improve matrix output scripts: get_feat.pl: use its implementation for list-arch.sh sphinx: kernel_feat.py: add a script to parse feature

[PATCH 5/6] docs: admin-guide: add a features list

2020-11-30 Thread Mauro Carvalho Chehab
Add a feature list matrix at the admin-guide. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/features.rst | 3 +++ Documentation/admin-guide/index.rst| 1 + Documentation/conf.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644

[PATCH 1/6] scripts: get_feat.pl: add a script to handle Documentation/features

2020-11-30 Thread Mauro Carvalho Chehab
features a given architecture supports; 3) Output a matrix with features x architectures. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_feat.pl | 474 1 file changed, 474 insertions(+) create mode 100755 scripts/get_feat.pl diff --git a/scripts

[PATCH 3/6] scripts: get_feat.pl: use its implementation for list-arch.sh

2020-11-30 Thread Mauro Carvalho Chehab
changes the features list order to be case-insensitive, in order to better match the output of the existing script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/features/list-arch.sh | 17 +-- scripts/get_feat.pl | 77 - 2 files changed, 66

Re: [PATCH] media: gp8psk: initialize stats at power control logic

2020-11-30 Thread Mauro Carvalho Chehab
Em Fri, 27 Nov 2020 09:20:53 -0500 Willem de Bruijn escreveu: > On Fri, Nov 27, 2020 at 1:46 AM Mauro Carvalho Chehab > wrote: > > > > As reported on: > > > > https://lore.kernel.org/linux-media/20190627222020.45909-1-willemdebruijn.ker...@gmail.co

[GIT PULL for v5.10-rc6] vidtv driver fixes

2020-11-27 Thread Mauro Carvalho Chehab
) media: vidtv: psi: Implement an Event Information Table (EIT) media: vidtv: psi: extract descriptor chaining code into a helper media: vidtv: Move s302m specific fields into encoder context media: vidtv: psi: fix missing assignments in while loops Mauro Carvalho Chehab (30

Re: [PATCH] media: venus: fix possible buffer overlow casued bad DMA value in venus_sfr_print()

2020-11-27 Thread Mauro Carvalho Chehab
Em Sat, 30 May 2020 10:41:17 +0800 Jia-Ju Bai escreveu: > The value hdev->sfr.kva is stored in DMA memory, and it is assigned to > sfr, so sfr->buf_size can be modified at anytime by malicious hardware. > In this case, a buffer overflow may happen when the code > "sfr->data[sfr->buf_size - 1]"

[PATCH] media: gp8psk: initialize stats at power control logic

2020-11-26 Thread Mauro Carvalho Chehab
; - if firmware has loaded; - if the LNBf was powered on. Using status = 0 seems to ensure that everything will be properly powered up. So, instead of the proposed solution, let's just set status = 0. Reported-by: syzbot Reported-by: Willem de Bruijn Signed-off-by: Mauro Carvalho Chehab

[PATCH 2/2] media: rc: improve LIRC documentation

2020-11-26 Thread Mauro Carvalho Chehab
Add documentation for enum rc_proto and struct lirc_scancode at the generated docs. Signed-off-by: Mauro Carvalho Chehab --- .../userspace-api/media/rc/lirc-dev-intro.rst | 11 +-- include/uapi/linux/lirc.h | 2 +- 2 files changed, 10 insertions

[PATCH 1/2] media: docs: uAPI: rc: dual-license the docs with GPL v2

2020-11-26 Thread Mauro Carvalho Chehab
Make the license for those documents also compatible with GPLv2. Signed-off-by: Mauro Carvalho Chehab --- Documentation/userspace-api/media/rc/keytable.c.rst | 2 +- Documentation/userspace-api/media/rc/lirc-dev-intro.rst | 2 +- Documentation/userspace-api/media/rc/lirc

[PATCH 0/2] Improve LIRC documentation

2020-11-26 Thread Mauro Carvalho Chehab
Hi Sean, Those two patches improve LIRC uAPI docs by adding the structs documented at lirc.h to the output of Documentation/output/userspace-api/media/rc/lirc-dev-intro.html Please review. Mauro Carvalho Chehab (2): media: docs: uAPI: rc: dual-license the docs with GPL v2 media: rc

[GIT PULL for v5.10-rc6] media fixes

2020-11-25 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.10-2 For: - a rand Kconfig fixup for mtk-vcodec; - a fix at h264 handling at cedrus codec driver; - some warning fixes when config PM is not enabled at marvell-ccic; - two

[PATCH 11/31] media: vidtv: pre-initialize mux arrays

2020-11-24 Thread Mauro Carvalho Chehab
Instead of first zeroing all fields at the mux structs and then filling, do some initialization for the const data when they're created. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 46 +++- 1 file changed, 26 insertions(+), 20

[PATCH 14/31] media: vidtv: fix the network ID range

2020-11-24 Thread Mauro Carvalho Chehab
, let's change it, just to make easier to check for the new code while reading it with DVB tools like dvbinspector. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 3 ++- drivers/media/test-drivers/vidtv/vidtv_common.h | 1 - 2 files changed, 2 insertions

[PATCH 06/31] media: vidtv: fix some notes at the tone generator

2020-11-24 Thread Mauro Carvalho Chehab
} $sharp = 0; $note = ""; $octave = ""; }; }; print "\n"; Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_s302m.c| 38 ++- 1 file changed, 20 insertions(+), 18 deletions(

[PATCH 07/31] media: vidtv: avoid data copy when initializing the multiplexer

2020-11-24 Thread Mauro Carvalho Chehab
Initialize the fields of the arguments directly when declaring it, and pass the args as a pointer, instead of copying them. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 28 ++- drivers/media/test-drivers/vidtv/vidtv_mux.c | 28

[PATCH 03/31] media: vidtv: don't use recursive functions

2020-11-24 Thread Mauro Carvalho Chehab
The Linux stack is too short. So, using recursive functions is a very bad idea. Convert those into non-recursive ones. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 75 +++- 1 file changed, 41 insertions(+), 34 deletions(-) diff --git

[PATCH 05/31] media: vidtv: fix the tone generator logic

2020-11-24 Thread Mauro Carvalho Chehab
The tone generator logic were repeating the song after the first silent. There's also a wrong logic at the note offset calculus, which may create some noise. Fix it. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_s302m.c | 14 -- drivers/media/test

[PATCH 13/31] media: vidtv: improve EIT data

2020-11-24 Thread Mauro Carvalho Chehab
Place some text at EIT data, and use ISO 8859-15 encoding for the German letter "ü" (u mit umlat) letter. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/te

[PATCH 15/31] media: vidtv: properly fill EIT service_id

2020-11-24 Thread Mauro Carvalho Chehab
The EIT header ID field should not contain the network ID, but, instead, the service_id of the program described at EIT. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_channel.c | 3 ++- drivers/media/test-drivers/vidtv/vidtv_psi.c | 5 +++-- drivers/media

[PATCH 16/31] media: vidtv: add a PID entry for the NIT table

2020-11-24 Thread Mauro Carvalho Chehab
On normal TS streams, the NIT table has its own entry at PAT, but not at PMT. While here, properly handle alloc problems when creating PMT entries. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_channel.c | 8 ++-- drivers/media/test-drivers/vidtv/vidtv_mux.c

[PATCH 17/31] media: vidtv: fix service type

2020-11-24 Thread Mauro Carvalho Chehab
As the service currently broadcasts just audio, change the service type to reflect that. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_channel.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.h | 1 + 2 files changed, 2 insertions(+), 1 deletion

[PATCH 21/31] media: vidtv: simplify the crc writing logic

2020-11-24 Thread Mauro Carvalho Chehab
Cleanup the table_section_crc32_write_into() function by initializing struct psi_write_args only once and by passing the args as a pointer. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 39 +--- 1 file changed, 18 insertions(+), 21

[PATCH 04/31] media: vidtv: fix the name of the program

2020-11-24 Thread Mauro Carvalho Chehab
While the original plan was to use the first movement of the 5th Symphony, it was opted to use the Für Elise song, instead. Fix it. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_channel.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_s302m.c | 10

[PATCH 18/31] media: vidtv: fix service_id at SDT table

2020-11-24 Thread Mauro Carvalho Chehab
The service_id there should be equal to the one used on other tables, otherwise, EIT entries won't be valid. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_channel.c | 3 ++- drivers/media/test-drivers/vidtv/vidtv_psi.c | 5 +++-- drivers/media/test-drivers

[PATCH 19/31] media: vidtv: add date to the current event

2020-11-24 Thread Mauro Carvalho Chehab
The current event is using an undefined date. Instead, it should be the timestamp when the EIT table was generated. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 44 ++-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git

[PATCH 23/31] media: vidtv: cleanup PSI table header function

2020-11-24 Thread Mauro Carvalho Chehab
- Pass struct header_write_args as a pointer, instead of passing as a var; - Initialize the psi_args struct only once. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 42 +--- 1 file changed, 19 insertions(+), 23 deletions(-) diff

[PATCH 22/31] media: vidtv: cleanup PSI descriptor write function

2020-11-24 Thread Mauro Carvalho Chehab
This function initializes the psi_args twice, and receives a struct, instead of a pointer to a struct. Clean it up. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 104 +-- 1 file changed, 51 insertions(+), 53 deletions(-) diff --git

[PATCH 31/31] media: vidtv: cleanup a few coding style issues

2020-11-24 Thread Mauro Carvalho Chehab
There are a few warnings produced by checkpatch.pl on strict mode. They're all trivial. Address them. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 1 - drivers/media/test-drivers/vidtv/vidtv_channel.c | 2 -- drivers/media/test-drivers/vidtv

[PATCH 24/31] media: vidtv: cleanup PAT write function

2020-11-24 Thread Mauro Carvalho Chehab
Avoid initializing the structs multiple times and pass the PAT struct as a pointer, instead of a var. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 57 ++-- drivers/media/test-drivers

[PATCH 25/31] media: vidtv: cleanup PMT write table function

2020-11-24 Thread Mauro Carvalho Chehab
- Pass struct vidtv_psi_pmt_write_args as a pointer; - Avoid initializing structs multiple times. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 91 ++-- drivers/media/test-drivers

[PATCH 08/31] media: vidtv: avoid copying data for PES structs

2020-11-24 Thread Mauro Carvalho Chehab
-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 30 ++-- drivers/media/test-drivers/vidtv/vidtv_pes.c | 178 +-- drivers/media/test-drivers/vidtv/vidtv_pes.h | 2 +- 3 files changed, 102 insertions(+), 108 deletions(-) diff --git a/drivers/media

[PATCH 26/31] media: vidtv: simplify SDT write function

2020-11-24 Thread Mauro Carvalho Chehab
- pass struct vidtv_psi_sdt_write_args as a pointer; - avoid initializing struct fields multiple times. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 85 ++-- drivers/media/test

[PATCH 02/31] media: vidtv: add error checks

2020-11-24 Thread Mauro Carvalho Chehab
, start_streaming will return an error that userspace can detect: ERRORDMX_SET_PES_FILTER failed (PID = 0x2000): 12 Cannot allocate memory and the driver doesn't crash. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 2 + .../media/test-drivers/vidtv

[PATCH 29/31] media: vidtv.rst: update vidtv documentation

2020-11-24 Thread Mauro Carvalho Chehab
Update the vidtv documentation with the relevant changes after the last patches. Signed-off-by: Mauro Carvalho Chehab --- .../driver-api/media/drivers/vidtv.rst| 85 --- 1 file changed, 72 insertions(+), 13 deletions(-) diff --git a/Documentation/driver-api/media

[PATCH 28/31] media: vidtv: simplify EIT write function

2020-11-24 Thread Mauro Carvalho Chehab
- pass struct vidtv_psi_eit_write_args as a pointer; - avoid initializing struct fields multiple times. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 86 ++-- drivers/media/test

[PATCH 20/31] media: vidtv: simplify PSI write function

2020-11-24 Thread Mauro Carvalho Chehab
-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 128 +-- 1 file changed, 62 insertions(+), 66 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_psi.c b/drivers/media/test-drivers/vidtv/vidtv_psi.c index 92fdf1149f0d..36f1c56d9e24 100644

[PATCH 09/31] media: vidtv: do some cleanups at the driver

2020-11-24 Thread Mauro Carvalho Chehab
Do some cleanups at the coding style of the driver: - remove "inline" declarations; - use reverse xmas-tree for local var declarations; - Adjust some indent to avoid breaking 80-cols; - Cleanup some comments. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- .../

[PATCH 30/31] media: vidtv.rst: add kernel-doc markups

2020-11-24 Thread Mauro Carvalho Chehab
Fix existing issues at the kernel-doc markups and add them to the vidtv.rst file. Signed-off-by: Mauro Carvalho Chehab --- .../driver-api/media/drivers/vidtv.rst| 27 + .../media/test-drivers/vidtv/vidtv_bridge.h | 2 +- .../media/test-drivers/vidtv/vidtv_channel.h | 1

[PATCH 01/31] media: vidtv: reorganize includes

2020-11-24 Thread Mauro Carvalho Chehab
- Place the includes on alphabetical order; - get rid of asm/byteorder.h; - add bug.h at vidtv_s302m.c, as it is needed by inux/fixp-arith.h Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 8 +++ .../media/test-drivers/vidtv/vidtv_bridge.h | 2

[PATCH 27/31] media: vidtv: simplify NIT write function

2020-11-24 Thread Mauro Carvalho Chehab
- pass struct vidtv_psi_nit_write_args as a pointer; - avoid initializing struct fields multiple times. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_psi.c | 91 ++-- drivers/media/test

[PATCH 12/31] media: vidtv: cleanup null packet initialization logic

2020-11-24 Thread Mauro Carvalho Chehab
Initialize the destination buffer/size and the initial offset when creating the local var. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/media/test-drivers/vidtv

[PATCH 10/31] media: vidtv: remove some unused functions

2020-11-24 Thread Mauro Carvalho Chehab
Right now, there's no need to access the length of some tables. So, drop the unused functions. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 35 1 file changed, 35 deletions(-) diff --git a/drivers/media/test-drivers/vidtv

[PATCH 00/31] vidtv: address several issues at the driver

2020-11-24 Thread Mauro Carvalho Chehab
appear on Kernel 5.10, my plan is to merge those, together with Daniel's patches for Kernel 5.10. Regards, Mauro Mauro Carvalho Chehab (31): media: vidtv: reorganize includes media: vidtv: add error checks media: vidtv: don't use recursive functions media: vidtv: fix the name

Re: [PATCH 097/141] media: saa7134: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Mauro Carvalho Chehab > --- > drivers/media/pci/saa7134/saa7134-tvaudio.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/pci/saa7134/saa7134-tvaudio.c > b/drivers/media/pci/

Re: [PATCH 096/141] media: rcar_jpu: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Mauro Carvalho Chehab > --- > drivers/media/platform/rcar_jpu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/rcar_jpu.c > b/drivers/media/platform/rcar_j

Re: [PATCH 014/141] media: usb: dvb-usb-v2: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
e. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Mauro Carvalho Chehab > --- > drivers/media/usb/dvb-usb-v2/af9015.c | 1 + > drivers/media/usb/dvb-usb-v2/lmedm04.c | 1 + > 2 files changed, 2 insertions(+) > > diff --gi

Re: [PATCH 095/141] media: dvb_frontend: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Mauro Carvalho Chehab > --- > drivers/media/dvb-core/dvb_frontend.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/dvb-core/dvb_frontend.c > b/drivers/media/dvb-core/dvb

Re: [PATCH 094/141] media: atomisp: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Mauro Carvalho Chehab > --- > drivers/staging/media/atomisp/pci/runtime/isys/src/rx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/media/atomisp/pci/runtime/isys/src/

Re: [PATCH 013/141] media: dvb-frontends: Fix fall-through warnings for Clang

2020-11-22 Thread Mauro Carvalho Chehab
ext case. Reviewed-by: Mauro Carvalho Chehab > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/media/dvb-frontends/cx24120.c | 1 + > drivers/media/dvb-frontends/dib0090.c | 2 ++ > drivers/media/dvb-frontends/drxk_har

Re: [PATCH 4/8] regulator: hi6421v600-regulator: move it from staging

2020-11-17 Thread Mauro Carvalho Chehab
Em Mon, 16 Nov 2020 18:38:33 + Mark Brown escreveu: > On Mon, Nov 16, 2020 at 01:59:30PM +0100, Mauro Carvalho Chehab wrote: > > > This driver is ready for mainstream. Move it out of staging. > > There's quite a few issues here, to be honest I'm disappointed some of >

Re: [PATCH 4/8] regulator: hi6421v600-regulator: move it from staging

2020-11-17 Thread Mauro Carvalho Chehab
Hi Mark, Em Mon, 16 Nov 2020 18:38:33 + Mark Brown escreveu: > > This driver is ready for mainstream. Move it out of staging. > > There's quite a few issues here, to be honest I'm disappointed some of > them weren't caught during staging review, this needs fairly substantial > work and

Re: [PATCH 1/8] phy: phy-hi3670-usb3: move driver from staging into phy

2020-11-16 Thread Mauro Carvalho Chehab
Em Mon, 16 Nov 2020 09:31:06 -0600 Rob Herring escreveu: > On Mon, Nov 16, 2020 at 01:59:27PM +0100, Mauro Carvalho Chehab wrote: > > The phy USB3 driver for Hisilicon 970 (hi3670) is ready > > for mainstream. Mode it from staging into the main driver's > > s/Mode/Move/

Re: [PATCH v2] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-11-16 Thread Mauro Carvalho Chehab
Em Tue, 17 Nov 2020 02:12:01 + Nícolas F. R. A. Prado escreveu: > Sphinx 3.1 introduced namespaces for C cross-references. With this, > each C domain type/function declaration is put inside the namespace that > was active at the time of its declaration. > > Add support for automatic

Re: [PATCH v4 10/27] video: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Em Mon, 16 Nov 2020 18:24:04 +0100 Daniel Vetter escreveu: > On Mon, Nov 16, 2020 at 05:38:04PM +0100, Mauro Carvalho Chehab wrote: > > Em Mon, 16 Nov 2020 16:36:06 +0100 > > Daniel Vetter escreveu: > > > > > On Mon, Nov 16, 2020 at 11:18:06AM +010

Re: [PATCH v4 10/27] video: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Em Mon, 16 Nov 2020 16:36:06 +0100 Daniel Vetter escreveu: > On Mon, Nov 16, 2020 at 11:18:06AM +0100, Mauro Carvalho Chehab wrote: > > Some identifiers have different names between their prototypes > > and the kernel-doc markup. > > > > Signed-off-by: Mauro Ca

[tip: irq/core] genirq: Fix kernel-doc markups

2020-11-16 Thread tip-bot2 for Mauro Carvalho Chehab
The following commit has been merged into the irq/core branch of tip: Commit-ID: 8c67d247dcad67fbdd07c8bab9818d0b8d9240bf Gitweb: https://git.kernel.org/tip/8c67d247dcad67fbdd07c8bab9818d0b8d9240bf Author:Mauro Carvalho Chehab AuthorDate:Mon, 16 Nov 2020 11:18:15 +01:00

[tip: timers/core] hrtimer: Fix kernel-doc markups

2020-11-16 Thread tip-bot2 for Mauro Carvalho Chehab
The following commit has been merged into the timers/core branch of tip: Commit-ID: 66981c37b3199d293c58f84cf2366e86a06e1a3d Gitweb: https://git.kernel.org/tip/66981c37b3199d293c58f84cf2366e86a06e1a3d Author:Mauro Carvalho Chehab AuthorDate:Mon, 16 Nov 2020 11:18:14 +01

[PATCH 4/8] regulator: hi6421v600-regulator: move it from staging

2020-11-16 Thread Mauro Carvalho Chehab
This driver is ready for mainstream. Move it out of staging. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 7 +- drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile| 1 + drivers/regulator

[PATCH 5/8] arm64: dts: hisilicon: hi3670.dtsi: add I2C settings

2020-11-16 Thread Mauro Carvalho Chehab
The I2C buses are not declared at the device tree. As this will be needed by further patches, add them, keeping all in disabled state. Per-board settings can override it. Signed-off-by: Mauro Carvalho Chehab --- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 71 +++ 1 file

[PATCH 8/8] dts: hisilicon: add support for the PMIC found on Hikey 970

2020-11-16 Thread Mauro Carvalho Chehab
Add a device tree for the HiSilicon 6421v600 SPMI PMIC, used on HiKey970 board. As we now have support for it, change the fixed regulators used by the SD I/O to use the proper LDO supplies. Signed-off-by: Mauro Carvalho Chehab --- .../boot/dts/hisilicon/hi3670-hikey970.dts| 22

[PATCH 0/8] Move Hikey 970 USB support out of staging and add DT

2020-11-16 Thread Mauro Carvalho Chehab
This patch series finish addressing support for Hikey 970 USB. It moves the power management and USB3 drivers out of staging, adding the device tree changes required for USB3 to work on Hikey 970. Mauro Carvalho Chehab (8): phy: phy-hi3670-usb3: move driver from staging into phy spmi: hi6421

[PATCH 2/8] spmi: hi6421-spmi-pmic: move driver from staging

2020-11-16 Thread Mauro Carvalho Chehab
The Hisilicon 6421v600 SPMI driver is ready for mainstream. So, move it from staging. Signed-off-by: Mauro Carvalho Chehab --- .../spmi/hisilicon,hisi-spmi-controller.yaml | 62 +++ MAINTAINERS | 7 + drivers/spmi/Kconfig | 9

[PATCH 7/8] dts: hisilicon: add support for USB3 on Hikey 970

2020-11-16 Thread Mauro Carvalho Chehab
Add the USB3 bindings for Kirin 970 phy and Hikey 970 board. Signed-off-by: Mauro Carvalho Chehab --- .../boot/dts/hisilicon/hi3670-hikey970.dts| 102 ++ arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 64 +++ 2 files changed, 166 insertions(+) diff --git a/arch

[PATCH 6/8] arm64: dts: hikey970-pinctrl.dtsi: add missing pinctrl settings

2020-11-16 Thread Mauro Carvalho Chehab
There are several pinctrl settings that are missing at this DT file. Also, the entries are out of order. Add the missing bits, as they'll be required by the DRM driver - and probably by other drivers not upstreamed yet. Reorder the entres, adding the missing bits. Signed-off-by: Mauro Carvalho

[PATCH 3/8] mfd: hi6421-spmi-pmic: move driver from staging

2020-11-16 Thread Mauro Carvalho Chehab
This driver is ready for mainstream. So, move it out of staging. Signed-off-by: Mauro Carvalho Chehab --- .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 159 MAINTAINERS | 7 + drivers/mfd/Kconfig | 15 + drivers/mfd

[PATCH 1/8] phy: phy-hi3670-usb3: move driver from staging into phy

2020-11-16 Thread Mauro Carvalho Chehab
The phy USB3 driver for Hisilicon 970 (hi3670) is ready for mainstream. Mode it from staging into the main driver's phy/ directory. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/phy/phy-hi3670-usb3.yaml | 72 ++ MAINTAINERS | 9 +- drivers

[PATCH v4 14/27] completion: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Kernel-doc only supports having the comment just before the identifier. The markup for init_completion is actually for __init_completion. Signed-off-by: Mauro Carvalho Chehab --- Thats said, IMHO, it would make sense to simply rename __init_completion() to init_completion() and drop

[PATCH v4 26/27] selftests: kselftest_harness.h: partially fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
this file cause the parser to completely miss the identifier name of each function. This prevents improving the script to do some needed validation tests. Address this part. Yet, furter changes are needed in order for it to fully follow the specs. Signed-off-by: Mauro Carvalho Chehab --- tools/testing

[PATCH v4 25/27] mm: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
minor English syntax issues, as suggested by Matthew: will used -> will be used similar with -> similar to Suggested-by: Mattew Wilcox # English fixes Signed-off-by: Mauro Carvalho Chehab --- mm/gup.c| 24 +--- mm/page_alloc.

[PATCH v4 11/27] fs: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Two markups are at the wrong place. Kernel-doc only support having the comment just before the identifier. Also, some identifiers have different names between their prototypes and the kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- fs/dcache.c | 72

[PATCH v4 09/27] rapidio: fix kernel-doc a markup

2020-11-16 Thread Mauro Carvalho Chehab
Probaly this was due to a cut and paste issue. Signed-off-by: Mauro Carvalho Chehab --- drivers/rapidio/rio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 606986c5ba2c..16b59b472b3d 100644 --- a/drivers/rapidio/rio.c

[PATCH v4 10/27] video: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- drivers/video/fbdev/core/fbcmap.c | 2 +- drivers/video/hdmi.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video

[PATCH v4 06/27] HSI: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
A function has a different name between their prototype and its kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- drivers/hsi/hsi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hsi/hsi_core.c b/drivers/hsi/hsi_core.c index 47f0208aa7c3..c3fb5beb846e

[PATCH v4 07/27] IB: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some functions have different names between their prototypes and the kernel-doc markup. Others need to be fixed, as kernel-doc markups should use this format: identifier - description Signed-off-by: Mauro Carvalho Chehab --- drivers/infiniband/core/cm.c | 5

[PATCH v4 15/27] firmware: stratix10-svc: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
There are some common comments marked, instead, with kernel-doc notation, which won't work. While here, rename an identifier, in order to match the function prototype below kernel-doc markup. Acked-by: Richard Gong Signed-off-by: Mauro Carvalho Chehab --- include/linux/firmware/intel

[PATCH v4 18/27] hrtimer: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
the function name. The hrtimer_is_queued prototype has a typo: it is using '=' character instead of '-' to split: identifier - description as required by kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- include/linux/hrtimer.h | 6 +- kernel/time/hrtimer.c | 2 +- 2 files

[PATCH v4 02/27] net: datagram: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- net/core/datagram.c | 2 +- net/core/dev.c| 4 ++-- net/core/skbuff.c | 2 +- net/ethernet/eth.c| 6 +++--- net/sunrpc/rpc_pipe.c | 3 ++- 5 files

[PATCH v4 23/27] resource: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Kernel-doc markups should use this format: identifier - description While here, fix a kernel-doc tag that was using, instead, a normal comment block. Signed-off-by: Mauro Carvalho Chehab --- kernel/resource.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions

[PATCH v4 16/27] connector: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
A function has a different name between their prototype and its kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- include/linux/connector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/connector.h b/include/linux/connector.h index cb732643471b

[PATCH v4 22/27] w1: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
A function has a different name between their prototype and its kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- include/linux/w1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/w1.h b/include/linux/w1.h index 949d3b10e531..9a2a0ef39018 100644

[PATCH v4 20/27] list: fix a typo at the kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
hlist_add_behing -> hlist_add_behind Signed-off-by: Mauro Carvalho Chehab --- include/linux/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/list.h b/include/linux/list.h index 89bdc92e75c3..f2af4b4aa4e9 100644 --- a/include/linux/list.h +++ b/incl

[PATCH v4 19/27] genirq: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- kernel/irq/chip.c | 2 +- kernel/irq/generic-chip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq

[PATCH v4 00/27]Fix several bad kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
. @maintainers: feel free to pick the patches and apply them directly on your trees, as all patches on this series are independent from the other ones. -- v4: - Patches got rebased and got some acks. Mauro Carvalho Chehab (27): net: phy: fix kernel-doc markups net: datagram: fix some kernel

[PATCH v4 24/27] shed: fix kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
-by: Mauro Carvalho Chehab --- kernel/sched/core.c | 16 kernel/sched/fair.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 02076e6d3792..9d41378ae8f3 100644 --- a/kernel/sched/core.c +++ b/kernel/sched

[PATCH v4 08/27] parport: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
The kernel-doc markup inside share.c is actually for __parport_register_driver. The actual goal seems to be to document parport_register_driver(). So, fix the existing markup and add a new one. Signed-off-by: Mauro Carvalho Chehab --- drivers/parport/share.c | 2 +- include/linux/parport.h

[PATCH v4 03/27] net: core: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. In the specific case of netif_subqueue_stopped(), keep the current markup for __netif_subqueue_stopped(), adding a new one for netif_subqueue_stopped(). Signed-off-by: Mauro Carvalho Chehab --- include

[PATCH v4 13/27] pstore/zone: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
The documented struct is psz_head and not psz_buffer. Reviewed-by: Kees Cook Signed-off-by: Mauro Carvalho Chehab --- fs/pstore/zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index 3ce89216670c..46a1610c06fa 100644 --- a/fs/pstore

[PATCH v4 01/27] net: phy: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some functions have different names between their prototypes and the kernel-doc markup. Reviewed-by: Andrew Lunn Signed-off-by: Mauro Carvalho Chehab --- drivers/net/phy/mdio_bus.c | 2 +- drivers/net/phy/phy-c45.c| 2 +- drivers/net/phy/phy.c| 2 +- drivers/net/phy/phy_device.c

[PATCH v4 04/27] s390: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
fix one typo: ccw driver -> ccw_driver and one function rename. Signed-off-by: Mauro Carvalho Chehab --- arch/s390/include/asm/ccwdev.h | 2 +- arch/s390/include/asm/cio.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/ccwdev.h b/a

[PATCH v4 05/27] drm: fix some kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. Others need to be fixed, as kernel-doc markups should use this format: identifier - description Signed-off-by: Mauro Carvalho Chehab --- drivers/gpu/drm/drm_atomic_state_helper.c | 2

[PATCH v4 17/27] lib/crc7: fix a kernel-doc markup

2020-11-16 Thread Mauro Carvalho Chehab
A function has a different name between their prototype and its kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- lib/crc7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crc7.c b/lib/crc7.c index 6a848d73e804..3848e313b722 100644 --- a/lib/crc7.c +++ b/lib

[PATCH v4 12/27] jbd2: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
-off-by: Mauro Carvalho Chehab --- fs/jbd2/journal.c | 34 ++ fs/jbd2/transaction.c | 31 --- include/linux/jbd2.h | 2 +- 3 files changed, 35 insertions(+), 32 deletions(-) diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index

[PATCH v4 21/27] memblock: fix kernel-doc markups

2020-11-16 Thread Mauro Carvalho Chehab
Some identifiers have different names between their prototypes and the kernel-doc markup. Acked-by: Mike Rapoport Signed-off-by: Mauro Carvalho Chehab --- include/linux/memblock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/memblock.h b/include/linux

[PATCH v4 27/27] scripts: kernel-doc: validate kernel-doc markup with the actual names

2020-11-16 Thread Mauro Carvalho Chehab
documented. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 62 ++ 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 9b6ddeb097e9..919acae23fad 100755 --- a/scripts/kernel-doc +++ b/scri

Duplicated ABI entries - Was: Re: [PATCH v2 20/39] docs: ABI: testing: make the files compatible with ReST output

2020-11-09 Thread Mauro Carvalho Chehab
Hi Jonathan, Em Sun, 8 Nov 2020 16:56:21 + Jonathan Cameron escreveu: > > PS.: the IIO subsystem is the one that currently has more duplicated > > ABI entries: > > $ ./scripts/get_abi.pl validate 2>&1|grep iio > > Warning: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias is defined 2

Re: [PATCH v3 56/56] scrpits: kernel-doc: validate kernel-doc markup with the actual names

2020-11-05 Thread Mauro Carvalho Chehab
Em Thu, 5 Nov 2020 15:00:17 + Matthew Wilcox escreveu: > On Fri, Oct 23, 2020 at 06:33:43PM +0200, Mauro Carvalho Chehab wrote: > > Kernel-doc currently expects that the kernel-doc markup to come > > just before the function/enum/struct/union/typedef prototype. > >

Re: Linux 5.10-rc2 (docs build)

2020-11-02 Thread Mauro Carvalho Chehab
Em Mon, 2 Nov 2020 12:41:53 -0800 Randy Dunlap escreveu: > On 11/2/20 12:35 PM, Mauro Carvalho Chehab wrote: > > Em Mon, 2 Nov 2020 11:23:25 -0800 > > Randy Dunlap escreveu: > > > >> On 11/2/20 8:59 AM, Mauro Carvalho Chehab wrote: > >>> Em Mon, 2

Re: Linux 5.10-rc2 (docs build)

2020-11-02 Thread Mauro Carvalho Chehab
Em Mon, 2 Nov 2020 11:23:25 -0800 Randy Dunlap escreveu: > On 11/2/20 8:59 AM, Mauro Carvalho Chehab wrote: > > Em Mon, 2 Nov 2020 08:02:34 -0800 > > Randy Dunlap escreveu: > > > >> On 11/2/20 12:33 AM, Mauro Carvalho Chehab wrote: > >>> Em

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