[PATCH v4 3/8] staging: hikey9xx: phy-hi3670-usb3: fix some issues at the init code

2020-09-17 Thread Mauro Carvalho Chehab
From: Yu Chen There are some problems at the initialization part of this phy. Solve them. Signed-off-by: Yu Chen Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 70 ++ 1 file changed, 32 insertions(+), 38 deletions(-) diff --git a

[PATCH v4 6/8] staging: hikey9xx: phy-hi3670-usb3: fix coding style

2020-09-17 Thread Mauro Carvalho Chehab
Address the issues reported by checkpatch --strict, and add a SPDX tag. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 157 ++--- 1 file changed, 76 insertions(+), 81 deletions(-) diff --git a/drivers/staging/hikey9xx/phy-hi3670-usb3.c b

[PATCH v4 1/8] staging: hikey9xx: add USB physical layer for Kirin 3670

2020-09-17 Thread Mauro Carvalho Chehab
hikey/linux/commit/9d168f580c9977f9c7f48b228b72035e2f6e3eba#diff-93bb70bc97bdd7be752cb6722adf2124 [mchehab: moved to staging and dropped Makefile/Kconfig changes] Signed-off-by: Yu Chen Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c

[PATCH v4 4/8] staging: hikey9xx: phy-hi3670-usb3: use a consistent namespace

2020-09-17 Thread Mauro Carvalho Chehab
Rename hikey970 to hi3670, in order to use a namespace similar to hi3660 driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 98 +++--- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/drivers/staging/hikey9xx/phy-hi3670

[PATCH v4 8/8] staging: hikey9xx: convert phy-kirin970-usb3.txt to yaml

2020-09-17 Thread Mauro Carvalho Chehab
Use the new YAML for this physical layer. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.txt | 25 --- drivers/staging/hikey9xx/phy-hi3670-usb3.yaml | 72 +++ 2 files changed, 72 insertions(+), 25 deletions(-) delete mode 100644 drivers

[PATCH v4 5/8] staging: hikey9xx: phy-hi3670-usb3.txt: use a consistent namespace

2020-09-17 Thread Mauro Carvalho Chehab
While this driver is not used yet, use a more consistent namespace, similar to the PHY layer for Kirin 960 (hi3660). Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH v4 0/8] Add a staging driver for Hikey 970 PHY laywer

2020-09-17 Thread Mauro Carvalho Chehab
B HID driver. I'm working with Felipe and Rob in order to add the quirk on an approach that would be acceptable for both DT and dwc3 maintainers. Due to that, I'm not sending the final patch that adds the the needed dt bindings for this board. Thanks! Mauro Mauro Carvalho Chehab

[PATCH v4 7/8] staging: hikey9xx: phy-hi3670-usb3: change some DT properties

2020-09-17 Thread Mauro Carvalho Chehab
Do some changes at the DT properties in order to make it follow the phy-hi3660-usb3 example and to simplify usb3-phy-tx-vboost-lvl name. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[PATCH v4 2/8] staging: hikey9xx: add build for the Kirin 970 PHY driver

2020-09-17 Thread Mauro Carvalho Chehab
Add the needed bits in order to build the Kirin 970 PHY driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/Kconfig | 11 +++ drivers/staging/hikey9xx/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/drivers/staging/hikey9xx/Kconfig b/drivers

[PATCH 2/2] media: vidtv: remove an impossible condition

2020-09-17 Thread Mauro Carvalho Chehab
31. Incrementing 31 on such data will overflow to zero, as expected. So, just drop the uneeded overflow check. While here, use "foo++" instead of "++foo", as this is a much more common pattern. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_p

[PATCH 1/2] media: vidtv: cleanup the logic which estimates buffer size

2020-09-17 Thread Mauro Carvalho Chehab
There's no need to use u64 over there. In a matter of fact, the div is not even needed, as it is multiplying by 1000 and dividing by 1000. So, simplify the logic. While here, constrain the buffer size to a certain range (between the current value and 10 times it) Signed-off-by: Mauro Car

[PATCH 1/3] docs: kasan.rst: add two missing blank lines

2020-09-17 Thread Mauro Carvalho Chehab
/kasan.rst:303: WARNING: Literal block ends without a blank line; unexpected unindent. Signed-off-by: Mauro Carvalho Chehab --- Documentation/dev-tools/kasan.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index c09c9ca2ff1c

[PATCH 2/3] mm: pagemap.h: fix two kernel-doc markups

2020-09-17 Thread Mauro Carvalho Chehab
Changeset 6c8adf8446a3 ("mm: add find_lock_head") renamed the index parameter, but forgot to update the kernel-doc markups accordingly. Fixes: 6c8adf8446a3 ("mm: add find_lock_head") Signed-off-by: Mauro Carvalho Chehab --- include/linux/pagemap.h | 8 1 file c

[PATCH 0/3] Additional doc warning fixes for issues at next-20200915

2020-09-17 Thread Mauro Carvalho Chehab
l doc warnings upstream, hopefully in time for Kernel 5.10. Mauro Carvalho Chehab (3): docs: kasan.rst: add two missing blank lines mm: pagemap.h: fix two kernel-doc markups docs: bpf: ringbuf.rst: fix a broken cross-reference Documentation/bpf/ringbuf.rst | 2 +- Documentation/dev-

[PATCH 3/3] docs: bpf: ringbuf.rst: fix a broken cross-reference

2020-09-17 Thread Mauro Carvalho Chehab
possible to include this file as a literal include, placing it inside Documentation/bpf. For now, let's take the simplest approach: just drop the "_" markup at the end of the reference. This should solve the warning, and it sounds quite obvious that the file to see is at the Kernel t

[PATCH] media: uAPI: buffer.rst: remove a left-over documentation

2020-09-17 Thread Mauro Carvalho Chehab
The "flat-table" directive is empty; content required. .. flat-table:: :header-rows: 0 :stub-columns: 0 :widths: 3 1 4 Fixes: 129134e5415d ("media: media/v4l2: remove V4L2_FLAG_MEMORY_NON_CONSISTENT flag") Signed

Re: [PATCH 2/2] dt-bindings: document a new quirk for dwc3

2020-09-17 Thread Mauro Carvalho Chehab
Em Tue, 15 Sep 2020 10:38:14 -0600 Rob Herring escreveu: > On Tue, Sep 08, 2020 at 09:20:57AM +0200, Mauro Carvalho Chehab wrote: > > At Hikey 970, setting the SPLIT disable at the General > > User Register 3 is required. > > > > Without that, the URBs generated by t

Re: [PATCH] media: vidtv: fix build on 32bit architectures

2020-09-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Sep 2020 15:05:09 -0300 "Daniel W. S. Almeida" escreveu: > From: Daniel W. S. Almeida > > Fix the following error for builds on 32bit architectures: > > ERROR: modpost: "__udivdi3" > [drivers/media/test-drivers/vidtv/dvb-vidtv-bridge.ko] undefined! > > Which is due to 64bit divisio

Re: linux-next: Tree for Sep 15 (drivers/media/test-drivers/vidtv/)

2020-09-15 Thread Mauro Carvalho Chehab
Hi Randy, Em Tue, 15 Sep 2020 09:33:14 -0700 Randy Dunlap escreveu: > On 9/15/20 12:49 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200914: > > > > The v4l-dvb tree lost its build failure. > > > > media driver build problems on i386: > gcc (SUSE Linux) 7.5.0 > > build#1

[PATCH] media: vidtv: Add a music instead of playing a single tone

2020-09-15 Thread Mauro Carvalho Chehab
Keep playing a single tone is not too nice, and prevents checking some weird things. So, instead, implement a simple tone generator, changing the code to play a public domain song (5th Symphony of Beethoven), using sinusoidal waves. Signed-off-by: Mauro Carvalho Chehab --- .../media/test

[PATCH] media: vidtv: get rid of its own sinusoidal waveform

2020-09-15 Thread Mauro Carvalho Chehab
Instead, use the code from linux/fixp-arith.h. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_s302m.c| 176 +++--- 1 file changed, 31 insertions(+), 145 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_s302m.c b/drivers/media/test

Re: [PATCH RFC 06/11] media: vidtv: get rid of some endiannes nonsense

2020-09-15 Thread Mauro Carvalho Chehab
Hi Daniel, Em Mon, 14 Sep 2020 12:14:38 -0300 "Daniel W. S. Almeida" escreveu: > Hi Mauro, > > > Genmask is always highest order to low order. It doesn't make > > any sense to make it depends on endiannes. > > > > I added these #ifdefs due to this: > > https://lwn.net/Articles/741762/ > >

[PATCH] media: vidtv: add a poor guy's simulation to preBER stats

2020-09-15 Thread Mauro Carvalho Chehab
that would show some noise at the pre-BER part of the demod. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_mux.c | 23 ++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_mux.c b/drivers/media

[PATCH 2/3] media: vidtv: fix DVB-S/S2 tuning logic

2020-09-15 Thread Mauro Carvalho Chehab
. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 35 +++ 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_bridge.c b/drivers/media/test-drivers/vidtv/vidtv_bridge.c index 108e7937e9c1

[PATCH 1/3] media: vidtv: add DiSEqC dummy ops

2020-09-15 Thread Mauro Carvalho Chehab
Those are needed for real applications to work with Satellite systems. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_demod.c| 33 +-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_demod.c

[PATCH 3/3] media: vidtv.rst: update it to better describe the frequencies

2020-09-15 Thread Mauro Carvalho Chehab
The virtual driver has now a minimal set of frequencies for a single transponder to be found by each DVB standard. Document it, and update related information about the simulated LNBf. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/media/drivers/vidtv.rst | 14

[PATCH 0/3] vidtv: fix DVB-S/S2 simulation

2020-09-15 Thread Mauro Carvalho Chehab
Add dummy functions to simulate a DisEqC , and fix the tuning logic, in order to take a LNBf into account. Mauro Carvalho Chehab (3): media: vidtv: add DiSEqC dummy ops media: vidtv: fix DVB-S/S2 tuning logic media: vidtv.rst: update it to better describe the frequencies .../driver-api

Re: xconfig is broken again on Qt5

2020-09-14 Thread Mauro Carvalho Chehab
Em Tue, 15 Sep 2020 00:25:07 +0900 Masahiro Yamada escreveu: > On Sun, Sep 13, 2020 at 10:21 PM Maxim Levitsky wrote: > > > > I hate to say it, but xconfig got broken again. > > > > After commit 68fd110b3e7e2 ("kconfig: qconf: remove redundant help in the > > info view") > > help description di

Re: [PATCH][next] misc: hisi_hikey_usb: fix return of uninitialized ret status variable

2020-09-14 Thread Mauro Carvalho Chehab
unction, remove > it and just return 0 success at the end of the function. > > Addresses-Coverity: ("Uninitialixed scalar variable") > Fixes: d210a0023590 ("misc: hisi_hikey_usb: add support for Hikey 970") > Signed-off-by: Colin Ian King Reviewed-by: Mauro Carval

[PATCH] media: vidtv: don't initialize cnr2qual var

2020-09-14 Thread Mauro Carvalho Chehab
265 | const struct vidtv_demod_cnr_to_qual_s *cnr2qual = NULL; | ^~~~ It turns that the var is not needed at all. So, just drop it. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_demod.c | 5 + 1 file change

[PATCH] media: vidtv: adjust signal strength range

2020-09-14 Thread Mauro Carvalho Chehab
the maximum value to be around 74 dBmV, when there's no frequency shift, which represents a good signal. With that, Kaffeine displays it a lot better. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_demod.c | 12 +--- 1 file changed, 9 insertions(

[PATCH RFC 00/11] Solve some issues and do some improvements at vidtv

2020-09-14 Thread Mauro Carvalho Chehab
logic for MPEG-TS tables are wrong. My plan is to address those along this week. Also, Kaffeine is not properly detecting the audio streams. It will likely need some additional patches for it to properly detect and work with SMPTE 302m audio streams. Mauro Carvalho Chehab (11): media: vidtv: add

[PATCH RFC 07/11] media: vidtv: remove a wrong endiannes check from s302m generator

2020-09-14 Thread Mauro Carvalho Chehab
The code there is already doing the right thing, as it uses value & 0xff, value & 0xff00, which already ensures the expected endiannes. So, it doesn't make any sense to touch the order depending on the CPU endiannes. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-

[PATCH RFC 06/11] media: vidtv: get rid of some endiannes nonsense

2020-09-14 Thread Mauro Carvalho Chehab
Genmask is always highest order to low order. It doesn't make any sense to make it depends on endiannes. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 32 1 file changed, 32 deletions(-) diff --git a/drivers/media/test-dr

[PATCH RFC 05/11] media: vidtv: add an initial channel frequency

2020-09-14 Thread Mauro Carvalho Chehab
Use 474 MHz frequency for DVB-T/DVB-C, as this is the first channel that it is valid on most places for DVB-T. In the case of DVB-S, let's add Astra 19.2E initial frequency at the scan files as the default, e. g. 12.5515 GHz. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-dr

[PATCH RFC 08/11] media: vidtv: properly initialize the internal state struct

2020-09-14 Thread Mauro Carvalho Chehab
Right now, the config data passed from the bridge driver is just ignored. Also, let's initialize the delayed work at probing time. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_demod.c | 10 +- drivers/media/test-drivers/vidtv/vidtv_demod.h | 1

[PATCH RFC 03/11] media: vidtv: fix 32-bit warnings

2020-09-14 Thread Mauro Carvalho Chehab
There are several warnings produced when the driver is built for 32-bit archs. Solve them. Reported-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_common.c | 4 ++-- drivers/media/test-drivers/vidtv/vidtv_pes.c| 12 +++- drivers

[PATCH RFC 01/11] media: vidtv: add modaliases for the bridge driver

2020-09-14 Thread Mauro Carvalho Chehab
As this virtual driver is probed manually, add modaliases for this driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/test-drivers/vidtv/vidtv_bridge.c b/drivers/media/test-drivers

[PATCH RFC 09/11] media: vidtv: add basic support for DVBv5 stats

2020-09-14 Thread Mauro Carvalho Chehab
stats will always return zero. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_demod.c| 185 -- .../media/test-drivers/vidtv/vidtv_tuner.c| 2 +- 2 files changed, 122 insertions(+), 65 deletions(-) diff --git a/drivers/media/test-drivers/

[PATCH RFC 02/11] media: vidtv: prefer using dev_foo() instead of pr_foo()

2020-09-14 Thread Mauro Carvalho Chehab
It is better to use the higher level dev_foo() than pr_foo() for printks. Change them at vidtv at the more trivial places. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 19 +++ .../media/test-drivers/vidtv/vidtv_channel.c | 23

[PATCH RFC 04/11] media: vidtv: fix frequency tuning logic

2020-09-14 Thread Mauro Carvalho Chehab
will also report a strong signal, even if not tuned; 4) the logic is not excluding non-set frequencies. Fix those issues. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_tuner.c| 22 ++- 1 file changed, 17 insertions(+), 5 deletions(-) diff --

[PATCH RFC 11/11] media: vidtv: increment byte and block counters

2020-09-14 Thread Mauro Carvalho Chehab
Add support for incrementing DVBv5 stats for block counters and post/pre BER byte counts. For now, the errors won't be incremented yet. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 2 +- drivers/media/test-drivers/vidtv/vidtv_bridge.h

[PATCH RFC 10/11] media: vidtv: get rid of the work queue

2020-09-14 Thread Mauro Carvalho Chehab
The dvb_frontend will already call status periodically, when a channel is tuned. So, no need to have a work queue for such purpose. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_demod.c| 77 ++- .../media/test-drivers/vidtv/vidtv_demod.h| 3

[PATCH 1/2] media: vidtv: fix frequency tuning logic

2020-09-12 Thread Mauro Carvalho Chehab
will also report a strong signal, even if not tuned; 4) the logic is not excluding non-set frequencies. Fix those issues. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_tuner.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --

[PATCH 2/2] media: vidtv: add an initial channel frequency

2020-09-12 Thread Mauro Carvalho Chehab
Use 474 MHz frequency for DVB-T/DVB-C, as this is the first channel that it is valid on most places for DVB-T. In the case of DVB-S, let's add Astra 19.2E initial frequency at the scan files as the default, e. g. 12.5515 GHz. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-dr

Re: [v10 0/4] media: vidtv: Implement a virtual DVB driver

2020-09-12 Thread Mauro Carvalho Chehab
Em Sat, 12 Sep 2020 11:49:01 -0300 "Daniel W. S. Almeida" escreveu: > Hi Hans and Mauro & all > > > >Why the dvb_ prefix? All virtual drivers just start with 'vi'. > > > >And wouldn't it make more sense to call dvb_vidtv_bridge.ko just vidtv.ko? > >Just like the other virtual media drivers? >

[PATCH v2] media: vidtv: fix 32-bit warnings

2020-09-12 Thread Mauro Carvalho Chehab
There are several warnings produced when the driver is built for 32-bit archs. Solve them. Reported-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_common.c | 4 ++-- drivers/media/test-drivers/vidtv/vidtv_pes.c| 12 ++-- drivers

[PATCH] media: vidtv: fix 32-bit warnings

2020-09-12 Thread Mauro Carvalho Chehab
There are several warnings produced when the driver is built for 32-bit archs. Solve them. Reported-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_common.c | 4 ++-- drivers/media/test-drivers/vidtv/vidtv_pes.c| 12 ++-- drivers

Re: [v10 0/4] media: vidtv: Implement a virtual DVB driver

2020-09-12 Thread Mauro Carvalho Chehab
Hi Hans/Daniel, Em Sat, 12 Sep 2020 10:21:59 +0200 Hans Verkuil escreveu: > > Building vidtv > > -- > > vidtv is a test driver and thus is **not** enabled by default when > > compiling the kernel. > > > > In order to enable compilation of vidtv: > > > > - Enable **DVB_TEST_DRIVERS*

[PATCH] media: vidtv: add modaliases for the bridge driver

2020-09-12 Thread Mauro Carvalho Chehab
As this virtual driver is probed manually, add modaliases for this driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/test-drivers/vidtv/vidtv_bridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/test-drivers/vidtv/vidtv_bridge.c b/drivers/media/test-drivers

[PATCH] vidtv: prefer using dev_foo() instead of pr_foo()

2020-09-12 Thread Mauro Carvalho Chehab
It is better to use the higher level dev_foo() than pr_foo() for printks. Change them at vidtv at the more trivial places. Signed-off-by: Mauro Carvalho Chehab --- .../media/test-drivers/vidtv/vidtv_bridge.c | 19 +++ .../media/test-drivers/vidtv/vidtv_channel.c | 23

[PATCH v3 RESEND 0/8] Add PHY USB3 drivers for Hikey 970

2020-09-11 Thread Mauro Carvalho Chehab
driver and the DTS changes required to enable USB support for this board. PS.: I'm re-sending it, as the c/c list was wrong on the first mailbomb, due to a bug on my script that were adding e-mails from get_maintainer.pl. Mauro Carvalho Chehab (6): phy: hisilicon: phy-hi3670-usb3:

[PATCH v3 RESEND 5/8] phy: hisilicon: phy-hi3670-usb3: fix coding style

2020-09-11 Thread Mauro Carvalho Chehab
Address the issues reported by checkpatch --strict, and add a SPDX tag. Signed-off-by: Mauro Carvalho Chehab --- drivers/phy/hisilicon/phy-hi3670-usb3.c | 157 1 file changed, 76 insertions(+), 81 deletions(-) diff --git a/drivers/phy/hisilicon/phy-hi3670-usb3.c b

[PATCH v3 RESEND 8/8] MAINTAINERS: add myself as maintainer for Kirin 970 USB PHY

2020-09-11 Thread Mauro Carvalho Chehab
Now that this driver was added upsream, it needs a maintainer. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2f497c7d659c..267ba0b7a52e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v3 RESEND 2/8] phy: hisilicon: phy-hi3670-usb3: fix some issues at the init code

2020-09-11 Thread Mauro Carvalho Chehab
From: Yu Chen There are some problems at the initialization part of this phy. Solve them. Signed-off-by: Yu Chen Signed-off-by: Mauro Carvalho Chehab --- drivers/phy/hisilicon/phy-hi3670-usb3.c | 70 +++-- 1 file changed, 32 insertions(+), 38 deletions(-) diff --git a

[PATCH v3 RESEND 7/8] dt-bindings: phy: convert phy-kirin970-usb3.txt to yaml

2020-09-11 Thread Mauro Carvalho Chehab
Use the new YAML for this physical layer. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/phy/hisilicon,hi3670-usb3.yaml | 72 +++ .../bindings/phy/phy-hi3670-usb3.txt | 25 --- 2 files changed, 72 insertions(+), 25 deletions(-) create mode 100644

[PATCH v3 RESEND 3/8] phy: hisilicon: phy-hi3670-usb3: use a consistent namespace

2020-09-11 Thread Mauro Carvalho Chehab
Rename hikey970 to hi3670, in order to use a namespace similar to hi3660 driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/phy/hisilicon/phy-hi3670-usb3.c | 98 - 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/drivers/phy/hisilicon/phy-hi3670-usb3

[PATCH v3 RESEND 1/8] phy: hisilicon: add USB physical layer for Kirin 3670

2020-09-11 Thread Mauro Carvalho Chehab
Mauro Carvalho Chehab --- .../bindings/phy/phy-hi3670-usb3.txt | 25 + drivers/phy/hisilicon/Kconfig | 10 + drivers/phy/hisilicon/Makefile| 1 + drivers/phy/hisilicon/phy-hi3670-usb3.c | 682 ++ 4 files changed, 718 insertions(+) c

[PATCH v3 RESEND 4/8] dts: phy: phy-hi3670-usb3.txt: use a consistent namespace

2020-09-11 Thread Mauro Carvalho Chehab
While this driver is not used yet, use a more consistent namespace, similar to the PHY layer for Kirin 960 (hi3660). Signed-off-by: Mauro Carvalho Chehab --- Documentation/devicetree/bindings/phy/phy-hi3670-usb3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v3 RESEND 6/8] phy: hisilicon: phy-hi3670-usb3: change some DT properties

2020-09-11 Thread Mauro Carvalho Chehab
Do some changes at the DT properties in order to make it follow the phy-hi3660-usb3 example and to simplify usb3-phy-tx-vboost-lvl name. Signed-off-by: Mauro Carvalho Chehab --- drivers/phy/hisilicon/phy-hi3670-usb3.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v3 0/8] Add PHY USB3 drivers for Hikey 970

2020-09-11 Thread Mauro Carvalho Chehab
Em Fri, 11 Sep 2020 17:17:11 +0530 Vinod Koul escreveu: > On 10-09-20, 07:52, Mauro Carvalho Chehab wrote: > > This patch series add the PHY layer needed in order to support the USB > > functionality on Hikey 970 boards. > > > > v3: > > - split a namespace pa

Re: [v10 0/4] media: vidtv: Implement a virtual DVB driver

2020-09-11 Thread Mauro Carvalho Chehab
Hi Daniel, Em Fri, 21 Aug 2020 09:58:44 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > This series is work in progress. It represents the current work done on a > virtual DVB driver for the Linux media subsystem. I am new to the media > subsystem and to kernel develo

Re: linux-next: Tree for Sep 10 (drivers/media/pci/ttpci/dvb-ttpci)

2020-09-11 Thread Mauro Carvalho Chehab
ecast is used: on i386: ERROR: modpost: "__floatunsidf" [drivers/media/pci/ttpci/dvb-ttpci.ko] undefined! ERROR: modpost: "__ltdf2" [drivers/media/pci/ttpci/dvb-ttpci.ko] undefined! The warning was generated on gcc (SUSE Linux) 7.5.0. Gcc 9.2 compiles it fin

Re: [PATCH 00/30] docs: fix documentation build parsing errors

2020-09-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Sep 2020 10:42:50 -0600 Jonathan Corbet escreveu: > On Wed, 9 Sep 2020 16:10:31 +0200 > Mauro Carvalho Chehab wrote: > > > Currently, there are several warnings/errors produced when building > > the documentation with "make htmldocs". > >

[PATCH] drm: kernel-doc: add description for a new function parameter

2020-09-10 Thread Mauro Carvalho Chehab
r list size.") Signed-off-by: Mauro Carvalho Chehab --- drivers/gpu/drm/drm_prime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index 8a6a3c99b7d8..45e70ecdfa45 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_

Re: [PATCH 03/14] XArray: docs: add missing kernel-doc parameters for xas_split_alloc()

2020-09-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Sep 2020 12:13:22 +0100 Matthew Wilcox escreveu: > On Thu, Sep 10, 2020 at 12:23:56PM +0200, Mauro Carvalho Chehab wrote: > > /** > > - * Allocate memory for splitting an entry of @order size into the order > > - * stored in the @xas. > > + * xas_split_al

[PATCH 02/14] usb: docs: document altmode register/unregister functions

2020-09-10 Thread Mauro Carvalho Chehab
ypec_altmode.h at the rst file. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/usb/typec_bus.rst | 8 +++- include/linux/usb/typec_altmode.h | 16 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/usb/typec_bus.r

[PATCH 07/14] IB/srpt: docs: add a description for cq_size member

2020-09-10 Thread Mauro Carvalho Chehab
tion parameter or member 'cq_size' not described in 'srpt_rdma_ch' Add a description for it. Fixes: c804af2c1d31 ("IB/srpt: use new shared CQ mechanism") Signed-off-by: Mauro Carvalho Chehab --- drivers/infiniband/ulp/srpt/ib_srpt.h | 1 + 1 file changed, 1 insertion(+)

[PATCH 10/14] drm: amdgpu: kernel-doc: update some adev parameters

2020-09-10 Thread Mauro Carvalho Chehab
vers/gpu/drm/amd/amdgpu/amdgpu_device.c:675: warning: Excess function parameter 'dev' description in 'amdgpu_device_asic_init' ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:675: warning: Excess function parameter 'dev' description in 'amdgpu_device_asic_init

[PATCH 09/14] Input: sparse-keymap: add a description for @sw

2020-09-10 Thread Mauro Carvalho Chehab
Add a description for it, in order to avoids this warning: ./include/linux/input/sparse-keymap.h:43: warning: Function parameter or member 'sw' not described in 'key_entry' Signed-off-by: Mauro Carvalho Chehab --- include/linux/input/sparse-keymap.h | 1 + 1 file

[PATCH 04/14] blk-mq: docs: add kernel-doc description for a new struct member

2020-09-10 Thread Mauro Carvalho Chehab
ntroduced it. Fixes: f1b49fdc1c64 ("blk-mq: Record active_queues_shared_sbitmap per tag_set for when using shared sbitmap") Signed-off-by: Mauro Carvalho Chehab --- include/linux/blk-mq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/blk-mq.h b/include/lin

[PATCH 06/14] nl80211: docs: add a description for s1g_cap parameter

2020-09-10 Thread Mauro Carvalho Chehab
#x27;s1g_cap' not described in 'ieee80211_supported_band' Add a documentation for it. Fixes: df78a0c0b67d ("nl80211: S1G band and channel definitions") Signed-off-by: Mauro Carvalho Chehab --- include/net/cfg80211.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net

[PATCH 14/14] gpu: docs: amdgpu.rst: get rid of wrong kernel-doc markups

2020-09-10 Thread Mauro Carvalho Chehab
thing altogether. For amdgpu_ras.c, however, we need to remove the kernel-doc with just internal. This should be re-introduced if this file ever gets new non-DOC markups. Signed-off-by: Mauro Carvalho Chehab --- Documentation/gpu/amdgpu.rst | 7 --- 1 file changed, 7 deletions(-) diff --

[PATCH 12/14] drm: kernel-doc: document drm_dp_set_subconnector_property() params

2020-09-10 Thread Mauro Carvalho Chehab
pe as a subconnector property") Signed-off-by: Mauro Carvalho Chehab --- drivers/gpu/drm/drm_dp_helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index ad7c03dac467..e0ca8f19164b 100644 --- a/driver

[PATCH 00/14] get rid of the remaining kernel-doc warnings when building the docs

2020-09-10 Thread Mauro Carvalho Chehab
ext merge window. This way, if some patches ended being missed, they can be applied by the end of the merge window. Hopefully, we can make Kernel 5.10 free of documentation warnings. [1] with the exception of two latmus warnings that seems to require a patch that it was not merged yet. Regards

[PATCH 13/14] drm: kernel-doc: drm_dp_helper.h: fix a typo

2020-09-10 Thread Mauro Carvalho Chehab
Right now, kernel-doc generates a warning: ./include/drm/drm_dp_helper.h:1786: warning: Function parameter or member 'hbr2_reset' not described in 'drm_dp_phy_test_params' This is due to a typo: @hb2_reset -> @hbr2_reset Signed-off-by: Mauro Carvalho C

[PATCH 08/14] rcu/tree: docs: document bkvcache new members at struct kfree_rcu_cpu

2020-09-10 Thread Mauro Carvalho Chehab
bkv_objs. Fixes: 53c72b590b3a ("rcu/tree: cache specified number of objects") Signed-off-by: Mauro Carvalho Chehab --- kernel/rcu/tree.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 7623128d0020..395

[PATCH 11/14] drm/amd/display: kernel-doc: document force_timing_sync

2020-09-10 Thread Mauro Carvalho Chehab
c markup. Fixes: 3d4e52d0cf24 ("drm/amd/display: Add debugfs for forcing stream timing sync") Signed-off-by: Mauro Carvalho Chehab --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h

[PATCH 01/14] locking/refcount: document the new "oldp" pointer value

2020-09-10 Thread Mauro Carvalho Chehab
: Provide __refcount API to obtain the old value") Signed-off-by: Mauro Carvalho Chehab --- include/linux/refcount.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/refcount.h b/include/linux/refcount.h index 7fabb1af18e0..e17035ea44ef 100644 --- a/include/linux/refco

[PATCH 03/14] XArray: docs: add missing kernel-doc parameters for xas_split_alloc()

2020-09-10 Thread Mauro Carvalho Chehab
The parameters for such function are not described. Copy the description from the conventions (at the beginning of this file), and fill in the blanks for the @order parameter. Signed-off-by: Mauro Carvalho Chehab --- lib/xarray.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions

[PATCH 05/14] iio: docs: add description for a new function member

2020-09-10 Thread Mauro Carvalho Chehab
member 'parent' not described in 'iio_device_alloc' Copy the parameter description for the devm_ variant. Fixes: 78289b4a58b5 ("iio: core: pass parent device as parameter during allocation") Signed-off-by: Mauro Carvalho Chehab --- drivers/iio/industrialio-core.c

Re: [PATCH -next] staging: regulator: hi6421v600-regulator: Remove unused including

2020-09-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Sep 2020 14:17:56 +0800 YueHaibing escreveu: > Remove including that don't need it. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Reviewed-by: Mauro Carvalho Chehab > --- > drivers/staging/hikey9xx/hi6421v600-regulator.c | 1 - >

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-09 Thread Mauro Carvalho Chehab
c/ov6650.c| 5 ++--- > drivers/media/i2c/smiapp/smiapp-core.c| 2 +- > drivers/media/i2c/tvp5150.c | 2 +- > drivers/media/pci/ddbridge/ddbridge-core.c| 2 +- > drivers/media/usb/cpia

[PATCH 0/3] Add support for onboard GPIO USB hub for Hikey 960/970

2020-09-09 Thread Mauro Carvalho Chehab
Both Hikey 960 and 970 comes with an onboard USB hub. On those devices, the USB connectors are connected via the hub. This patch series adds support for it. Mauro Carvalho Chehab (2): misc: hisi_hikey_usb: add support for Hikey 970 dts: hisilicon: add support for USB3 on Hikey 970 Yu Chen

[PATCH v3 0/8] Add PHY USB3 drivers for Hikey 970

2020-09-09 Thread Mauro Carvalho Chehab
driver and the DTS changes required to enable USB support for this board. Mauro Carvalho Chehab (6): phy: hisilicon: phy-hi3670-usb3: use a consistent namespace dts: phy: phy-hi3670-usb3.txt: use a consistent namespace phy: hisilicon: phy-hi3670-usb3: fix coding style phy: hisilicon: phy

Re: [RFC 03/10] phy: hisilicon: phy-hi3670-usb3: use a consistent namespace

2020-09-09 Thread Mauro Carvalho Chehab
Em Wed, 9 Sep 2020 14:15:59 -0600 Rob Herring escreveu: > On Fri, Sep 4, 2020 at 4:23 AM Mauro Carvalho Chehab > wrote: > > > > Rename hikey970 to hi3670, in order to use a namespace > > similar to hi3660 driver. > > > > Signed-off-by: Mauro Carvalho Cheha

[PATCH v2] media: camera-sensor.rst: fix a doc build warning

2020-09-09 Thread Mauro Carvalho Chehab
Documentation/driver-api/media/camera-sensor.rst:123: WARNING: Inline literal start-string without end-string. There's a missing blank line over there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/media/camera-sensor.rst | 2 +- 1 file changed, 1 insertion(

[PATCH 09/30] net: appletalk: Kconfig: Fix docs location

2020-09-09 Thread Mauro Carvalho Chehab
The location of ltpc.rst changed. Update it at Kconfig. Fixes: 4daedf7abb41 ("docs: networking: move AppleTalk / LocalTalk drivers to the hw driver section") Signed-off-by: Mauro Carvalho Chehab --- drivers/net/appletalk/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 03/30] dt-bindings: fix references to files converted to yaml

2020-09-09 Thread Mauro Carvalho Chehab
There were several files converted to yaml, but the .txt file is still referenced somewhere else. Update the references for them to point to the right file. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/display/tilcdc/tilcdc.txt | 2 +- .../bindings/mailbox/omap-mailbox.txt

[PATCH 25/30] docs: admin-guide: net.rst: add a missing blank line

2020-09-09 Thread Mauro Carvalho Chehab
There's a missing blank line after a literal block, which causes this warning: Documentation/admin-guide/sysctl/net.rst:303: WARNING: Literal block ends without a blank line; unexpected unindent. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/sysctl/net.rs

[PATCH 13/30] docs: SafeSetID: fix a warning

2020-09-09 Thread Mauro Carvalho Chehab
As reported by Sphinx 2.4.4: docs/Documentation/admin-guide/LSM/SafeSetID.rst:110: WARNING: Title underline too short. Note on GID policies and setgroups() == Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/LSM/SafeSetID.rst | 2

[PATCH 05/30] docs: scheduler: fix the directory name on two files

2020-09-09 Thread Mauro Carvalho Chehab
The name of the directory where the schedule docs are stored are wrong on those files. Signed-off-by: Mauro Carvalho Chehab --- Documentation/scheduler/sched-capacity.rst | 2 +- Documentation/scheduler/sched-energy.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 00/30] docs: fix documentation build parsing errors

2020-09-09 Thread Mauro Carvalho Chehab
. My suggestion would be for you to pick at least the ones that apply cleanly on your tree. I can rebase the ones later for them to be applied along the merge window. I'm aiming here to have Kernel 5.10 free of documentation warnings. Hopefully, people will take more care to avoid introduc

[PATCH 02/30] kernel-doc: include line numbers for function prototypes

2020-09-09 Thread Mauro Carvalho Chehab
This should solve bad error reports like this one: ./include/linux/iio/iio.h:0: WARNING: Unknown target name: "devm". Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kernel-doc b/scripts/kernel

[PATCH 21/30] iio: industrialio-core.c: solve a kernel-doc warning

2020-09-09 Thread Mauro Carvalho Chehab
;parent' not described in 'iio_device_alloc' The problem is that the comment just before iio_get_debugfs_dentry() is just a comment, and not really a kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab --- drivers/iio/industrialio-core.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 20/30] docs: dma-buf: fix some warnings

2020-09-09 Thread Mauro Carvalho Chehab
s due to a shorter markup. The second one is because the chapter name was wrong. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/dma-buf.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-api/dma-buf.rst b/Documentation/driver-api/d

[PATCH 17/30] docs: kvm: api.rst: add missing spaces

2020-09-09 Thread Mauro Carvalho Chehab
: WARNING: Definition list ends without a blank line; unexpected unindent. Produced by the lack of identation on a single line. That caused the literal block to end prematurely. Signed-off-by: Mauro Carvalho Chehab --- Documentation/virt/kvm/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 10/30] drivers: net: hamradio: fix document location

2020-09-09 Thread Mauro Carvalho Chehab
The hamradio docs were moved to a different dir. Update its location accordingly. Fixes: 14474950252c ("docs: networking: move z8530 to the hw driver section") Signed-off-by: Mauro Carvalho Chehab --- drivers/net/hamradio/scc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 18/30] block: bio: fix a warning at the kernel-doc markups

2020-09-09 Thread Mauro Carvalho Chehab
d be possible to use, instead, this kernel-doc markup: ``bio's`` parent Yet, here, is probably simpler to just use an altenative language: the parent of @bio Signed-off-by: Mauro Carvalho Chehab --- block/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 19/30] docs: soundwire: fix some identation at stream.rst

2020-09-09 Thread Mauro Carvalho Chehab
. So, address both issues. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/soundwire/stream.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/driver-api/soundwire/stream.rst b/Documentation/driver-api/soundwire/stream.rst index 8858cea

<    8   9   10   11   12   13   14   15   16   17   >