Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp864037lqj; Mon, 3 Jun 2024 03:17:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyO54tK0XYhno6rs37Hz1lJH6jzk+a9JHAOha5kTOTcgfUTYe98lEI6nQgaWVQfNT+zLDks2Fp32Zmv4F/OEcEUeX99WBB+0gzBgHjzQ== X-Google-Smtp-Source: AGHT+IGAM3Pm0MOOjXW9EQk098j8eyq2I+WH9Qt+cqOVbRH59oIk4hbjGCx8xq0tdOOEUOsyVwGS X-Received: by 2002:a17:90a:300f:b0:2bd:6f2e:8c1a with SMTP id 98e67ed59e1d1-2c1dc568f9bmr6713445a91.2.1717409856037; Mon, 03 Jun 2024 03:17:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717409856; cv=pass; d=google.com; s=arc-20160816; b=ZLcXaLxNhaUuycvOVx6kItsSXEQEcLl64KxcHYDRQOrA0KxYEUWbi8vKQNooU2uOBd qt+/psGn/aovqzePe1EYNKS1t22JsOxs+bAgzIRqMwUFe9e9Rii3HubXCznnuYUToDaZ rzTJNrRMffmnSwuZjnoaVquuKgSYaDVQyVGR8UUMsKWmasrjsL9SkM6KUb8of535FuPt Y32fuvDCjd4jaCWASHRqIBqKUcmxPJ2lxq3lHnl67hsqUnPhTY8/vHx7j/EVDr7SLxqK SZ/YoLKJfKtLxIJYPbzSqBZb2p/AeLIXc42dUWfKBXwaQwNO9XGQvK9rEad33KbrkdMp z3vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Y4VG6T7y3DVLYv9REYgdn0MCsEnDoxm4kG3aaig4WS0=; fh=5KlqkDKTb4Hnu6gkWDWMHkYDdwMF+v2DA+zPboTRg9k=; b=zrWxRie+cMo5si5bgK3PBFCpOjXSVSpDxc9vOVNmENW0hhuxuy18HHJ1EFBJolo2G2 vAWJU7hW0+5u73o9mKvHJUYeAKp8eaFxTcb5flW+rpeY3KWDuYs3+U9e/iV5je2gCD+T dtqBZNoSPb+FlbzWtk2kWnknpZ2TgTBDZfQ1bMNNQnaEsHgoyXs31Di3YszBrjnu46wS Cos6oALy4z81qZ2cuQGwD2p+1CKO9XFDoHjjOQHmx8O3M4VI/Ymon3NplczndGpn0pwA l5rQwfae4unvaKjLLJX1x3RXDD+GX2y3IdMj54f+zEBbUENGqniz8IQaFe//lwfxKLNZ ICxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=soRzjQM2; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-198949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c210915bccsi3251155a91.60.2024.06.03.03.17.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198949-linux.lists.archive=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=@siemens.com header.s=fm2 header.b=soRzjQM2; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-198949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.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 E710228CB6F for ; Mon, 3 Jun 2024 10:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C132C8288D; Mon, 3 Jun 2024 10:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=diogo.ivo@siemens.com header.b="soRzjQM2" Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) (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 D7FD37F7FB for ; Mon, 3 Jun 2024 10:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.64.227 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717408953; cv=none; b=JfbhMt0Q6yBSC57FDf75xu37vaMrNTU7vRT3L83g+m1s5duHOcgDE6MNT1qWttoRM4W+Zg0fHDo17ZMhWHE1T+aAAtA/YFzMeg0lRN7pZqveGPklsom1nUvFy33Wlvk0kwIV+j4MFUoC/ey62Vqkx5IYAbHVMc0CHfNyhUW6w7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717408953; c=relaxed/simple; bh=6F+xgND2wYgrZVy5rOZdN1AVq49OQhyqsp74cZfsGNk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=enZ9D/ZAna6yCV6vSvkGPkB2YS4vq8JjqmcKluZH995GCayZ0Y179Yn+2TBIJthaw+UyRI0GGX06+SNHj47XOr0KhIlvJ0ttJ7hSEDSqG1BdMWEC48fOJnJLdUq5p3YcaIj62BNd6VpGm+ROqz/cY6hgkKiaE3iBiNPnM1Q3sCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=diogo.ivo@siemens.com header.b=soRzjQM2; arc=none smtp.client-ip=185.136.64.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240603100222fc1adba41f4a501b55 for ; Mon, 03 Jun 2024 12:02:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=diogo.ivo@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=Y4VG6T7y3DVLYv9REYgdn0MCsEnDoxm4kG3aaig4WS0=; b=soRzjQM2CxQYYzgwtxuKadFJBzAJjanFvejtSIQqpyo6355G0LB/n4KyNnMoDrB493BKKM 9SmB9SJ59sPEK/9z+XxtQlEmNxSslRKmCVvsSR+wUUc+inR/JQhgkzkWWz2mOvEDKntYbbfX DdhaFYOs4E91XOcdn74XTDwW/TK5I=; Message-ID: <3b8ef6f2-4a06-4028-8a6f-f63b30ff8930@siemens.com> Date: Mon, 3 Jun 2024 11:02:20 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [EXTERNAL] [PATCH 2/3] net: ti: icss-iep: Enable compare events To: Sunil Kovvuri Goutham , MD Danish Anwar , Roger Quadros , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jan Kiszka Cc: "linux-arm-kernel@lists.infradead.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , diogo.ivo@siemens.com References: <20240529-iep-v1-0-7273c07592d3@siemens.com> <20240529-iep-v1-2-7273c07592d3@siemens.com> Content-Language: en-US From: Diogo Ivo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1320519:519-21489:flowmailer Hi Sunil, On 5/31/24 6:12 AM, Sunil Kovvuri Goutham wrote: >> From: Diogo Ivo >> Sent: Wednesday, May 29, 2024 9:35 PM >> >> + iep->cap_cmp_irq = platform_get_irq_byname_optional(pdev, >> "iep_cap_cmp"); >> + if (iep->cap_cmp_irq < 0) { >> + if (iep->cap_cmp_irq == -EPROBE_DEFER) >> + return iep->cap_cmp_irq; > > This info is coming from DT, is PROBE_DIFFER error return value possible ? From my understanding -EPROBE_DEFER is a possible error code. platform_get_irq_byname_optional() will eventually call of_irq_get() where we get -EPROBE_DEFER if the IRQ domain still hasn't been initialized. >> + iep->cap_cmp_irq = 0; >> + } else { >> + ret = devm_request_irq(dev, iep->cap_cmp_irq, >> + icss_iep_cap_cmp_irq, >> IRQF_TRIGGER_HIGH, >> + "iep_cap_cmp", iep); >> + if (ret) >> + return dev_err_probe(iep->dev, ret, >> + "Request irq failed for cap_cmp\n"); > > Can't this driver live without this feature ? Yes it can! I'll rework this logic so that we do not fail to probe here and simply continue without PPS event support. Thank you for the review! Best regards, Diogo