Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp902058pxb; Thu, 5 Nov 2020 16:38:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlkT8x7FJfKedgbiBthlMu5LsCtC2GDT7exiPpjr7+Vz+39EzrLKMd0UwlJ4y7viwGigjF X-Received: by 2002:a17:906:4748:: with SMTP id j8mr4810921ejs.22.1604623131007; Thu, 05 Nov 2020 16:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604623131; cv=none; d=google.com; s=arc-20160816; b=BTfh2HiPl3Qcpx1xzKsZAvZMJl5J9j3Q3PIRRcNqOipLS7J6BnaRWLq23CrAZ/X5Vm DTjH0/ADm4udBylw0r1Y3F/ye5ld0JZLZPhJWdaGWjoV6dwQHM9iLiblEyw6sk6hXvXG ui+OXjmODB3udm4oerEDpXZlcH0JxGcZz73IdvpaDebT0Y6v1WEvCLKIOgxIcwrSq99S hEjwnwjTHUdafSrDGJ8b1HuXmJH17V1oTGnbl8XFghaM5kPX3s3knfOCbrX6sr5KaJGd kf/H2d9SzgrK5AuZrh/igrk6zyfk57DM8ej+3GW/M7ziBDNEvq2AQEhM0Id/pvGxGSTW tQ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=5fSP9DGFmy4a1RHdL6fQ6JMKD/ca1zSQadjTIA+5pME=; b=KKtV2sq1klyu5mYj4WbXE4XQ1fY2dMkmbteVzTuc0+rlMy6JuBYy+eSjZ1grPfdzTk SFmP4nLkfNCFBCofuiyH8EfgDWW8Su8gRBThGE7Vir6EFqtWTQ/M7TZhuqWzrbp+to1r dAiWZuhpmaKVCZvC0Y5QwC09BJ49DCUp8hMF1b8KcqRsJ2dhW1jQq0Juujnnd045sqBt wklorcVIuEe1bB/8K7939r1Vt+Q93zBFaBnDf9odbK6RKSqTof2GT00wraL5KU8rHGBZ bH1JVrhINkRlhcwIfYCPSoRLWwyNlCMP9MkW9GVqv1v2dSxJe40TisFWU0LnAKsljUFi 9NyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="O6V/poYB"; 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 v10si2576540edi.16.2020.11.05.16.38.28; Thu, 05 Nov 2020 16:38:50 -0800 (PST) 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=pass header.i=@mg.codeaurora.org header.s=smtp header.b="O6V/poYB"; 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 S1732926AbgKFAgF (ORCPT + 99 others); Thu, 5 Nov 2020 19:36:05 -0500 Received: from z5.mailgun.us ([104.130.96.5]:32973 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732858AbgKFAgE (ORCPT ); Thu, 5 Nov 2020 19:36:04 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604622964; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=5fSP9DGFmy4a1RHdL6fQ6JMKD/ca1zSQadjTIA+5pME=; b=O6V/poYBJzf2KGbnM2sa/2e7N//kXkOlcv5PaJ8EHuyWx/Mp1GRQSdV+izE69Eh8HwhFbgfH WHRq8vXuBzucglxysRyMnyHamKhbMlLQ2lLtpsI53gav3LNhwFhgv5m884ucQmKY9AqC8dH1 hkz2o7xbW8j7BD2XMGi0boyx3rk= X-Mailgun-Sending-Ip: 104.130.96.5 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 smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5fa49a1e903b44cb0e87b5ee (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 06 Nov 2020 00:34:38 GMT Sender: bbhatt=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 67787C433C9; Fri, 6 Nov 2020 00:34:37 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from malabar-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 6ECE9C433C6; Fri, 6 Nov 2020 00:34:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6ECE9C433C6 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=fail smtp.mailfrom=bbhatt@codeaurora.org From: Bhaumik Bhatt To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, Bhaumik Bhatt Subject: [PATCH v1 0/6] Minor bug fixes and clean-up for MHI host driver Date: Thu, 5 Nov 2020 16:34:23 -0800 Message-Id: <1604622869-40212-1-git-send-email-bbhatt@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series serves to clean up the MHI host driver by removing an unnecessary counter and an unused function. It also renames a function to make it clearly worded. There is currently no user of this exported function which makes it is safe to do so now. Bug fixes include adding a missing EXPORT_SYMBOL_GPL to a function, and adding a return value check to bail out of RDDM download in kernel panic path. An outlier among the group exports the mhi_get_exec_env() API for use by controller drivers, in case they need to determine behavior on the basis of the current execution environment. This set of patches was tested on arm64. Bhaumik Bhatt (6): bus: mhi: core: Remove unnecessary counter from mhi_firmware_copy() bus: mhi: core: Add missing EXPORT_SYMBOL for mhi_get_mhi_state() bus: mhi: core: Expose mhi_get_exec_env() API for controllers bus: mhi: core: Remove unused mhi_fw_load_worker() declaration bus: mhi: core: Rename RDDM download function to use proper words bus: mhi: core: Skip RDDM download for unknown execution environment drivers/bus/mhi/core/boot.c | 13 ++++++++----- drivers/bus/mhi/core/internal.h | 1 - drivers/bus/mhi/core/main.c | 2 ++ include/linux/mhi.h | 12 +++++++++--- 4 files changed, 19 insertions(+), 9 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project