From patchwork Fri Jan 19 09:41:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 189463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp896511dyb; Fri, 19 Jan 2024 01:41:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/ZsgqUOxl2bBn0weh3a1T+DlCTGhQ2jQB/fdnLSlJxe8Gbhxq6bDDp7+HI/4J5yFR4N2x X-Received: by 2002:a17:903:22cf:b0:1d7:24e3:7047 with SMTP id y15-20020a17090322cf00b001d724e37047mr184144plg.135.1705657308464; Fri, 19 Jan 2024 01:41:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705657308; cv=pass; d=google.com; s=arc-20160816; b=W3oD3+y/aKk/GPrcpDuqVlwQvFi/FtvyeMaa6kQNgfoyt0U76dHlz1a8g37FxPDyQH kIS0FgpVFw7r+5e5YzLCaNZKRsb01SN7/CismB1Zi+PiK4jZJz5Zu9FertC1J6F8dbzv UcYNklTsuigOoQaRWZ+F2G2mMkfrzPhcJGr9nxDFv7sWpKrEJaO0/rDPv79G3YaQgVZ3 D23wgvFCnNlj/2FNP/ML6M5+IODbS4K8mcfP6tQ2B9vyYnofmtIkcQTnrE9rYuEn6+gF OL7TahaB4SANUW07mgEjD2TyAHZ4kw25ZJsDW0mrqgUD5NliD5SIuFmMkvGSmjqzvcOT jnAw== 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=wwZKZUjRjs3XCXeM2yTPtJdlhSE2Am3dRvCgFqrlgko=; fh=3DbeS6A7vcTHowuUhqVVSmrEZTARSFLKViMoRhstT5w=; b=gklzPSaKt1mWl4/CrGUvoiROV4hyOr6vum9JgZwXIhWMd66IJc8WJtQjSv2zx7k9Nv gXu1GPO6LCHxXgL+VjpeHrMZ/Gf/gkliOmg4BMV6JVIG4vJNit2Tfjyai3TfUWZqziTq QdgF4CVb5sfuX7NHUuBsOPH2FqsSw3MiUdsjCV2KwCEslk1H1/XD5jodDdUR0TJwFi4B OQZ4xrupIAnoRxTPDvX5AqOl3nmfB0h7L67TER8e1cv9NPTRk9m1wYLdfXIbK/5GrBPE VRad3M9oCmvhOVkTz9Zo3iwl857rBs3oCZ8CsyQY5b9ZplM33GfdOp1nJjbWWyoIIUCy GOHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4TpAef1m; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-30960-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30960-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t8-20020a170902bc4800b001d6f3a92b6dsi3008895plz.179.2024.01.19.01.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 01:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30960-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4TpAef1m; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-30960-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30960-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E2D8285C30 for ; Fri, 19 Jan 2024 09:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F9663C494; Fri, 19 Jan 2024 09:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="4TpAef1m" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 4BCEE8F4E; Fri, 19 Jan 2024 09:41:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705657272; cv=none; b=ria8YcpI40T19Edc20Ta5Gy71hPUDZP3y3ZFka/UAWYlwvpdzEeKkeQxxRhjhh/SYbq3expPhY93OtHzzU7fXrK1o/JFiPVnkRqe6k1rC5On7E8pBv/e3onxm4D4KfIOpDFU/1kybnht79xxPqZitsRoS7h4A9cA12EkTpsr79s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705657272; c=relaxed/simple; bh=0cDiESFvb7qa9miqI4BzCZ+472VCEQGuIk9jkGeCoRw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=orS3RZ97xnUKvDl5wo5r8Tc4WXciFg0HRmQN4DIyJ5WM54TcTrJmenpqlEKRe5U7j4RT8Vvi/fN6nPI6ZWXkBreToLNded/cPzgBsG+wZ971ZkvruIqKv9N057m+u2V60HCbZsh5rLXvcnZERlQzU6T9fgBmHqpTG4aQyFIqwGI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=4TpAef1m; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705657269; bh=0cDiESFvb7qa9miqI4BzCZ+472VCEQGuIk9jkGeCoRw=; h=From:To:Cc:Subject:Date:From; b=4TpAef1mYqd/vXLVqPxRe+vRI+fmsaz79QlIT5ypjuDI09RFBTsEZM6vwSCyZRpfC JW7ULhVzEtdRVphkjqkhLQpFGtHSXq/e5nbCAbCv//33K4hFSZM9ApTPMwguJ6oVRp A3d5MekwJLbfuZ5xzzPG6GreWj980WVOH86OHxtcMw5ADzYrzGROfjVGSFYledLfQv u7BPKoGXRGUmAU94knmOFR6rd/7reWdgPl3jLGkzRcswBjwXNnXZfpKUqpY6OcpUMW Ffq8KkJ6EISw7LxSVAkMnAggqT4Bw8sfgv9ugvw6GY0OHBbClbDKtGcgR4uezKmaVe HRAeHRMDAhWiQ== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 7088D37811F1; Fri, 19 Jan 2024 09:41:08 +0000 (UTC) From: AngeloGioacchino Del Regno To: chunfeng.yun@mediatek.com Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux@roeck-us.net, heikki.krogerus@linux.intel.com, cy_huang@richtek.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: usb: mt6360-tcpc: Drop interrupt-names Date: Fri, 19 Jan 2024 10:41:04 +0100 Message-ID: <20240119094105.98312-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788511317596123495 X-GMAIL-MSGID: 1788511317596123495 This IP has only one interrupt, hence interrupt-names is not necessary to have. Since there is no user yet, simply remove interrupt-names. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml index 053264e60583..339bc9c00ac0 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml +++ b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml @@ -22,10 +22,6 @@ properties: interrupts: maxItems: 1 - interrupt-names: - items: - - const: PD_IRQB - connector: type: object $ref: ../connector/usb-connector.yaml# @@ -58,7 +54,6 @@ examples: tcpc { compatible = "mediatek,mt6360-tcpc"; interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>; - interrupt-names = "PD_IRQB"; connector { compatible = "usb-c-connector"; From patchwork Fri Jan 19 09:41:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 189464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp896582dyb; Fri, 19 Jan 2024 01:42:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvQwu3ZLoqGnJceoU3nMVAd7LKtxpMVN+Sq5lLu7BEEsiK6P1UoBPccICOybM8tl+POeMO X-Received: by 2002:a05:6a00:88a:b0:6d9:c0a4:67eb with SMTP id q10-20020a056a00088a00b006d9c0a467ebmr926187pfj.35.1705657322215; Fri, 19 Jan 2024 01:42:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705657322; cv=pass; d=google.com; s=arc-20160816; b=oHEz6McpvLn3VKFUnoXNjMf7Eew9IvDmkAf4DTF1FSA61B4kLKgXQk3kK19O4XYf9D WaWBm+9KjEcIQrUUMJ8nG5R5+ha0/ugywo+6zyR2IMM84Ef9QA1U95BwbYwiNm1ztJE3 76/+DMS55uOBsah4svCpdRN6hnHDdFsjQ+6IWBMNycdNQconiUwrvxGZAhyWeN6SpCOt XIqvzJSE1THD5xYbjDnfcyBT0rNvenmuDCNl5dqSwJp07LLb35CFi9fEagHN9bfUskAI z5z7Hc2DvCEzAvKb6kVmTS5ZrRCPZolwLruzEgMtL1KGRh7OL/LB+D11Qt66iE/uDDdU vLdA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=eQxCOkiJPm7iwfjWyWSuO6zq1Afslf9Y7Ms3VqNGulg=; fh=3DbeS6A7vcTHowuUhqVVSmrEZTARSFLKViMoRhstT5w=; b=GNX7IU91KngEdtCAJsctANE1h/W0tDUmPcxPpW8n9R5rcRMGH7HxGc1zx6WjcVTrWa +RLiuFoTvkjjnQyVvFAfdPiB9cFzX/Xe7wX/knpwWv+H9d5cmKfHooPNrFYzqURrwkGc gZ8Mf61GreNqsmNFsm3rJHvJidognyJ0FmWrtYJdQEzodIJ2jZ0vEBof9T4ppGOjJUc6 SE1bGzighQ9XR3/sXye2lkT9WfpH+G0+E5bVSMLXe3PaWxI2+L2yzOvHF+R3v9ykCCT8 2LVJ2RSkNGSlSHxFd6NZchDgNbZ2KQkcEr9m4P0bEI55FabBJ0US18PPOHnEpSaBgonx 8EPQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qaf1uNM7; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-30961-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30961-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i5-20020a6561a5000000b005cec855e691si3076779pgv.761.2024.01.19.01.42.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 01:42:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30961-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qaf1uNM7; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-30961-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30961-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1102E283D46 for ; Fri, 19 Jan 2024 09:41:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CBF03CF53; Fri, 19 Jan 2024 09:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Qaf1uNM7" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 522463C486; Fri, 19 Jan 2024 09:41:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705657275; cv=none; b=fmTjodymeSM66Nr3h7jYUj1Cy7L1wl9qe9mfm2sQx6ljvMBpnx5pZx+JiUkhCWdfB0t+AKmY8/B4XAEMk6nd6BtLEANKg3q5wCM5+b413J/bHUz9VPs/+CJ5Ptn2hdMoutFs5QsoMal0B6kefgFQ6s4jsACDcpUoZrWmfZRhL5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705657275; c=relaxed/simple; bh=h9uUY0ElHE1xPzVp2yObyryTAaJ1/QLLOx9ZjW31TdE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P4Azm1SBUuQG2H6TUZ8ixuqMb2PLHGLEiCbok5C6HK8beO09YKR+NjKqKR0y1VWIS5xFAuoBLWFrXzb1wllzSKXN0ZJ+rR7sTwjDqS3ToPp2owdmWpHZkwVSBbjOp2Paa/1dy9bVkV0yS+nyntPwiC60swuNjCm58VKDPHdUBO0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Qaf1uNM7; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705657272; bh=h9uUY0ElHE1xPzVp2yObyryTAaJ1/QLLOx9ZjW31TdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qaf1uNM7ZnUmYSVUcKvWGgF5F05PjhQqk0WXXNVvw9pKdbaakpS2bQvUvQunYRpyL P6/KX//n8V+IzCWiQvySCN0f5ivQKCwwr7jIRqt97C/bDA5607BJ7X2pSFrs/K1Spr +b5pXsObiYIei8G+U0kSqucmSi6cJMLK/1q/5LEp8jNhMdBF3IHQW4SPEzN9Xcn41F FUxc3mWSFkQq6Q80+TyhRrwkwZVbDQcuMD6CmsO1Z9pDMfeuMJ51xkKrCkGsgHvdmr iztszn5SOuYz3f5PwEsFmnWzdMGML5IuUFc+lWZYsHQ3gtNTX3jOS9iY4xcFxnTAzy 45X0Nd+OykChg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B54243782081; Fri, 19 Jan 2024 09:41:11 +0000 (UTC) From: AngeloGioacchino Del Regno To: chunfeng.yun@mediatek.com Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux@roeck-us.net, heikki.krogerus@linux.intel.com, cy_huang@richtek.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] usb: typec: tcpci_mt6360: Retrieve interrupt by index Date: Fri, 19 Jan 2024 10:41:05 +0100 Message-ID: <20240119094105.98312-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240119094105.98312-1-angelogioacchino.delregno@collabora.com> References: <20240119094105.98312-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788511332545607562 X-GMAIL-MSGID: 1788511332545607562 This IP has only one interrupt and names are not needed in this case: change to use platform_get_irq() instead, dropping the PD_IRQB name. Signed-off-by: AngeloGioacchino Del Regno --- drivers/usb/typec/tcpm/tcpci_mt6360.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c index 02b7fd302265..171592ae1bbe 100644 --- a/drivers/usb/typec/tcpm/tcpci_mt6360.c +++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c @@ -153,7 +153,7 @@ static int mt6360_tcpc_probe(struct platform_device *pdev) return -ENODEV; } - mti->irq = platform_get_irq_byname(pdev, "PD_IRQB"); + mti->irq = platform_get_irq(pdev, 0); if (mti->irq < 0) return mti->irq;