From patchwork Fri Jul 29 13:06:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asmaa Mnebhi X-Patchwork-Id: 1662019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LvSV25mrqz9sGZ for ; Fri, 29 Jul 2022 23:07:22 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oHPhz-0004r6-FU; Fri, 29 Jul 2022 13:07:15 +0000 Received: from mail-il-dmz.mellanox.com ([193.47.165.129] helo=mellanox.co.il) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oHPhw-0004qJ-Jb for kernel-team@lists.ubuntu.com; Fri, 29 Jul 2022 13:07:12 +0000 Received: from Internal Mail-Server by MTLPINE1 (envelope-from asmaa@mellanox.com) with SMTP; 29 Jul 2022 16:07:08 +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 26TD76lI025891; Fri, 29 Jul 2022 09:07:06 -0400 Received: (from asmaa@localhost) by bu-vnc02.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id 26TD75Yv030345; Fri, 29 Jul 2022 09:07:05 -0400 From: Asmaa Mnebhi To: kernel-team@lists.ubuntu.com Subject: [SRU][F:linux-bluefield][PATCH v2 0/3]: UBUNTU: SAUCE: pwr-mlxbf.c: Improve driver dependencies and fix zero allocating memory size Date: Fri, 29 Jul 2022 09:06:58 -0400 Message-Id: <20220729130701.30269-1-asmaa@nvidia.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: asmaa@nvidia.com Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Buglink: https://bugs.launchpad.net/bugs/1980750 SRU Justification: [Impact] Improve the driver dependency on the gpio driver. Move that dependency to the probe as instructed by maintainers. Flush if there is remaining work while the driver is removed. fix size for zero allocating memory. [Fix] * Instead of using SOFTDEP, return -EPROBE_DEFER if the gpio-mlxbf2.c driver is not loaded yet. * Flush work when driver is removed. * fix size for zero allocating memory. * Upgrade the driver version to 1.1 due to all above changes [Test Case] * Test case only valid on Board with BMC on it: * Make sure driver is loaded and no errors in dmesg. * issue a power reset from the BMC via IPMI. [Regression Potential] Any of the test cases above could be impacted due to these changes. Acked-by: Tim Gardner Acked-by: Zachary Tahenakos