Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp298001ybz; Tue, 21 Apr 2020 21:21:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLUCMBNMKF1e/w8Rb2MWWXmC5YHPpH9L8lSxso7zil2Z1uY16OEGQY0kZ1K1z+Tg8yoKfJN X-Received: by 2002:a05:6402:356:: with SMTP id r22mr22475676edw.3.1587529301354; Tue, 21 Apr 2020 21:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587529301; cv=none; d=google.com; s=arc-20160816; b=Rvag4DH/fKLs0NGtIrcZuNAQ4RAJ59+wyCyXDSe4c8RDQpq//eUgDuPhSG2FCWDML0 8saqtCmzjxSZ2r2+KtHk390FsvEh45UDXtaFuWDExhqfbiiSR9qu+Xg+1P31NTCdDZTn 6gdEPXjPFW2YhjzX4jlVtOlYsyNAXkU+KhaYwatPoftp2tCJDhRLQS2Kvy1bqNi9OEDc 4d7qhjHagrIU9EtXcrs4FVxftUQn/Pzsz66gh45C3rdDRo4gn/kjwGWOiTzxv6C7DqtE XJNt5isw29+5Clu/kCJbN6sCZLvXVVTD7Mk49XXuS3C41fmxcDoIRrSYyUGm1hHILuHK tMJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=0Ok93GJWyrMcrmPIyqLBZtZS7FS1V8QUfQQLkNG7V8I=; b=HuIcTAT8dWAHC+VnN8295kgL28Sy6tR8NXcc9BRzUY3iAckVoI/F8RpftyLGVGAFDU 6K0BOu7tU4rhgVefD2TgM2VY32zuHEVTrunynmDazXLVzcG5jxiWjodFb2BOzl0oECYp oK9L1NnIvVZBsqPJCZZ4dxmsBbIuxZhCg5mgBqsWoOKnykW6p5sfcMVYzORZQFsD3Xut AggPJ8fUBiR6t+Qpo9Gb5aGBxNUily2Ica8kwDQfGoIYLWxaQH9xBmrF1BsnUJVz5SBF EL4/hqFtxhcvbFSPSDNpn4tYjLoYzKtUMJASzXZ6o+WShIUkrMEe/hOT6TALcx3WgOle oI5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=bTFzpXIt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si2578386ejb.124.2020.04.21.21.21.14; Tue, 21 Apr 2020 21:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=bTFzpXIt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbgDVEUK (ORCPT + 99 others); Wed, 22 Apr 2020 00:20:10 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:43563 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgDVEUG (ORCPT ); Wed, 22 Apr 2020 00:20:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1587529205; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=0Ok93GJWyrMcrmPIyqLBZtZS7FS1V8QUfQQLkNG7V8I=; b=bTFzpXItujPgt+RoU4zECn9Ov5SyDcx5iQLxTccZaibML88OcCM+F8ESpRsLxRLg9LvG0aKT X2240i/F0gonrnhxWWi66lUobKTzr9z6SLUvxlInvlaFq4cdd/k7Etn66rpdfodmpn112hgJ mn/p92+fBxNdz7dQ2/SVtmjjAP0= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e9fc5e6.7f621f9a6110-smtp-out-n01; Wed, 22 Apr 2020 04:19:50 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id F3148C433F2; Wed, 22 Apr 2020 04:19:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from bbhatt-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 688A9C433BA; Wed, 22 Apr 2020 04:19:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 688A9C433BA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=bbhatt@codeaurora.org From: Bhaumik Bhatt To: linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Bhaumik Bhatt Subject: [PATCH v1 0/8] Bug fixes and improved logging in MHI Date: Tue, 21 Apr 2020 21:19:27 -0700 Message-Id: <1587529175-27778-1-git-send-email-bbhatt@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A set of patches for bug fixes and improved logging in mhi/core/boot.c. Verified on x86 and arm64 platforms. Bhaumik Bhatt (5): bus: mhi: core: Handle firmware load using state worker bus: mhi: core: WARN_ON for malformed vector table bus: mhi: core: Return appropriate error codes for AMSS load failure bus: mhi: core: Improve debug logs for loading firmware bus: mhi: core: Ensure non-zero session or sequence ID values Hemant Kumar (3): bus: mhi: core: Cache intmod from mhi event to mhi channel bus: mhi: core: Add range check for channel id received in event ring bus: mhi: core: Read transfer length from an event properly drivers/bus/mhi/core/boot.c | 74 +++++++++++++++++++++++++---------------- drivers/bus/mhi/core/init.c | 5 ++- drivers/bus/mhi/core/internal.h | 1 + drivers/bus/mhi/core/main.c | 15 ++++++--- drivers/bus/mhi/core/pm.c | 6 +--- include/linux/mhi.h | 2 -- 6 files changed, 62 insertions(+), 41 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project