<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/i2c/busses/i2c-nvidia-gpu.c, branch docs-6.4-2</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-6.4-2</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-6.4-2'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2023-02-02T10:15:26+00:00</updated>
<entry>
<title>i2c: nvidia-gpu: Remove ccgx,firmware-build property</title>
<updated>2023-02-02T10:15:26+00:00</updated>
<author>
<name>Wayne Chang</name>
<email>waynec@nvidia.com</email>
</author>
<published>2023-01-31T17:57:46+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=430b38764fbb931c6dbd1af13c8b2e4508994662'/>
<id>urn:sha1:430b38764fbb931c6dbd1af13c8b2e4508994662</id>
<content type='text'>
Now the Cypress CCG driver has been updated to support the
'firmware-name' property to align with device-tree, remove the
'ccgx,firmware-build' property as this is no longer needed.

Signed-off-by: Wayne Chang &lt;waynec@nvidia.com&gt;
Signed-off-by: Jon Hunter &lt;jonathanh@nvidia.com&gt;
Acked-by: Ajay Gupta &lt;ajayg@nvidia.com&gt;
Acked-by: Wolfram Sang &lt;wsa@kernel.org&gt;
Link: https://lore.kernel.org/r/20230131175748.256423-5-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Add ACPI property to align with device-tree</title>
<updated>2023-02-02T10:15:26+00:00</updated>
<author>
<name>Wayne Chang</name>
<email>waynec@nvidia.com</email>
</author>
<published>2023-01-31T17:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=f510b0a3565b9231e828e23a7e0f9790b97edf96'/>
<id>urn:sha1:f510b0a3565b9231e828e23a7e0f9790b97edf96</id>
<content type='text'>
Device-tree uses the 'firmware-name' string property to pass a name of
the firmware build to the Cypress CCGx driver. Add a new ACPI string
property to the NVIDIA GPU I2C driver to align with device-tree so that
we can migrate to using a common property name for both ACPI and
device-tree.

Signed-off-by: Wayne Chang &lt;waynec@nvidia.com&gt;
Co-developed-by: Jon Hunter &lt;jonathanh@nvidia.com&gt;
Signed-off-by: Jon Hunter &lt;jonathanh@nvidia.com&gt;
Reviewed-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Acked-by: Ajay Gupta &lt;ajayg@nvidia.com&gt;
Acked-by: Wolfram Sang &lt;wsa@kernel.org&gt;
Link: https://lore.kernel.org/r/20230131175748.256423-3-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>i2c: move drivers from strlcpy to strscpy</title>
<updated>2022-08-11T21:02:51+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2022-08-11T07:10:30+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ea1558ce149d286eaf2c0800a93b7efa2adda094'/>
<id>urn:sha1:ea1558ce149d286eaf2c0800a93b7efa2adda094</id>
<content type='text'>
Follow the advice of the below link and prefer 'strscpy'. Conversion is
easy because no driver used the return value and has been done with a
simple sed invocation.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Convert to use dev_err_probe()</title>
<updated>2022-02-15T09:05:02+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2022-01-05T14:19:34+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c74a30ce137636d1a12abde357718e45524c2b71'/>
<id>urn:sha1:c74a30ce137636d1a12abde357718e45524c2b71</id>
<content type='text'>
It's fine to call dev_err_probe() in -&gt;probe() when error code is known.
Convert the driver to use dev_err_probe().

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Use temporary variable for struct device</title>
<updated>2022-02-15T09:05:00+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2022-01-05T14:19:33+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c2c25be6dc94132bca85f5b2c6ee9f6d7ab0173f'/>
<id>urn:sha1:c2c25be6dc94132bca85f5b2c6ee9f6d7ab0173f</id>
<content type='text'>
Use temporary variable for struct device to make code neater.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Switch to use i2c_new_ccgx_ucsi()</title>
<updated>2022-02-15T09:04:57+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2022-01-05T14:19:32+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=2079563d6f60e63f7fc5d1b0b7a48dbb93c209d1'/>
<id>urn:sha1:2079563d6f60e63f7fc5d1b0b7a48dbb93c209d1</id>
<content type='text'>
Instead of open coded variant switch to use i2c_new_ccgx_ucsi().

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Constify the software node</title>
<updated>2021-04-10T19:43:01+00:00</updated>
<author>
<name>Heikki Krogerus</name>
<email>heikki.krogerus@linux.intel.com</email>
</author>
<published>2021-03-29T10:50:43+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=239798f5fb5e87b7ed253df5c5de893aad57fc6b'/>
<id>urn:sha1:239798f5fb5e87b7ed253df5c5de893aad57fc6b</id>
<content type='text'>
Additional device properties are always just a part of a
software fwnode. If the device properties are constant, the
software node can also be constant.

Signed-off-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: drop empty stub for runtime pm</title>
<updated>2020-12-02T20:29:30+00:00</updated>
<author>
<name>Vaibhav Gupta</name>
<email>vaibhavgupta40@gmail.com</email>
</author>
<published>2020-11-07T08:21:51+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b4ff421f123ebc16b4c8cb4474485be29812b5ed'/>
<id>urn:sha1:b4ff421f123ebc16b4c8cb4474485be29812b5ed</id>
<content type='text'>
After the commit c5eb1190074c ("PCI / PM: Allow runtime PM without callback
functions") we no more need empty stubs for runtime-pm to work.

The driver has no device specific task(s) for .suspend() . The stub was
placed just for runtime-pm, which can be dropped now.

Reported-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Signed-off-by: Vaibhav Gupta &lt;vaibhavgupta40@gmail.com&gt;
Reviewed-by: Jarkko Nikula &lt;jarkko.nikula@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Use put_unaligned_be24()</title>
<updated>2020-09-21T10:05:40+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2020-07-16T14:53:19+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9b65b020fff70bc070c4cb8fcf8ea8a1f70b111b'/>
<id>urn:sha1:9b65b020fff70bc070c4cb8fcf8ea8a1f70b111b</id>
<content type='text'>
This makes the driver code slightly easier to read.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Reviewed-by: Ajay Gupta &lt;ajayg@nvidia.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: nvidia-gpu: Use PTR_ERR_OR_ZERO() to simplify code</title>
<updated>2020-05-27T10:07:34+00:00</updated>
<author>
<name>Aishwarya Ramakrishnan</name>
<email>aishwaryarj100@gmail.com</email>
</author>
<published>2020-05-05T14:52:30+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ed2ac8116ff25d5b234f983ffbb0c3f5ec2930aa'/>
<id>urn:sha1:ed2ac8116ff25d5b234f983ffbb0c3f5ec2930aa</id>
<content type='text'>
PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR.

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Aishwarya Ramakrishnan &lt;aishwaryarj100@gmail.com&gt;
Reviewed-by: Ajay Gupta &lt;ajayg@nvidia.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
</feed>
