From patchwork Wed Oct 4 17:25:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 14934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp290470vqb; Wed, 4 Oct 2023 10:26:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELNcvLFxcuucWh0clxRXN8UneP/23z6L7dzzYiEYnb0jJLoCRYsCWIRkA28bXTrJurrJML X-Received: by 2002:a17:902:d4c4:b0:1c5:e207:836e with SMTP id o4-20020a170902d4c400b001c5e207836emr410152plg.26.1696440388014; Wed, 04 Oct 2023 10:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696440387; cv=none; d=google.com; s=arc-20160816; b=O6vG/MAId6jLVdmY7LgviO8qWnys0QOfGzuF6J0e0THA0228p+7YaPOPrWdma3+K69 hKBTvU+x/PrHBsxTe/4fcFR1I6AQns5heuZr44DpRuk0j24x3clTxcfAeHuAHZAZecKs N3qpAqZYNpGHKrlVZ0jbWmPC2Z4ucooT1BKJxHlhylSkHTB/8sJHB5nq902erCu/UILN V4jQfqr1vnvxiqwKeQ1UjbxBtIyteSYgXvHYxRTdAmYbSLqWbSDqzxKEkIMMheDYUOGu XaaBF5HG7gYFrPm9xAqs6VTKjyleQpyqGXgyTHtIl782eAReC0lkW4arzzwKIuQPLO8X NVYA== 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=d62c819H4RldyhqeJMN2hxOs+nsXLp9YLOXPSwLXCQo=; fh=F2+qJULQX8NHn6WiZYf/DRm+khqt2kgWSdsqJRFQMnE=; b=GAHTTMuWI8J0ujCh1aKRBXMgVHFpftWtJ0UHWYuXI+nSe98bK43BftwyqKwU6kg/1/ hQg5En0c9jRfhtLmBqH4AGLYUY68ZQ0HWZAHuSmMQhJv4YWrEw4hF9IVQ59W9huS2IE4 E7D4JzoCyYnwmOeBU47/LzBwT6vsNRuBqqy9O5XjIRY7oJoXxvBIV/R0q/3eVaU7q7po ppPYn1BHwEtuYYE3acYLcbDirqo3sIXbpVuSJd5eN1LpokairqgNTwoNoR6a/xNkJ7Gj 3W3yWhVBOe3JEmmsD9HMrmDcBvv84sEccDW9i5qhkdZDqWZlnVi+kSK8Uk1Jo0xhlAlP SN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iUy+qVit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ik21-20020a170902ab1500b001c61073b06bsi4057793plb.427.2023.10.04.10.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 10:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iUy+qVit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D9BAB8033DED; Wed, 4 Oct 2023 10:26:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243436AbjJDR0L (ORCPT + 19 others); Wed, 4 Oct 2023 13:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233287AbjJDR0J (ORCPT ); Wed, 4 Oct 2023 13:26:09 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5159E; Wed, 4 Oct 2023 10:26:05 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 394F9JOl026502; Wed, 4 Oct 2023 17:25:52 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=d62c819H4RldyhqeJMN2hxOs+nsXLp9YLOXPSwLXCQo=; b=iUy+qVit2KtztOn5npc1dryKQ/t2oqARFBlulD+NS7GFr+fRU373q5DzAU2npjjDMQra +Ka72ye2q7xXdBwokTai1bWOFGBR6cGdt2tIg1VG2g5R3QQ+xZrPbixznk2rxtY0dkHe /yCvCvle2wz+QH/eqHkw4PDpxJa1DLdN3UHVSs/DHW7bz93abUMUu4azVz6YT8+P5CvJ TPEZK+vsPXaJTYPKZL+LA/60m2AsEmTeGxhw82VWi4/DvwMbpKp7lKOiYWQ5hLd2na2A 23+wwPvMWnSpJbqrKnLq1z6M4XJFVGR3A808IHqbl1u4/v8ioxZjLsjcOsUreyHM6/4B YQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tgxrjt33t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 17:25:51 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 394HPpBJ014758 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Oct 2023 17:25:51 GMT Received: from hu-mojha-hyd.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 4 Oct 2023 10:25:48 -0700 From: Mukesh Ojha To: , , , , CC: , , , Mukesh Ojha Subject: [PATCH 0/3 v7] Misc SCM changes Date: Wed, 4 Oct 2023 22:55:35 +0530 Message-ID: <1696440338-12561-1-git-send-email-quic_mojha@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 12LszjTrRyYw_FdC_Y-vdqfX7tNgqkYv X-Proofpoint-ORIG-GUID: 12LszjTrRyYw_FdC_Y-vdqfX7tNgqkYv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_09,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 clxscore=1011 suspectscore=0 phishscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040125 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 10:26:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778846676197323991 X-GMAIL-MSGID: 1778846676197323991 I have given version to this series as v7 as it has already gone through v6 and later got added to minidump patch series However, these 3 patches can go independently and has no relation with minidump hence, separated it from minidump series. Change from minidump-v5(13/17-15/17):https://lore.kernel.org/lkml/1694429639-21484-1-git-send-email-quic_mojha@quicinc.com/ - Removed mistakenly added macros. https://lore.kernel.org/lkml/9da888dc-401a-4cbb-b616-b4654fa79e35@quicinc.com/ - Added Acked-by tag from Linus.w to 2/3. Changes from dload series v6: https://lore.kernel.org/lkml/1680076012-10785-1-git-send-email-quic_mojha@quicinc.com/ - Rebased it on latest tag available on linux-next - Added missed Poovendhan sign-off on 15/17 and tested-by tag from Kathiravan. Thanks to him for testing and reminding me of missing sign-off. - Addressed comments made on dload mode patch v6 version Changes in v6: - Applied suggested API change(at v4) by [dmitry.baryshkov] Changes in v5: https://lore.kernel.org/lkml/1680017869-22421-1-git-send-email-quic_mojha@quicinc.com/ - Tried to fix the issue reported by kernel test robot https://lore.kernel.org/lkml/202303280535.acb66sQT-lkp@intel.com/ - Applied some of the improvement suggested by [Bjorn.andersson] . Dropped 'both' instead support full,mini or mini,full for setting download mode to collect both minidump and full dump. . logging improvement. Changes in v4: https://lore.kernel.org/lkml/1679935281-18445-1-git-send-email-quic_mojha@quicinc.com/ - val should be shifted within the function [srinivas.kandagatla] i.e new = (old & ~mask) | (val << ffs(mask) - 1); - Added Acked-by [linus.walleij] on pinctrl change. Changes in v3 : https://lore.kernel.org/lkml/1679070482-8391-1-git-send-email-quic_mojha@quicinc.com/ - Removed [1] from the series and sent as a separate patch[2], although this series should be applied on top [2]. [1] https://lore.kernel.org/lkml/1677664555-30191-2-git-send-email-quic_mojha@quicinc.com/ [2] https://lore.kernel.org/lkml/1678979666-551-1-git-send-email-quic_mojha@quicinc.com/ - Introduce new exported symbol on suggestion from [srinivas.kandagatla] - Use the symbol from drivers/pinctrl/qcom/pinctrl-msm.c. - Addressed comment given by [dmitry.baryshkov] - Converted non-standard Originally-by to Signed-off-by. Changes in v2: https://lore.kernel.org/lkml/1677664555-30191-1-git-send-email-quic_mojha@quicinc.com/ - Addressed comment made by [bjorn] - Added download mask. - Passed download mode as parameter - Accept human accepatable download mode string. - enable = !!dload_mode - Shifted module param callback to somewhere down in the file so that it no longer need to know the prototype of qcom_scm_set_download_mode() - updated commit text. Mukesh Ojha (3): firmware: qcom_scm: provide a read-modify-write function pinctrl: qcom: Use qcom_scm_io_update_field() firmware: scm: Modify only the download bits in TCSR register drivers/firmware/qcom_scm.c | 32 ++++++++++++++++++++++++++++++-- drivers/pinctrl/qcom/pinctrl-msm.c | 10 ++++------ include/linux/firmware/qcom/qcom_scm.h | 2 ++ 3 files changed, 36 insertions(+), 8 deletions(-)