From patchwork Thu Feb 2 09:41:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 13125657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 417F6C05027 for ; Thu, 2 Feb 2023 09:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BIgHTsex4Z/LlcqBPhKrCIaItMRMWPBch/lfDYadzkM=; b=Melk5rqpRt9Qmo 4Fc5I5hPFz0iruAwnXq6sRVYVj1cyjdt5JaPT/+ZH7Qg3v5FBchhwRq4jD8Z9deKhiAGyahxzLaeJ TeDiK/jArDCMxt12q04ev/dhEsa9Z7X6qdQmB/wAxk4r7N1zRnVvhAvwbb5RSKvRIosXllljSAyA0 +BzTdJi7m1RGw7EtCioRIBgNWxyxOg5AHqqOaccJ/v/7QG0LIAGbZlL9KQRJf1f+NvsCusuMUunWu TsSKj8eRk5DTH/CjnZHEsn+jNpmyc13VF1l+YhgMjs9+QhMeonkoqwNtsmQEs8HpTW7Qrbjf8OPy+ /mzNSrXXxGZ9t/HY1c1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNW8U-00FDCj-KB; Thu, 02 Feb 2023 09:44:07 +0000 Received: from mail-bn8nam11on20600.outbound.protection.outlook.com ([2a01:111:f400:7eae::600] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNW8A-00FD4D-Ma for linux-arm-kernel@lists.infradead.org; Thu, 02 Feb 2023 09:43:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KpodUzk6jIkSle0noJHm+rMH1esOyYrXTjU8vDPgavLU7ZXKToZGQpAxy1BDbwXNCJaNLUK92auN5M/6XYamvX28+RKjT4yoD4Ujc2aqFNgt4vaE0inqGP6S6wx00e8ONwsE6slo+ytV770ybWCC23sZGg86koUgIg6cDU76uxRTul89dDoKE5018DUpP+mVwJVVQp/Q4qMbBfRws1UvJb1Ra1FfIfhVirmVPo3QoyzWK1Dyc2oqcHnEnunX+qm3YtxdeNAnwf0cXrna6joYS8rshcpBYPKIHhvRTYjcicrd1U/sKPauhNgzQKJsDfzGDo7CnzRWtc6iKRJQqD9URA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BZZnzs0iQxqKdtxkP8yCrlEW1QCuOzMXhrAK1oATYzQ=; b=XfWSVmD2NQadHx7fqL51X8aOFz5aggosMo+R07SYR/+ihE+Lg5JdeC26qX6wf0NEQD1LCR+BC5p4EEFaQfc+63luMbf8yXl+c8z82/EWEUovyQgfVr7c64IKvJJ0qk3vBj0YKjm2USE7NQx6OaXKpvbvTTT1ixS8xxqmuejQ9YPGJzp9rzMufJ9J0CEjkTyCbe8JZpBWuo4Xfunwl6YIt62AzBhll8yBUAvr69U96egdTHMbXrq6qPdyx3trcJLaMXRa7i0s0G5GYkKRgsXbR7cN026Tcx/RypRJTkSCKIIt+tqCmi2SK+GfCCAATA3qvtUiSM9VyeXAErnMc4y5cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=amd.com smtp.mailfrom=xilinx.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BZZnzs0iQxqKdtxkP8yCrlEW1QCuOzMXhrAK1oATYzQ=; b=LD9ZMPY2xr4fnuQMADX3Ci4cAturSDEh6LESH6jRcSapKd6W7XPp0xhN0rbMnBYCpTqgOgHeQBxfYaMTChpbhiQhdwWty9dSgvG030ffShNDGGsRMZ03r9g1ldzOyW3HUHuE92FMFpI/GX8qD1FRKDBAjcQmChGRxY45rFyF7hM= Received: from SA9PR13CA0175.namprd13.prod.outlook.com (2603:10b6:806:28::30) by MW4PR02MB7218.namprd02.prod.outlook.com (2603:10b6:303:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27; Thu, 2 Feb 2023 09:43:43 +0000 Received: from SN1NAM02FT0060.eop-nam02.prod.protection.outlook.com (2603:10b6:806:28:cafe::c3) by SA9PR13CA0175.outlook.office365.com (2603:10b6:806:28::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.7 via Frontend Transport; Thu, 2 Feb 2023 09:43:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0060.mail.protection.outlook.com (10.97.4.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6064.27 via Frontend Transport; Thu, 2 Feb 2023 09:43:42 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 2 Feb 2023 01:43:39 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 2 Feb 2023 01:43:39 -0800 Received: from [172.23.64.3] (port=37002 helo=xhdvnc103.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1pNW83-000Cag-F4; Thu, 02 Feb 2023 01:43:39 -0800 Received: by xhdvnc103.xilinx.com (Postfix, from userid 90444) id 52DA41055BF; Thu, 2 Feb 2023 15:12:26 +0530 (IST) From: Manikanta Guntupalli To: , , , , , , , , CC: , , , , , Raviteja Narayanam Subject: [PATCH V4 6/9] i2c: xiic: Remove interrupt enable/disable in Rx path Date: Thu, 2 Feb 2023 15:11:35 +0530 Message-ID: <1675330898-563-7-git-send-email-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1675330898-563-1-git-send-email-manikanta.guntupalli@amd.com> References: <1675330898-563-1-git-send-email-manikanta.guntupalli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1NAM02FT0060:EE_|MW4PR02MB7218:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d9ff7f6-d61d-496c-3292-08db0501f8b0 X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Kij0Z8upDseQuE6PzRYu5x3rg666rOpHiesHDdE9cST3u23z0Z6JZjppCdmocKCI64+OfaSaOZsy3R0oYX7HxfHhh4btqZYXpf+eaPp7sjMTyiS2s9ValEXmRDD36MH0ES9AAd6JiIZIUTaHeAhmW0oQCawm+muEQbEKkElh2MqeAxO7yQJlpWIgZ8tmAtXNsII8icnxx6lOKZ97e8BDiT/OCZblaFoHbqtSr/W0tDoG7OA4wu5NsS50mY5pqWE2I7gtpfMvMJtMC7SPb39tExjcWceop9bvJ7lWcBvr0YE47Ua6uXLOOq7HimJDu/vBpiRFr3LfSq16QcC3ieCI0Rwd0KX30gLSV/xdi4FAia+PaJ9sPgbFeb/Lp6xkzj/Kw8ccSsTC7kihEejFJvA8hk4XCWpAOmPzx6wSwyCRiVW18klKq2fmb+stnxzlLb/cnKMS4hIip5xeRV/voXb8tXK6kY/tO0Clr+m5z2uyeU1EJ0+Acp4T9qcUUDh9G/B7Q1Xx5Ww8ATAU0YijNPLOoMk8OUy+Lm7zSN9fwdt17Vf3eFddHTqgmQxqSX+n+dnzRpWnq9p1M4b671S04OHYhvZWKGREC26IcP7wUuQJ5XjqtJ0w3aG6S4fAfP5Gh7Dbog3QTidiDlhJz2dsC+P9BvfmTLr7YvqX5mk2EBxbXQ+4LyYd328kNYTlNZwibflsK5+ALpQgIlHmsLSvd1CUxOtI1vo2e/3RM1xK2G4rc3I+aMWg1q2aeTet5DmMH6N X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230025)(346002)(136003)(396003)(39860400002)(376002)(451199018)(46966006)(40470700004)(36840700001)(36756003)(42882007)(70586007)(478600001)(83170400001)(4326008)(83380400001)(82310400005)(8676002)(36860700001)(110136005)(54906003)(82740400003)(7636003)(70206006)(316002)(42186006)(107886003)(6666004)(26005)(186003)(6266002)(40460700003)(44832011)(7416002)(5660300002)(47076005)(40480700001)(41300700001)(356005)(2616005)(8936002)(336012)(2906002)(102446001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2023 09:43:42.7522 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d9ff7f6-d61d-496c-3292-08db0501f8b0 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0060.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR02MB7218 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_014346_770941_88B69070 X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Raviteja Narayanam 'DYNAMIC_MODE_READ_BROKEN_BIT' quirk added in the driver, effected IP versions no longer enter dynamic mode. So, remove local_irq_save/local_irq_restore APIs from driver. Signed-off-by: Raviteja Narayanam Signed-off-by: Manikanta Guntupalli Acked-by: Michal Simek --- drivers/i2c/busses/i2c-xiic.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 554f83e34a2a..8503b5016aaf 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -741,7 +741,6 @@ static void xiic_start_recv(struct xiic_i2c *i2c) u16 rx_watermark; u8 cr = 0, rfd_set = 0; struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; - unsigned long flags; dev_dbg(i2c->adap.dev.parent, "%s entry, ISR: 0x%x, CR: 0x%x\n", __func__, xiic_getreg32(i2c, XIIC_IISR_OFFSET), @@ -773,8 +772,6 @@ static void xiic_start_recv(struct xiic_i2c *i2c) bytes--; xiic_setreg8(i2c, XIIC_RFD_REG_OFFSET, bytes); - local_irq_save(flags); - /* write the address */ xiic_setreg16(i2c, XIIC_DTR_REG_OFFSET, i2c_8bit_addr_from_msg(msg) | @@ -787,8 +784,6 @@ static void xiic_start_recv(struct xiic_i2c *i2c) xiic_setreg16(i2c, XIIC_DTR_REG_OFFSET, val); xiic_irq_clr_en(i2c, XIIC_INTR_BNB_MASK); - - local_irq_restore(flags); } else { /* * If previous message is Tx, make sure that Tx FIFO is empty