From patchwork Mon Sep 19 21:34:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asmaa Mnebhi X-Patchwork-Id: 607506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D9E9C6FA82 for ; Mon, 19 Sep 2022 21:34:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbiISVer (ORCPT ); Mon, 19 Sep 2022 17:34:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbiISVeo (ORCPT ); Mon, 19 Sep 2022 17:34:44 -0400 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29C565F9B for ; Mon, 19 Sep 2022 14:34:37 -0700 (PDT) Received: from Internal Mail-Server by MTLPINE1 (envelope-from asmaa@mellanox.com) with SMTP; 20 Sep 2022 00:34:35 +0300 Received: from bu-vnc02.mtbu.labs.mlnx (bu-vnc02.mtbu.labs.mlnx [10.15.2.65]) by mtbu-labmailer.labs.mlnx (8.14.4/8.14.4) with ESMTP id 28JLYYLT023058; Mon, 19 Sep 2022 17:34:34 -0400 Received: (from asmaa@localhost) by bu-vnc02.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id 28JLYXaH008124; Mon, 19 Sep 2022 17:34:33 -0400 From: Asmaa Mnebhi To: Wolfram Sang , robh@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Asmaa Mnebhi Subject: [PATCH v4 0/8] i2c: i2c-mlxbf.c: bug fixes and new feature support Date: Mon, 19 Sep 2022 17:34:23 -0400 Message-Id: <20220919213431.8045-1-asmaa@nvidia.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org This is a series of patches fixing several bugs and implementing new features. Bug fixes: 1) Fix the frequency calculation 2) Fix incorrect base address passed during io write 3) prevent stack overflow in mlxbf_i2c_smbus_start_transaction() 4) Support lock mechanism to avoid race condition between entities using the i2c bus Cleanup: 5) remove IRQF_ONESHOT flag as it is no longer needed. Features: 6) Support multi slave functionality 7) Support BlueField-3 SoC 8) Update binding devicetree What has changed from v3->v4: - moved the patch related to updating the SPDX licence out of this series. This will be submitted as a separate patch later and will need approval from all contributors. - fixed build error in the frequency calculation patch. The name of the frequency functions changed but that was not reflected when they were called. - Fixed the prefix in $subject as "i2c: :" - Use kernel multiline comment style in the "support lock mechanism" patch - instead of calling mlxbf_i2c_smbus_master_unlock multiple times, use the "goto out_unlock" style. - Added the devicetree reviewers Asmaa Mnebhi (8): i2c: i2c-mlxbf.c: Fix frequency calculation i2c: i2c-mlxbf.c: remove IRQF_ONESHOT i2c: i2c-mlxbf.c: incorrect base address passed during io write i2c: i2c-mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction() i2c: i2c-mlxbf.c: support lock mechanism i2c: i2c-mlxbf: add multi slave functionality i2c: i2c-mlxbf.c: support BlueField-3 SoC i2c: i2c-mlxbf.c: Update binding devicetree .../bindings/i2c/mellanox,i2c-mlxbf.yaml | 49 +- MAINTAINERS | 1 + drivers/i2c/busses/i2c-mlxbf.c | 862 ++++++++++-------- 3 files changed, 522 insertions(+), 390 deletions(-)