From patchwork Thu Dec 16 08:12:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12680129 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 ABED5C433EF for ; Thu, 16 Dec 2021 08:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234747AbhLPIMs (ORCPT ); Thu, 16 Dec 2021 03:12:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232314AbhLPIMs (ORCPT ); Thu, 16 Dec 2021 03:12:48 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D3EC061574 for ; Thu, 16 Dec 2021 00:12:48 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id o14so18831689plg.5 for ; Thu, 16 Dec 2021 00:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J4t2sTur9cdYHU8TKnZYEXhAtiC9kU7TYZgtM8sv6Rw=; b=kbZ8GxDI9i+HZI9ASpifM7l0aRUElJris8YuH+giRnwSq6EDfXGUkagqhxuZEsCH6X 9r4pTp7vs3bU2MES3TRlFxZOWXPB+O4rQxK3qq32ajle6uCPktn9ltWFfLFLJVTVIu6D f9x0cCeTMJT7jpWx1ML6xikojKG9M7saPnhud9MXrv4G8VSBGJVVjsCvxplc1wcB3R9c GrUJxGa+kdcDSocgtljrUWP0sYdh8P8eBlFe8s536hFG6W7zTEdMage+gWmHUqlrsuTU N47LoYjuMEIl95oUW9GCWg+ihbVWzCDJjMrAzrV3d1ub/rsXWNV7RYRD40UdG8Ik9mXW V8bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J4t2sTur9cdYHU8TKnZYEXhAtiC9kU7TYZgtM8sv6Rw=; b=sXoc/HPy9b3s6JThon1oKl5MTr4xujj9c64blngttGas5YZCt68hkGyMlA5za69xC5 +hJrmpxJwAy6/WEKQJHWaJsgcR7DiDv067Ioj2cBWxffbqGRzAKzOosuEmt0p5QylBdL 6w+VpAEv7holpRD2eGlNp+CFkb/GpVzg/5XB7qsCGSnBn10uqyoD3VSfu3gFuDOAjcfM 0KcqT0Ngn/yuNuGynoqx00/qSZO+6ed48dVl/xYyKfRhqIh9puNyP58IeXFMkMgEw9Tr KF8WptJZl3VjpOrq0ldKe4t7WAPV9yKlfb6RPV6aO7m+cu3lhsFY2RuAY4c/k3gI4YKl 0XsQ== X-Gm-Message-State: AOAM532YIwxjnJgE9N1JHeh7eKaY/+89UWGEABHDJe4iKAKK1Uv31Rt0 sp8TgxVY2JCq5odX8LOTUdsG X-Google-Smtp-Source: ABdhPJyHWdGgvQkASnf5ZsiqmTjN/rK+5bFAS+5TkzGnUj9Dcl3B4b/FmP8XAbwTm0cQ0zTVsSFXYQ== X-Received: by 2002:a17:903:1247:b0:143:b9b9:52a2 with SMTP id u7-20020a170903124700b00143b9b952a2mr15367789plh.35.1639642367470; Thu, 16 Dec 2021 00:12:47 -0800 (PST) Received: from localhost.localdomain ([117.193.208.121]) by smtp.gmail.com with ESMTPSA id u38sm326835pfg.4.2021.12.16.00.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 00:12:47 -0800 (PST) From: Manivannan Sadhasivam To: gregkh@linuxfoundation.org Cc: mhi@lists.linux.dev, hemantk@codeaurora.org, bbhatt@codeaurora.org, loic.poulain@linaro.org, thomas.perrot@bootlin.com, aleksander@aleksander.es, slark_xiao@163.com, christophe.jaillet@wanadoo.fr, keescook@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 00/10] MHI patches for v5.17 Date: Thu, 16 Dec 2021 13:42:17 +0530 Message-Id: <20211216081227.237749-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Greg, Here are the MHI patches for v5.17 cycle. Patchset summary: 1. Added support for a new PCI Foxconn modem based on Qualcomm SDX55 chipset. This device is named as "T99W175" which was already supported but this one seems to be using a new modem build and Foxconn is selling it as a new product with a different PID. 2. MHI PCI generic driver now gracefully shutsdown the modem during system freeze. 3. Used macros to identify the MHI Execution Environment (EE). 4. Fixed the comment and style issues detected by checkpatch. 5. Used dma_set_mask_and_coherent() API to simplify the code in MHI PCI generic driver. 6. Fixed reading the "wake-capable" entry while parsing the channel configuration structure from controller drivers. 7. Fixed the SYS_ERR handling while powering up the device. This fixes the bootup issue with Sierra Wireless EM919X modems based on SDX55. 8. Introduced a new API for automatically queueing the buffers for the DL channel. This patch touches QRTR driver that's under networking subsystem. Hence, collected Ack from Jakub. 9. Used the "unsigned long" argument for find_last_bit() API. This is done to avoid the warning with "-Warray-bounds" GCC flag. 10. Finally, added support for the Sierra Wireless EM919X modems based on Qualcomm SDX55 chipset. Thanks, Mani Bhaumik Bhatt (2): bus: mhi: core: Use macros for execution environment features bus: mhi: core: Fix reading wake_capable channel configuration Christophe JAILLET (1): bus: mhi: pci_generic: Simplify code and axe the use of a deprecated API Kees Cook (1): bus: mhi: core: Use correctly sized arguments for bit field Loic Poulain (1): bus: mhi: pci_generic: Graceful shutdown on freeze Manivannan Sadhasivam (3): bus: mhi: core: Minor style and comment fixes bus: mhi: core: Fix race while handling SYS_ERR at power up bus: mhi: core: Add an API for auto queueing buffers for DL channel Slark Xiao (1): bus: mhi: pci_generic: Add new device ID support for T99W175 Thomas Perrot (1): bus: mhi: pci_generic: Introduce Sierra EM919X support drivers/bus/mhi/core/boot.c | 2 +- drivers/bus/mhi/core/init.c | 4 ++- drivers/bus/mhi/core/internal.h | 9 ++++-- drivers/bus/mhi/core/main.c | 24 +++++++++++--- drivers/bus/mhi/core/pm.c | 39 +++++++++-------------- drivers/bus/mhi/pci_generic.c | 56 ++++++++++++++++++++++++++++----- include/linux/mhi.h | 21 ++++++++++--- net/qrtr/mhi.c | 2 +- 8 files changed, 109 insertions(+), 48 deletions(-)