All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL REQUEST] i2c-for-5.20-part2
@ 2022-08-13 15:42 Wolfram Sang
  2022-08-13 21:37 ` Linus Torvalds
  2022-08-13 21:48 ` pr-tracker-bot
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfram Sang @ 2022-08-13 15:42 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-i2c, linux-kernel, Peter Rosin, Bartosz Golaszewski

[-- Attachment #1: Type: text/plain, Size: 6513 bytes --]

The following changes since commit ffcf9c5700e49c0aee42dcba9a12ba21338e8136:

  x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments (2022-08-10 18:30:09 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git tags/i2c-for-5.20-part2

for you to fetch changes up to fe99b819487dba848cddd3d4bf4beb8e653d7e9c:

  docs: i2c: i2c-sysfs: fix hyperlinks (2022-08-11 23:25:05 +0200)

----------------------------------------------------------------
* two driver fixes for issues introduced this cycle
* one trivial driver improvement regarding ACPI
* more DTS conversion and additions
* documentation updates
* subsystem-wide move from strlcpy to strscpy

----------------------------------------------------------------
Chris Pringle (1):
      i2c: kempld: Support ACPI I2C device declaration

Conor Dooley (1):
      i2c: microchip-corei2c: fix erroneous late ack send

Kewei Xu (2):
      dt-bindings: i2c: update bindings for mt8188 soc
      i2c: mediatek: add i2c compatible for MT8188

Krzysztof Kozlowski (1):
      dt-bindings: i2c: qcom,i2c-cci: convert to dtschema

Luca Ceresoli (7):
      docs: i2c: i2c-protocol: update introductory paragraph
      docs: i2c: i2c-protocol,smbus-protocol: remove nonsense words
      docs: i2c: i2c-protocol: remove unused legend items
      docs: i2c: smbus-protocol: improve DataLow/DataHigh definition
      docs: i2c: instantiating-devices: add syntax coloring to dts and C blocks
      docs: i2c: i2c-sysfs: improve wording
      docs: i2c: i2c-sysfs: fix hyperlinks

Robin Reckmann (1):
      i2c: qcom-geni: Fix GPI DMA buffer sync-back

Wolfram Sang (2):
      i2c: move drivers from strlcpy to strscpy
      i2c: move core from strlcpy to strscpy


with much appreciated quality assurance from
----------------------------------------------------------------
AngeloGioacchino Del Regno (1):
      (Rev.) i2c: mediatek: add i2c compatible for MT8188

Bagas Sanjaya (1):
      (Rev.) docs: i2c: smbus-protocol: improve DataLow/DataHigh definition

Caleb Connolly (1):
      (Test) i2c: qcom-geni: Fix GPI DMA buffer sync-back

Konrad Dybcio (1):
      (Rev.) i2c: qcom-geni: Fix GPI DMA buffer sync-back

Lewis Hanly (1):
      (Test) i2c: microchip-corei2c: fix erroneous late ack send

Luca Weiss (1):
      (Test) i2c: qcom-geni: Fix GPI DMA buffer sync-back

Matthias Brugger (1):
      (Rev.) dt-bindings: i2c: update bindings for mt8188 soc

Qii Wang (2):
      (Rev.) i2c: mediatek: add i2c compatible for MT8188
      (Rev.) dt-bindings: i2c: update bindings for mt8188 soc

Rob Herring (1):
      (Rev.) dt-bindings: i2c: qcom,i2c-cci: convert to dtschema

 .../devicetree/bindings/i2c/i2c-mt65xx.yaml        |   1 +
 .../devicetree/bindings/i2c/i2c-qcom-cci.txt       |  96 --------
 .../devicetree/bindings/i2c/qcom,i2c-cci.yaml      | 242 +++++++++++++++++++++
 Documentation/i2c/i2c-protocol.rst                 |  11 +-
 Documentation/i2c/i2c-sysfs.rst                    |  24 +-
 Documentation/i2c/instantiating-devices.rst        |  16 +-
 Documentation/i2c/smbus-protocol.rst               |   6 +-
 MAINTAINERS                                        |   2 +-
 drivers/i2c/busses/i2c-altera.c                    |   2 +-
 drivers/i2c/busses/i2c-aspeed.c                    |   2 +-
 drivers/i2c/busses/i2c-au1550.c                    |   2 +-
 drivers/i2c/busses/i2c-axxia.c                     |   2 +-
 drivers/i2c/busses/i2c-bcm-kona.c                  |   2 +-
 drivers/i2c/busses/i2c-brcmstb.c                   |   2 +-
 drivers/i2c/busses/i2c-cbus-gpio.c                 |   2 +-
 drivers/i2c/busses/i2c-cht-wc.c                    |   2 +-
 drivers/i2c/busses/i2c-cros-ec-tunnel.c            |   2 +-
 drivers/i2c/busses/i2c-davinci.c                   |   2 +-
 drivers/i2c/busses/i2c-digicolor.c                 |   2 +-
 drivers/i2c/busses/i2c-eg20t.c                     |   2 +-
 drivers/i2c/busses/i2c-emev2.c                     |   2 +-
 drivers/i2c/busses/i2c-exynos5.c                   |   2 +-
 drivers/i2c/busses/i2c-gpio.c                      |   2 +-
 drivers/i2c/busses/i2c-highlander.c                |   2 +-
 drivers/i2c/busses/i2c-hix5hd2.c                   |   2 +-
 drivers/i2c/busses/i2c-i801.c                      |   4 +-
 drivers/i2c/busses/i2c-ibm_iic.c                   |   2 +-
 drivers/i2c/busses/i2c-icy.c                       |   2 +-
 drivers/i2c/busses/i2c-imx-lpi2c.c                 |   2 +-
 drivers/i2c/busses/i2c-kempld.c                    |   1 +
 drivers/i2c/busses/i2c-lpc2k.c                     |   2 +-
 drivers/i2c/busses/i2c-meson.c                     |   2 +-
 drivers/i2c/busses/i2c-microchip-corei2c.c         |   2 +-
 drivers/i2c/busses/i2c-mt65xx.c                    |  45 +++-
 drivers/i2c/busses/i2c-mt7621.c                    |   2 +-
 drivers/i2c/busses/i2c-mv64xxx.c                   |   2 +-
 drivers/i2c/busses/i2c-mxs.c                       |   2 +-
 drivers/i2c/busses/i2c-nvidia-gpu.c                |   2 +-
 drivers/i2c/busses/i2c-omap.c                      |   2 +-
 drivers/i2c/busses/i2c-opal.c                      |   4 +-
 drivers/i2c/busses/i2c-parport.c                   |   2 +-
 drivers/i2c/busses/i2c-pxa.c                       |   2 +-
 drivers/i2c/busses/i2c-qcom-geni.c                 |   7 +-
 drivers/i2c/busses/i2c-qup.c                       |   2 +-
 drivers/i2c/busses/i2c-rcar.c                      |   2 +-
 drivers/i2c/busses/i2c-riic.c                      |   2 +-
 drivers/i2c/busses/i2c-rk3x.c                      |   2 +-
 drivers/i2c/busses/i2c-s3c2410.c                   |   2 +-
 drivers/i2c/busses/i2c-sh_mobile.c                 |   2 +-
 drivers/i2c/busses/i2c-simtec.c                    |   2 +-
 drivers/i2c/busses/i2c-taos-evm.c                  |   2 +-
 drivers/i2c/busses/i2c-tegra-bpmp.c                |   2 +-
 drivers/i2c/busses/i2c-tegra.c                     |   2 +-
 drivers/i2c/busses/i2c-uniphier-f.c                |   2 +-
 drivers/i2c/busses/i2c-uniphier.c                  |   2 +-
 drivers/i2c/busses/i2c-versatile.c                 |   2 +-
 drivers/i2c/busses/i2c-wmt.c                       |   2 +-
 drivers/i2c/i2c-core-base.c                        |   2 +-
 drivers/i2c/i2c-smbus.c                            |   2 +-
 59 files changed, 370 insertions(+), 181 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-13 15:42 [PULL REQUEST] i2c-for-5.20-part2 Wolfram Sang
@ 2022-08-13 21:37 ` Linus Torvalds
  2022-08-14  0:33   ` Wolfram Sang
  2022-08-13 21:48 ` pr-tracker-bot
  1 sibling, 1 reply; 8+ messages in thread
From: Linus Torvalds @ 2022-08-13 21:37 UTC (permalink / raw)
  To: Wolfram Sang, Julia Lawall; +Cc: linux-i2c, linux-kernel, cocci

On Sat, Aug 13, 2022 at 8:42 AM Wolfram Sang <wsa@kernel.org> wrote:
>
> * subsystem-wide move from strlcpy to strscpy

Hmm.

Looking around, we still do have a lot of those 'strlcpy()' users, but
99% of them don't use the return value.

And since 'strlcpy()' is complete and utter garbage exactly *BECAUSE*
of the bad return value (it returns the length of the source string -
but an untrusted and possibly unterminated source string is often the
*problem* in the first place), that would make it fairly easy to
convert the rest.

I see two possibilities:

 (a) fix strlcpy() by making it return 'void', and leave all those 99%
of users alone, and convert the (few) cases that actually look at the
return value to strscpy

 (b) auto-convert (with a coccinelle script) all the 'strlcpy()' users
that don't care about the return value, and leave a few broken users
of strlcpy around

I think (b) is the simpler thing, but I have no idea how to write a
coccinelle patch that basically does "if return value of strlcpy is
not used, convert the strlcpy to a strscpy".

I'd love to get rid of strlcpy() entirely, since it's such a horribly
badly designed thing.

                  Linus

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-13 15:42 [PULL REQUEST] i2c-for-5.20-part2 Wolfram Sang
  2022-08-13 21:37 ` Linus Torvalds
@ 2022-08-13 21:48 ` pr-tracker-bot
  1 sibling, 0 replies; 8+ messages in thread
From: pr-tracker-bot @ 2022-08-13 21:48 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Linus Torvalds, linux-i2c, linux-kernel, Peter Rosin,
	Bartosz Golaszewski

The pull request you sent on Sat, 13 Aug 2022 17:42:27 +0200:

> git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git tags/i2c-for-5.20-part2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/04734361953b8cc30d5552c1abe907ccfc8bc0fa

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-13 21:37 ` Linus Torvalds
@ 2022-08-14  0:33   ` Wolfram Sang
  2022-08-14  2:02     ` Wolfram Sang
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2022-08-14  0:33 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Julia Lawall, linux-i2c, linux-kernel, cocci

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]


>  (b) auto-convert (with a coccinelle script) all the 'strlcpy()' users
> that don't care about the return value, and leave a few broken users
> of strlcpy around
> 
> I think (b) is the simpler thing, but I have no idea how to write a
> coccinelle patch that basically does "if return value of strlcpy is
> not used, convert the strlcpy to a strscpy".

That shouldn't be hard. I'll give it a try tomorrow.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-14  0:33   ` Wolfram Sang
@ 2022-08-14  2:02     ` Wolfram Sang
  2022-08-14  4:30       ` Julia Lawall
  2022-08-14  7:01       ` Wolfram Sang
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfram Sang @ 2022-08-14  2:02 UTC (permalink / raw)
  To: Linus Torvalds, Julia Lawall, linux-i2c, linux-kernel, cocci

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

On Sun, Aug 14, 2022 at 02:33:40AM +0200, Wolfram Sang wrote:
> 
> >  (b) auto-convert (with a coccinelle script) all the 'strlcpy()' users
> > that don't care about the return value, and leave a few broken users
> > of strlcpy around
> > 
> > I think (b) is the simpler thing, but I have no idea how to write a
> > coccinelle patch that basically does "if return value of strlcpy is
> > not used, convert the strlcpy to a strscpy".
> 
> That shouldn't be hard. I'll give it a try tomorrow.

So, I tried right away and it was really as easy as expected:

===
@@
@@
- strlcpy
+ strscpy
  (...);
===

The ';' at the end ensures that spatch only looks for complete
statements not containing anything more than expressed.

I pushed out a branch for the testbots now:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/strlcpy

Patch granularity might not be perfect currently, but for testing this
should do.

All the best,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-14  2:02     ` Wolfram Sang
@ 2022-08-14  4:30       ` Julia Lawall
  2022-08-14  7:01       ` Wolfram Sang
  1 sibling, 0 replies; 8+ messages in thread
From: Julia Lawall @ 2022-08-14  4:30 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Linus Torvalds, Julia Lawall, linux-i2c, linux-kernel, cocci



On Sun, 14 Aug 2022, Wolfram Sang wrote:

> On Sun, Aug 14, 2022 at 02:33:40AM +0200, Wolfram Sang wrote:
> >
> > >  (b) auto-convert (with a coccinelle script) all the 'strlcpy()' users
> > > that don't care about the return value, and leave a few broken users
> > > of strlcpy around
> > >
> > > I think (b) is the simpler thing, but I have no idea how to write a
> > > coccinelle patch that basically does "if return value of strlcpy is
> > > not used, convert the strlcpy to a strscpy".
> >
> > That shouldn't be hard. I'll give it a try tomorrow.
>
> So, I tried right away and it was really as easy as expected:
>
> ===
> @@
> @@
> - strlcpy
> + strscpy
>   (...);
> ===
>
> The ';' at the end ensures that spatch only looks for complete
> statements not containing anything more than expressed.

This is correct.

julia

>
> I pushed out a branch for the testbots now:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/strlcpy
>
> Patch granularity might not be perfect currently, but for testing this
> should do.
>
> All the best,
>
>    Wolfram
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-14  2:02     ` Wolfram Sang
  2022-08-14  4:30       ` Julia Lawall
@ 2022-08-14  7:01       ` Wolfram Sang
  2022-08-14 20:34         ` Wolfram Sang
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2022-08-14  7:01 UTC (permalink / raw)
  To: Linus Torvalds, Julia Lawall, linux-i2c, linux-kernel, cocci

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]


> I pushed out a branch for the testbots now:
> 
> git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/strlcpy

Pushed again with patches for userspace programs in 'tools/' and
'arch/um/os-Linux' removed. That was too late yesterday to notice them.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL REQUEST] i2c-for-5.20-part2
  2022-08-14  7:01       ` Wolfram Sang
@ 2022-08-14 20:34         ` Wolfram Sang
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2022-08-14 20:34 UTC (permalink / raw)
  To: Linus Torvalds, Julia Lawall, linux-i2c, linux-kernel, cocci

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]


> Pushed again with patches for userspace programs in 'tools/' and
> 'arch/um/os-Linux' removed. That was too late yesterday to notice them.

Got a 'success' message now from the buildbot for the above branch.



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-14 20:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 15:42 [PULL REQUEST] i2c-for-5.20-part2 Wolfram Sang
2022-08-13 21:37 ` Linus Torvalds
2022-08-14  0:33   ` Wolfram Sang
2022-08-14  2:02     ` Wolfram Sang
2022-08-14  4:30       ` Julia Lawall
2022-08-14  7:01       ` Wolfram Sang
2022-08-14 20:34         ` Wolfram Sang
2022-08-13 21:48 ` pr-tracker-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.