Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5614436rwd; Mon, 12 Jun 2023 07:28:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TMk9BRpK163Ng7+fY722ROQOztaWOisi/d80q60fCn42R80qmq6BBJMCMFUnPyMb/ynd6 X-Received: by 2002:a19:6611:0:b0:4f4:b783:8556 with SMTP id a17-20020a196611000000b004f4b7838556mr3293042lfc.66.1686580104976; Mon, 12 Jun 2023 07:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686580104; cv=none; d=google.com; s=arc-20160816; b=OYvbRaOG1pNfGDjKTyQdL1NS20rH6ovT6x/n5/Yoq4ioDBkLtqVoqmjud1GxCQI+/z Jr0v9VnW9o1fvP/58Hw4dBXnyIBgqBUTDulKww71AQeoh7VOgjLmlvDHx9v1dAvdlhKO Ygs2XIQpdnGRuG0aJwHFkYH3V4SSpIHPtYqTDPQXbPeGygHszeDHdos6lay3jdI2NcWe bQnJlgfzAhbF4kORL/6gfpsG39rrZ6l/3YgQ8IXnm0cyG36NAcrFz5yhKtfSjCSfRzsD 1EpvTez1F/R1PBw8CQKtPty3S97qUl20EQZNXf1RL/KsaP9w+woFfNuCyX2ZlG/p0E2w UGTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dTh/cPZmvz7n2CRHX7vIMDQfnSsCXzDIiq1YM27NImI=; b=rpieT4oOmnRXlsqoZkguYVAdyCI+hyCq7IqmDbUfwZ8EdGNxKUkBuR5/YbSY9JrjBt HALdm4FX9BZIE5ruFpRO1rBBToxUZpWzcjXbKuzTjfgJ/K1wmJOX6B0x+YRCD5WfvNoo j/5N5kDkk1FvTMZUV3lLQH3FCN7ttTiQJXztJysMn1ogNeGfeocVWb/3VI+MbAJqKz93 FF9E8hsrD1XM3Q8ngo8A78bEA7oqu9u2EAOQkiOXCWJpSoJsK6/riq09JertDD4fmFoZ XoDOQPS/U4FNH3fHwGD6MnwgUrIG/kyxUdDxPGspKgLCUBJO2FQhGAgj+3g8MalbXgZE XLPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PdXDCv8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g21-20020aa7d1d5000000b00514a4bf2b97si6165317edp.246.2023.06.12.07.27.55; Mon, 12 Jun 2023 07:28:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PdXDCv8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234803AbjFLNkS (ORCPT + 99 others); Mon, 12 Jun 2023 09:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236792AbjFLNkD (ORCPT ); Mon, 12 Jun 2023 09:40:03 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5C8F9; Mon, 12 Jun 2023 06:40:02 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35CBTGKk016177; Mon, 12 Jun 2023 13:39:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=dTh/cPZmvz7n2CRHX7vIMDQfnSsCXzDIiq1YM27NImI=; b=PdXDCv8jhS/2MpfekdQUYKYIrArqusHS/IBOd5c76lr6scYho/n2fscpxrPj0Mbpth6w 84aQToHVSCEhWMIyL5zB+qBWGgXV/sp+PbP4A2jAVN/dYmY631k9qhvRrgPtUd61F+Fz vMJzPK2W8MZb7JlJaVtM13UR6HJEou7zoWyz0tI8lVNLMeAGCxaQyKo+SrBROphDJHjg oH2zZOxQX6t/2zu5IrUd6UlKmeZuzRAr8pdVUR7SONJck1B0lKtgZqZYXTQdOh4agAQi Y5+Qt2+5lpQpZaqQfBc3Qm4Ej0iON6uO2OJNRc6Kgs7x/1Xi2rRPXmOpwr+jVDelSK7s Ww== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r4jfe3e16-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Jun 2023 13:39:58 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35CDdwxs024526 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Jun 2023 13:39:58 GMT Received: from [10.217.219.131] (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.986.42; Mon, 12 Jun 2023 06:39:55 -0700 Message-ID: Date: Mon, 12 Jun 2023 19:09:52 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] soc: qcom: geni-se: Do not bother about enable/disable of interrupts in secondary sequencer for non-uart modes Content-Language: en-CA To: Doug Anderson CC: , , , , , , , , References: <1685729609-26871-1-git-send-email-quic_vnivarth@quicinc.com> From: Vijaya Krishna Nivarthi In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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: oaa35-xyGBgWOsKsYED45dn4O7BwJkvL X-Proofpoint-GUID: oaa35-xyGBgWOsKsYED45dn4O7BwJkvL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-12_06,2023-06-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=28 impostorscore=0 priorityscore=1501 malwarescore=0 adultscore=0 lowpriorityscore=0 phishscore=0 spamscore=28 clxscore=1015 bulkscore=0 mlxlogscore=41 suspectscore=0 mlxscore=28 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306120117 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thank you very much for the review... On 6/7/2023 9:41 PM, Doug Anderson wrote: > Hi, > > On Fri, Jun 2, 2023 at 11:13 AM Vijaya Krishna Nivarthi > wrote: >> The select_fifo/dma_mode() functions in geni driver enable/disable >> interrupts (secondary included) conditionally for non-uart modes, while >> uart is supposed to manage this internally. >> However, only uart uses secondary IRQs while spi, i2c do not care about >> these at all making their enablement (or disablement) totally unnecessary >> for these protos. >> >> Drop enabling/disabling secondary IRQs for non-uart modes. >> This doesn't solve any observed problem but only gets rid of code pieces >> that are not required. >> >> Signed-off-by: Vijaya Krishna Nivarthi >> --- >> drivers/soc/qcom/qcom-geni-se.c | 24 ++++-------------------- >> 1 file changed, 4 insertions(+), 20 deletions(-) > This seems like a nice cleanup to me. It's still odd that the general > code has a special case for UART, but I guess the alternative is to > duplicate the exact same logic for both the i2c and SPI drivers. I > won't insist on that, though I wouldn't be opposed to it either. > > I guess one comment, though: should we also remove the code that > messes with "SE_GENI_S_IRQ_EN" in geni_se_select_gpi_mode()? Right now we have gpi-dma mode support for i2c and spi but not for uart. Even when gpi-dma support is added, uart driver's interrupt handler would not be invoked so I believe it would be safe to drop that code from geni_se_select_gpi_mode() too. I will post v2 dropping same after some more lookup. -Vijay/ > > -Doug