Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2490162rwb; Fri, 20 Jan 2023 03:45:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXvYVi4WC/QZCEvmvoTUaXqYHqSHQHY+zJ0XVCvehqYDm6hOnit60VZbsFUnZ7h844iYQFwt X-Received: by 2002:a05:6a20:3b02:b0:a2:43b7:98a6 with SMTP id c2-20020a056a203b0200b000a243b798a6mr15381905pzh.10.1674215158468; Fri, 20 Jan 2023 03:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674215158; cv=none; d=google.com; s=arc-20160816; b=sHZSEc8gprptDulmeBwarI8fFVds8RXzsQzr5LtgEHlGHy/Npe00fFdg9RbdN+4Dni 6b5njDziBFLimKlLiirk1a3bg9lbUvpRXzdKV1wP/TSXFmLZpwQvSyvn+AYifHxDazP3 ZLjW1DeJmrap+NCrrD+8LO5v4dxwWHn5YWZTN/99YoYBvNQ2EprIlpz+UU3f15Brl8dA 0QGEzs0Nj6eYCuluyuTarrWO+mC2fuL/P2nWuFG9YyWKLHIOggNNFGbqcwbTRPSKgEnr O0tUYMsfN0l2LUx8xSNrzo9QDWyLIwIajoJmtc0bqfJk1IvpKP11eDHb/6MZIRIsbr3o j+MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=4x+oveN5HSksH5HXR9dvZkMFaJRvR4Um/DT6EgamFRE=; b=lPzCkFQS5dhycDUU6RJmopisBQTkjwF4fEF4due3hILbZh5HiDdajzrVCBijLLhg+X Ky+yMbQqUwZ8PyCLJp5vweEBz0hG3qvPAnBt6GGMMsKXoUL8Nurg5Kdg3U4aL7E2TN+c crrp9GSlr5N2cBm6veZa1TsFn5MoTVgjWwrFAnxs1wzPyOHq5eY/jKZ8RMcr+s5nO6oa tuocfQPAZtQNU1H2VBuXFE4JyaNYA5EcxaiKWAVlcw75aySN1y4g0IRnCJsvisXfYcF6 TSPf8Uztqc5uPgTCLiNw2vWdY2fVtAFfU40acofZGNb+Wy+7lV0o9mBwfq6Rt6y39+vO U3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="C1/6P6iY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a631355000000b0049ea2bf101fsi41168084pgt.877.2023.01.20.03.45.52; Fri, 20 Jan 2023 03:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="C1/6P6iY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229759AbjATLeM (ORCPT + 51 others); Fri, 20 Jan 2023 06:34:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjATLeK (ORCPT ); Fri, 20 Jan 2023 06:34:10 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1ADE1350E; Fri, 20 Jan 2023 03:34:08 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30K7KfmE018346; Fri, 20 Jan 2023 11:33:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=4x+oveN5HSksH5HXR9dvZkMFaJRvR4Um/DT6EgamFRE=; b=C1/6P6iYV8sBAwf60S2A2OibvYbnKgcubuGk30OV9dKqob5fBgkMsWhOk+0npHPZ1BPH DsuEkuazKbdikWnytKD6WFT4ny27TvgBpTlyntDedzeB/cQ/JuDpgzxIHr7R+xBsuFLd RYu0N7xnQYHXVyEUmJwjR3/5tQy0kt9+bgunVtqK2NHf/QzdYLebt60WPIo/P+R7bRAY 6d1znnLbYrR4mhfnoadR1AqFGKH/aNBA3mGAzfrmjQfTShYJa3LWHo3w7/tlOLSOurqY l6wqmwjKpquUtp3nNZKB/Noa+g3JrbdRexKsGKguOiaCCkOYNEie26vdP7QEsouiwSaw rQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6xktknjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 11:33:47 +0000 Received: from nasanex01a.na.qualcomm.com ([10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KBXkIY004701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 11:33:46 GMT Received: from hu-ahari-hyd.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 20 Jan 2023 03:33:42 -0800 From: Anjana Hari To: , , , CC: , , , , , , , , , Anjana Hari Subject: [PATCH v3 0/1] scsi: ufs: Add hibernation callbacks Date: Fri, 20 Jan 2023 17:03:20 +0530 Message-ID: <20230120113321.30433-1-quic_ahari@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: pPzugPF_ZSI9f9VfafREhOIy7XfMfcOC X-Proofpoint-GUID: pPzugPF_ZSI9f9VfafREhOIy7XfMfcOC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_07,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 spamscore=0 mlxlogscore=640 lowpriorityscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200109 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds hibernation callbacks in UFS driver. Please take a look and let us know your thoughts. v3: -Address compilation issues v2: - Addressed Bart's comments - Moved core and host related changes to single patch - Note to Bart: Regrading the comment to pass "restore" as an argument instead of adding a new member to ufs_hba structure, adding new function argument in core file (ufshcd.c) is forcing us to make changes to other vendor files to fix the compilation errors. Hence we have retained our original change. Please let us know your inputs on this. Initial version: - Adds hibernation callbacks - freeze, restore and thaw, required for suspend to disk feature. Anjana Hari (1): scsi: ufs: Add hibernation callbacks drivers/ufs/core/ufshcd.c | 62 +++++++++++++++++++++++++++++++++++++ drivers/ufs/host/ufs-qcom.c | 6 +++- include/ufs/ufshcd.h | 8 +++++ 3 files changed, 75 insertions(+), 1 deletion(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project