From patchwork Fri Feb 9 08:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jaiswal X-Patchwork-Id: 20147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp714572dyd; Fri, 9 Feb 2024 00:51:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHGkP++IIWXAW2aopMwd2QuxhBsF8zPcg+a8DT6S/44Q895tmer5yGDJw6g1uBGB6TLeUm X-Received: by 2002:a17:906:4556:b0:a3b:d904:1b73 with SMTP id s22-20020a170906455600b00a3bd9041b73mr603789ejq.48.1707468696391; Fri, 09 Feb 2024 00:51:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707468696; cv=pass; d=google.com; s=arc-20160816; b=hZ+K3K/3S7e+UOLnIv0qUHf1Ken7eylbRoRY/43dYGcS4kstoaFZGqh5kXMquMcS0/ 8uqqNjoj8ig53/QjU+/Po52CRflKxSnNQku9gpYZ4MlBAM/AMQIxCq1UMPphlNOFw3wE FUPGNDevdhEQ1MnVifs50Q36bbkVROEhP10j4gG2ViyPR1799iKXiHAvG5ov4zIXIc/6 oEn/K+o1Z8vFiANoABQ4wLK3IIw7TzPoVCjfGQ03exH0uUU4DSEobKu6QtQa1386uChE qLOzFlQQwvz9tdse8//nr8uothM2pdLFP8cirPL48RNRysBEBn07WUduDTloT8bDJO7E l65w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6ESa758O9GnnugI6OMevXdY4QAErNX5ZAA2GAjz0VS0=; fh=aX4Ndg1ARdgyrZT+5x4zludSkN/0bG6wstAXMb/uSkM=; b=H0iCqNHxpiKItdiUXIuSd1Y8kxC7gzA2Q/fGcaxZrLeyTRYP72/jkQciqYWB2faXH1 I/hSc6EVaeDUfvTE/uDsungEO/mofcr5y6wWUQP0kCQsMO8tENmYVteAtP6PCPIH5w2L 6yuCWdR0MV+FwTZbaFT4DzIRCnp0S8W9nRQ3O8v33rRLR8pPqxmSGyi/QAbaK8tZfVmW +Gwd+FOyUPZ1sBxc+lHTkO4nuKABMz19D7Zj7w1F9e8tgwTGYY6PUPLalKriCW2G/U42 rbPax0hplBr9Y5prgqMZl+d/QZLmcVeVrR7s0DvvSad4zeGwi2rWRGzs4wy90qxSQ8gD q7Ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hwRfnVRm; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-59127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59127-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUsL7Ozd6Xb3YCy/TZvNcXjOLdC+Yr1UffPLw66z2oyPRpr14eqcmDwlZdE6ky5qMhUpm0ozDb7RbiSYWxGCrCb7M8dpQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a19-20020a170906245300b00a3882032a77si603575ejb.1011.2024.02.09.00.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:51:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hwRfnVRm; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-59127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59127-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9EA661F236CE for ; Fri, 9 Feb 2024 08:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98B2A664D5; Fri, 9 Feb 2024 08:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hwRfnVRm" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67A6426AD3; Fri, 9 Feb 2024 08:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707468653; cv=none; b=kmGmAju1P64rPQtOhs4nSO7rihMvzmwtPpLVU+evCh/vP/LveXJ+snoyT4w1VT2t01YN5HoBfENGcnk4iwBqaX5G9yyKofLukyw2pGFCJZwpZQupHKffS2i4IbHtilTVY+AcJ6kIfqAqvFJQ0cSrMavp2qmIyZ8OYcY17PJHchk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707468653; c=relaxed/simple; bh=IfoIUexxlQySeGMhV5Z1O09ANYkQ0dV1gMA3OgD7BfU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=iXAB7lrXm2KR6QEXwAbaIdszD91IKp90oNbObUwM0myJzjTyymhMJCdVJnQFuhKWM8nocNyzFYjYk88uiTrIz0AwHvDggNnaJjEL1robT+crhVwsguJ8Y4NGK4XjNe0W1joTqal6wbXNPYc67I0P3uETCnxzPEZi68iGZRMPKgY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hwRfnVRm; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4197tcJ7005284; Fri, 9 Feb 2024 08:50:37 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=6ESa758 O9GnnugI6OMevXdY4QAErNX5ZAA2GAjz0VS0=; b=hwRfnVRmbAS6YRIbAiNMVAO CbYyknyNoP1UETs+dp/J9Kiq6UwIVn96NLXGYEL8GMSmUKr7V50lZvNyc17R4586 EaCfuuX/WS7fvPhkeZM4s+pN/aw+ITlZCphkhra0UhV7FYDY05CJtXZkqrS23oRt TbLi9Ur3b/kaKNi6n7Yzzd8NKK1kse+p5eNb7JtmHF8JpI7aea4QKTgiwmjWZeCc ntx4Pj+GBMfHy7aBRNTunz7yIQO7SU+ypRNCXA746zoDMScF8xSZzq3sn/sNe8Wc maQiynvrSgm5mNCHgUI5q6GBoWzf1/k7kYk/+W+4aCfte874fOJXalcl0kagWgA= = Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w5ef1rd3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 08:50:37 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4198oask029750 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Feb 2024 08:50:36 GMT Received: from hu-jsuraj-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 9 Feb 2024 00:50:26 -0800 From: Suraj Jaiswal To: , Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Alexandre Torgue , "Jose Abreu" , Maxime Coquelin , , , , , , Prasad Sodagudi , Andrew Halaney , Rob Herring CC: Subject: [PATCH net-next v13 0/2] Ethernet common fault IRQ support Date: Fri, 9 Feb 2024 14:20:10 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: vly8mvkYUDMdMtT3HGRIA-641V9REBon X-Proofpoint-ORIG-GUID: vly8mvkYUDMdMtT3HGRIA-641V9REBon X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-09_06,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 phishscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 clxscore=1011 bulkscore=0 mlxlogscore=981 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402090062 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790410695934622471 X-GMAIL-MSGID: 1790410695934622471 Changes since v13: - Update correct sender email Changes since v12: - Update correct sender email Changes since v11: - Update debug message print Changes since v10: - Update commit message Changes since v9: - prevent race condition of safety IRQ handling Changes since v8: - Use shared IRQ for sfty - update error message Changes since v7: - Add support of common sfty irq on stmmac_request_irq_multi_msi. - Remove uncecessary blank line. Changes since v6: - use name sfty_irq instead of safety_common_irq. Changes since v5: - Add description of ECC, DPP, FSM Changes since v4: - Fix DT_CHECKER warning - use name safety for the IRQ. Suraj Jaiswal (2): dt-bindings: net: qcom,ethqos: add binding doc for safety IRQ for sa8775p net: stmmac: Add driver support for common safety IRQ .../devicetree/bindings/net/qcom,ethqos.yaml | 9 ++-- .../devicetree/bindings/net/snps,dwmac.yaml | 6 ++- drivers/net/ethernet/stmicro/stmmac/common.h | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac.h | 3 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 41 ++++++++++++++++++- .../ethernet/stmicro/stmmac/stmmac_platform.c | 8 ++++ 6 files changed, 61 insertions(+), 7 deletions(-)