Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp583323pxb; Thu, 26 Aug 2021 09:35:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF2DuelT7htsaZTtN5/Y76lt8lzpiNDrnJBoyrIW1xxjI7Pef4QqhNLEvj5OHmdFHkYRK0 X-Received: by 2002:a5d:8506:: with SMTP id q6mr3728683ion.53.1629995755103; Thu, 26 Aug 2021 09:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629995755; cv=none; d=google.com; s=arc-20160816; b=M+Qia6zNa3awBj/a7neZn6LtKC/ulg5/x9ivwkgj75lJZgHOg6tCsXy+EWTFu4LQzs 5Fgdhkx+5RnmBI0yei8E2uvBqi1XOzXba8zNVb6ZlF986hFwsJOHBuDVKUhKEnY40MLs ydzhY6V5pSDdWVf392azrAV4HIVH5bgyZqGTnstoz95hk7G6d7Q7j43xTyMK9+pMPG+i BaJY0NiDWh+DFA1RViOjwnI1z2dTqn/5kRlwbD5seN1VFbQTt91RdNaHL8pji19Vtmw1 0DbSJAUwJ/cRGtMCy2tgkeDOlL6Jb6tWcJnemXB/57LyT54htSMz3kAlJxYWwme25YWo wrTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4vBxNrHrvW9Eol+s7Y1qFpDHC52cDYqjzJmQoqrhhlU=; b=pANrFMrMqoiEBtDFTy5D6T0F68F9yLEyMMitnmEmTIrmdV3TWwLLEbK6DU/uobinMC sVD1SwdH8RKFf7FZBx/1zv1D7mN3zgMedxoi9BiPAsqECAfLybg5R15uf0ffxPSGhXSB 288b63Oya4eeNUQStYsFDkLxW7GFCNL6YuqkCgDD28H6r5BXqtlSDzdVBq7NKvJ0GbyQ E5/atZvdYbEHLVPx1oz6Dw0ceciLjUQXJZ4ckMMhnM0w/h0By40OgoVnQZxkXy36MFpC WG7vgVv8CM8aj0VVo/y/Sj7FiVQFvLN2TY8KBHXZNP0JaSWyohzzL2XKcuAyXjNsh2WR Y2wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="m/V6c/R5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si3313174ils.116.2021.08.26.09.35.32; Thu, 26 Aug 2021 09:35:55 -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=pass header.i=@quicinc.com header.s=qcdkim header.b="m/V6c/R5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243100AbhHZQdz (ORCPT + 99 others); Thu, 26 Aug 2021 12:33:55 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:37258 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbhHZQdy (ORCPT ); Thu, 26 Aug 2021 12:33:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1629995586; x=1661531586; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4vBxNrHrvW9Eol+s7Y1qFpDHC52cDYqjzJmQoqrhhlU=; b=m/V6c/R5lNAGVxrUHtNTkPcVjFcqp5145T2zZ2dHIM64rVrykOJl+5LL WK7f5U1LbFbZFGfQhHaFX47j/WoZ+KbJT+i0LiPpPBXUOTcu/5tb3T/E4 ybLXW8u6AdIILiVjfekW3ORe+4tGCg6zg3TKlJj1kmI2zLjMyAw/0b0jk I=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 26 Aug 2021 09:33:06 -0700 X-QCInternal: smtphost Received: from nalasex01a.na.qualcomm.com ([10.47.209.196]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2021 09:33:06 -0700 Received: from jhugo-lnx.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Thu, 26 Aug 2021 09:33:05 -0700 From: Jeffrey Hugo To: , , CC: , , "Pranjal Ramajor Asha Kanojiya" , Jeffrey Hugo Subject: [PATCH] bus: mhi: core: Update comments on mhi_prepare_for_power_up Date: Thu, 26 Aug 2021 10:32:55 -0600 Message-ID: <1629995575-32389-1-git-send-email-quic_jhugo@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pranjal Ramajor Asha Kanojiya After "bus: mhi: core: Remove pre_init flag used for power purposes" mhi_prepare_for_power_up() is no longer an optional API. All users of MHI should call this API before power up sequence to initialize MHI context. Update the comments on this API to make this clear. Fixes: eee87072e2fb ("bus: mhi: core: Remove pre_init flag used for power purposes") Signed-off-by: Pranjal Ramajor Asha Kanojiya Signed-off-by: Jeffrey Hugo --- include/linux/mhi.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/mhi.h b/include/linux/mhi.h index 56e7934..483b852 100644 --- a/include/linux/mhi.h +++ b/include/linux/mhi.h @@ -617,10 +617,8 @@ int mhi_get_free_desc_count(struct mhi_device *mhi_dev, /** * mhi_prepare_for_power_up - Do pre-initialization before power up. - * This is optional, call this before power up if - * the controller does not want bus framework to - * automatically free any allocated memory during - * shutdown process. + * Call this before MHI power up sequence to + * initialize MHI context. * @mhi_cntrl: MHI controller */ int mhi_prepare_for_power_up(struct mhi_controller *mhi_cntrl); -- 2.7.4