From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Khalil Blaiech <kblaiech@nvidia.com>
Cc: linux-i2c@vger.kernel.org, Khalil Blaiech <kblaiech@mellanox.com>,
Vadim Pasternak <vadimp@mellanox.com>
Subject: Re: [PATCH v10 1/2] i2c: i2c-mlxbf: I2C SMBus driver for Mellanox BlueField SoC
Date: Mon, 21 Sep 2020 21:34:00 +0200 [thread overview]
Message-ID: <20200921193400.GB18032@ninjato> (raw)
In-Reply-To: <1f31d4c4ef0c65f75b6077c77fd24c2c404f2a98.1600702555.git.kblaiech@mellanox.com>
[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]
On Mon, Sep 21, 2020 at 11:50:14AM -0400, Khalil Blaiech wrote:
> From: Khalil Blaiech <kblaiech@mellanox.com>
>
> Add BlueField I2C driver to offer master and slave support for
> Mellanox BlueField SoCs. The driver implements an SMBus adapter
> and interfaces to multiple busses that can be probed using both
> ACPI and Device Tree infrastructures.
>
> The driver supports several SMBus operations to transfer data
> back and forth from/to various I2C devices. It is mainly intended
> to be consumed by userspace tools and utilities, such as i2c-tools
> and decode-dimms to collect memory module information.
>
> On the other hand, the driver has a slave function to support,
> among others, an IPMB interface that requires both master and
> slave functions to handle transfers between the BlueField SoC
> and a board management controllers (e.g., BMC).
>
> Signed-off-by: Khalil Blaiech <kblaiech@mellanox.com>
> Reviewed-by: Vadim Pasternak <vadimp@mellanox.com>
It still seems nobody has time for even a high level review of this huge
driver. From a visual glimpse, the driver looks mostly OK to me. It
probably makes sense to fix issues incrementally from here on.
So, let's just fix these static analyzer warnings and I'll apply it for
v5.10.
CHECKPATCH
CHECK: struct mutex definition without comment
#462: FILE: drivers/i2c/busses/i2c-mlxbf.c:372:
+ struct mutex *lock;
WARNING: Prefer 'fallthrough;' over fallthrough comment
#1330: FILE: drivers/i2c/busses/i2c-mlxbf.c:1240:
+ /* Fall-through. */
WARNING: Prefer 'fallthrough;' over fallthrough comment
#2000: FILE: drivers/i2c/busses/i2c-mlxbf.c:1910:
+ /* Fall-through. */
SPARSE
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:513:16: warning: cast to restricted __be32
drivers/i2c/busses/i2c-mlxbf.c:527:34: warning: incorrect type in argument 3 (different base types)
drivers/i2c/busses/i2c-mlxbf.c:527:34: expected unsigned int [usertype] val
drivers/i2c/busses/i2c-mlxbf.c:527:34: got restricted __be32 [usertype]
Thanks for your patience!
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-09-21 19:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 15:50 [PATCH v10 0/2] i2c: add driver for Mellanox BlueField SoC Khalil Blaiech
2020-09-21 15:50 ` [PATCH v10 1/2] i2c: i2c-mlxbf: I2C SMBus " Khalil Blaiech
2020-09-21 19:34 ` Wolfram Sang [this message]
2020-09-22 22:52 ` Khalil Blaiech
2020-09-21 15:50 ` [PATCH v10 2/2] dt-bindings: i2c: I2C binding " Khalil Blaiech
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200921193400.GB18032@ninjato \
--to=wsa+renesas@sang-engineering.com \
--cc=kblaiech@mellanox.com \
--cc=kblaiech@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=vadimp@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox