Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2554468rdh; Sun, 29 Oct 2023 23:56:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1xCRaQFhNfizIC3CbCUoV+hmHN2Zwd/yZOdqYTPdbrkKxIjHbhcmDaEWk6LZOFTxd7O7p X-Received: by 2002:a05:6a20:e11e:b0:12c:2dc7:74bc with SMTP id kr30-20020a056a20e11e00b0012c2dc774bcmr13574880pzb.46.1698649010160; Sun, 29 Oct 2023 23:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698649010; cv=none; d=google.com; s=arc-20160816; b=V/fcYvJOvBqKKhluxs4hBBnlPEfTI7VMsQdKab8uWxWR8CP0tMmEaADEf6vlVPKeVh duFMD+iBMig0tKY5Ii2w1T3tpGX4fXi7bjja2giSMXS4FbRqwHD5bDUzxpY/UyOnYFaJ pNRTj3OEC31st02yqSdSkKoO7V7i/mHK5BFITi56FnQwJTUVm4OwJfcong/n4opCyiNj +OwkSezQ9GfwOnxYmjYt28bdNe2dIpjaXZZDIKbKkMs3YOQFksjsDRNJnQEPeU+l2Fe7 eRpDM5WlLCJL/H1Gy73NGx4Utbko/zIuGjgkU+Rl10SFj8O4uw3C/rhHFJ+DNTAemiqk PqwA== 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=oIofA3LrP2mhPCGKCbolfrH2JWk0y1LD29jVaFePB5A=; fh=n1jCgmvYznWjY2tnHhnN4ckYen+DlETSt4C8QFLral4=; b=IDk/z3l6EszAlEqiMAaQSK/qTd1HmscECtckX5hK5CajfSRXu4bhH7SYU6KGlnbf93 jbsb0XvV/+amcscLdYShiwjOCVY8zLc5aFZ9b+ufoL+liq14fY1XRhVnjrRFbFDI0TpK YpFOQMSYxuf/dtZQtcvqs1mmyofbDkRfxe3ZDYEdUCrs6RJOfNnu+wuIz6+kJowMFW9Q XLlsEt+oaYFqu7SX2gND1PMuIAMd80eU7Nw3PICO6INYQ4Z50g4JsQ1SQ+DnoiPKlgUe dvanfEM8JkOASMHeTyFmrXwfGaYLBGG3e4D0H42hyZFomySSYgnFzTP65Q/M9VXbaXjp 5scQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="J/tFiMw+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y22-20020a056a00191600b006c049d08778si4637519pfi.188.2023.10.29.23.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="J/tFiMw+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id CE47480AA257; Sun, 29 Oct 2023 23:56:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbjJ3G4a (ORCPT + 99 others); Mon, 30 Oct 2023 02:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231720AbjJ3G43 (ORCPT ); Mon, 30 Oct 2023 02:56:29 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C217AB; Sun, 29 Oct 2023 23:56:27 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39U4uf4p026925; Mon, 30 Oct 2023 06:56:18 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=oIofA3LrP2mhPCGKCbolfrH2JWk0y1LD29jVaFePB5A=; b=J/tFiMw+1/9YhGAPTnmYtq/HhdV5BZoI/2A+C9cPR0BGVsORyRZ+kDEXBrVrkWpDL3i6 fW31KrSJCjrGXeMIE9bInoIHN5sTVNUuoPbZJ5rzKU+NFKfBIjHWSRzbTJ45MDUoAX6F XBDLWXwXmyNF9LV2Z5BA0HEFbo/wj3tOkT8LBEjtPRb4FqAJJTeMplo+UztafydqV6NW ZqQmcIznBvFXjC8fANAIPULZFvLd5RQrrbU5i2+QHM74ttUXyv7stCuZo89eShgUVWco eF8assm2ZMZA+acCXJQJAhP27zySGD9znOeGsrolEsxeCaqUo96krlGtQx+4kH8chNpd KA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u0sw7u54q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 06:56:17 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39U6uGMG004097 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 06:56:16 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.39; Sun, 29 Oct 2023 23:56:14 -0700 From: Mukesh Ojha To: , , , CC: , , "Mukesh Ojha" Subject: [PATCH v9 0/3] Misc SCM driver changes Date: Mon, 30 Oct 2023 12:26:04 +0530 Message-ID: <1698648967-974-1-git-send-email-quic_mojha@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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-ORIG-GUID: FBxfjnsxN2Zro25taSQWLcGpGiboqvaS X-Proofpoint-GUID: FBxfjnsxN2Zro25taSQWLcGpGiboqvaS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_05,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310300051 X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 29 Oct 2023 23:56:42 -0700 (PDT) X-Spam-Level: * These changes are needed to enable download mode on chipset like IPQ9574 and IPQ5332 SoCs or also will help enabling crash dump on multiple Qualcomm Soc with proper handling of download mode bits. First two changes(1/3-2/3) are SCM driver specific while 3/3 from pinctrl try to use the introduced API(1/3) via removing the existing logic. Change from v8: https://lore.kernel.org/lkml/1698235506-16993-1-git-send-email-quic_mojha@quicinc.com/ - Introduce enum for dload mode constants as per suggestion from [Elliot]. - Rebased on linux-next. Changes from v7: https://lore.kernel.org/lkml/1696440338-12561-1-git-send-email-quic_mojha@quicinc.com/ - Rebased it on next-20231025. - Added reviewed-by tag and take care of comment made about commit text should be in imperative mode. - Modified the name of the API to qcom_scm_io_rmw() as per suggestion made by [Dmitry] - Moved spinlock inside qcom_scm structure. - Corrected the patch order as per subsystem SCM first then pinctrl. 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 firmware: scm: Modify only the download bits in TCSR register pinctrl: qcom: Use qcom_scm_io_rmw() function drivers/firmware/qcom/qcom_scm.c | 40 ++++++++++++++++++++++++++++++++-- drivers/pinctrl/qcom/pinctrl-msm.c | 10 ++++----- include/linux/firmware/qcom/qcom_scm.h | 1 + 3 files changed, 43 insertions(+), 8 deletions(-) -- 2.7.4