Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3921658rdb; Mon, 11 Dec 2023 04:11:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJVux/mXGNsu5KHGw8SkbtU8nzAT7zuI9d/qWwkTyuh/NkMi4d9Y2xtzapaTVakdIkmz39 X-Received: by 2002:a05:6a20:bf10:b0:18f:bfc2:f47a with SMTP id gc16-20020a056a20bf1000b0018fbfc2f47amr1974564pzb.109.1702296717743; Mon, 11 Dec 2023 04:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702296717; cv=none; d=google.com; s=arc-20160816; b=kSK8jq0483LjZOz9AtBfwR1kahPPgaVAEFSq4+eaz940aw9cXKhmBpuo5IJ9XIOUVL Znnx2e7sZhSyZCu6p1dvn4AZGzeAgIAphe8Fo4URefSkhVhoCFVuNi0QWtVRfUDqtj5V 8gcwQh6e/rKspaIEuRAd4OR/cHf5pNFI7kBCaUsE43OPmS7FyF+rE8pddK2pYSqLat5i r230e8CHofP1wNN14A1vdcdQ6eB3CLyuI34SwmZMlaO7GeojOhn09622lZlCG1vli+RN RiSlzRymvQaJ9b49OucDhGCrtxuufvFJhkfj3Q9P0QiFaSNwnjRO85gTK6vYSTCk9anX QuSw== 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=jfSzZRJapzDvSXGI50ehotgDMLNecCaroJgqyOMV6Qs=; fh=PAyRMVQ7FEvWTJBMEQddJxl2W75LgJu86czp4M2Lwp8=; b=OYyFz8Rg5qVMs04kY1WrxTL5O1sJ6IZrNDRKjYdxuHNFezgJGG5sqwRdK1XCD9InD1 DhJc70ZUNgBrphlVPji8Ssbp9Dr+IGnEo7OSh3YgYwj1QTfudfmgbr9akChRClQ84RIE RTxX1qAgz/LyZSTNgRa9czBP0GeVMbP4C1EYGnAVPQGA/XkPpG31b1u77l/JD7ErDSvh zCl9miKQj0VBJ7LKgeKbiKV6Yar9suguyKnK4AbkkcFZxnymzoPUPxA1aSRZEdGzo0SY Tk7oiirpTAntb5qR3mleGsaVbPqimHx+nDEs83ftmSVmi2knibkCUyMK0M7lvnVWumdi gPzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cJrhGm0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t13-20020a056a00138d00b006b7560385efsi6115609pfg.203.2023.12.11.04.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cJrhGm0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 27838806899C; Mon, 11 Dec 2023 04:11:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234333AbjLKMLl (ORCPT + 99 others); Mon, 11 Dec 2023 07:11:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjLKMLk (ORCPT ); Mon, 11 Dec 2023 07:11:40 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68AFFA9; Mon, 11 Dec 2023 04:11:46 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BBC97TA008390; Mon, 11 Dec 2023 12:11:40 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-transfer-encoding:content-type; s=qcppdkim1; bh=jfSzZRJ apzDvSXGI50ehotgDMLNecCaroJgqyOMV6Qs=; b=cJrhGm0mEvhEk5qS41PdNTg nXIUv/ZYFb+7KLlax1mrMhE5qTjLirn17jvtLAYbgUHw1tXcMTOsyw3vlxy2nVPJ m/d3JXsGjSUj7yZOT6DDkUL4hyJ9jmckk1Hf3Dx6jldMxlTT+L/lIljdseG167Cs LP4JICAPLOicwO2WEZzUsn2ME5jtrCuQQA0qmbTdQ/V6kKageBmTqwIIVBPTcr96 HPFd5EScqYhigR4Xm966wZzDde9Xb1Z541LiYoqIEQBYpIWhIyLns7uF3m9MdynK JrRJhxGsZ82M4OzP0oGuNrJKrSWHovh/mhL3WJWNR951G9Q4+3fYQoZSMNsyc+g= = Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ux25xg053-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Dec 2023 12:11:39 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BBCBcVI011749 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Dec 2023 12:11:38 GMT Received: from hu-kriskura-hyd.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.1118.40; Mon, 11 Dec 2023 04:11:33 -0800 From: Krishna Kurapati To: Thinh Nguyen , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Wesley Cheng , Johan Hovold , Conor Dooley CC: , , , , , , Krishna Kurapati Subject: [PATCH v3 0/2] Refine USB interrupt vectors on Qualcomm platforms Date: Mon, 11 Dec 2023 17:41:22 +0530 Message-ID: <20231211121124.4194-1-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: x_vb-P2GzOmAT0sLOJMFL79WA-rBgnxf X-Proofpoint-GUID: x_vb-P2GzOmAT0sLOJMFL79WA-rBgnxf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 clxscore=1015 spamscore=0 lowpriorityscore=0 mlxlogscore=894 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312110098 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Mon, 11 Dec 2023 04:11:55 -0800 (PST) Qualcomm targets define the following interrupts for usb wakeup: {dp/dm}_hs_phy_irq, hs_phy_irq, pwr_event, ss_phy_irq. But QUSB2 Phy based targets have another interrupt which gets triggered in response to J/K states on dp/dm pads. Its functionality is replaced by dp/dm interrupts on Femto/m31/eusb2 phy based targets for wakeup purposes. Exceptions are some targets like SDM845/SDM670/SM6350 where dp/dm irq's are used although they are qusb2 phy targets. Currently in QUSB2 Phy based DT's, te qusb2_phy interrupt is named and used as "hs_phy_irq" when in fact it is a different interrupt (used by HW validation folks for debug purposes and not used on any downstream target qusb/non-qusb). On some non-QUSB2 targets (like sm8450/sm8550), the pwr_event IRQ was named as hs_phy_irq and actual pwr_event_irq was skipped. This series tries to address the discrepancies in the interrupt numbering adding the missing interrupts and correcting the existing ones. This series has been compared with downstream counter part and hw specifics to ensure the numbering is right. Since there is not functionality change the code has been only compile tested. Changes in v3: Separated out the DT changes and pushed only bindings and driver update. Modified order of irq descriptions to match them with permutations defined. Fixed nitpicks mentioned by reviewers in v2. Changes in v2: Removed additional compatibles added for different targets in v1. Specified permuations of interrupts possible for QC targets and regrouped interrupts for most of the DT's. Link to v2: https://lore.kernel.org/all/20231204100950.28712-1-quic_kriskura@quicinc.com/ Link to v1: (providing patchwork link since threading was broken in v1) https://patchwork.kernel.org/project/linux-arm-msm/cover/20231122191259.3021-1-quic_kriskura@quicinc.com/ Krishna Kurapati (2): dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings usb: dwc3: qcom: Rename hs_phy_irq to qusb2_phy_irq .../devicetree/bindings/usb/qcom,dwc3.yaml | 138 ++++++++---------- drivers/usb/dwc3/dwc3-qcom.c | 22 +-- 2 files changed, 70 insertions(+), 90 deletions(-) -- 2.42.0