From patchwork Sat Jun 26 10:28:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raviteja Narayanam X-Patchwork-Id: 12346395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 409DCC49EA6 for ; Sat, 26 Jun 2021 10:31:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 10D5161931 for ; Sat, 26 Jun 2021 10:31:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10D5161931 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=G6vZJm4RTNYJszZ2RhewSaA6wrc9Zzz7Fb+xIZiJFvg=; b=s9mojAK4HBbvbt fZN+Lcj9riksz00lqOeaJXv0c0PWRabNn0ANVBkx1W/OLkhj60oYiYP2rZjmWu0agavy4nvOI7pWs H09MAr7dTGzVYPKWxsE09AFBA9qPb9jqv2KnVK4n8feMZLHiBTRr7jLPX40YhepRbakwger3Vd+C3 JefoT2Kb9iAkimOm5cM2poQjTvhgy/usHepzvj1tS5UgZ6m+//GVF9tFt0i8DKe7iG1D6qHPCAVdX jHbo8ZoYlJFjw1nXfls+hj/Bzja5d+5bNJaSWMF7g3ESFcAHTZsz56RvSDCVVbEyHTzakulM6/v21 Vl7op/hR/U7e60P6x02w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lx5Yv-003sFn-HA; Sat, 26 Jun 2021 10:29:22 +0000 Received: from mail-dm6nam11on2043.outbound.protection.outlook.com ([40.107.223.43] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lx5YK-003s7r-TE for linux-arm-kernel@lists.infradead.org; Sat, 26 Jun 2021 10:28:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iFoDIkvMtSxhrR/JB5QiqFAEtwVaFV4emwWcWqamtcyuQgjZalSbxETF23YjG6TCoyphz4rKGFzNbV8m9A3ZEq35/WBT53GsTjnnb+UCSiXvNon41ISxbicfAS9eDAjN/aDv9IZlbgGyCisyDSl27aJdCBj+rFzO3kQoA9LDnI/x75VS01ZFt5pgh6BgfDnOteyNKK31wqO782Eseqp36ItHHC1Ly2RXYqEVdRgr0V38SQeYQghaSh3Q+wOLrwAlbznoFAYOUFL6zBuFVIXr4sIATNAch2zKkX6L8pvbY1+36fzcQKzQa0O5YPAXAai2fgvhMNLJZi+cpG/cRUoNYw== 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-SenderADCheck; bh=4NDCSf4A1c8Arzt6jcl21UUd+3eeKwp+xRpDDsk18Hs=; b=YRXmf8/hViCMUnVoIAvN9COtaMHS1eDYE1uhuvAOtQVcRM+X+/f/lWP5cXv4q3qsuKVrG4Nv9uQn+6trnsWxzMNewZcA9vcDPg+jiEiilhTjmOUmF47YecV7dMCqiWV+VhrXC8KAfjf0MlTJT2NSiEpmzbMSeTAIjHjow5hvu0FfS+kuVt2D7ElfnOcIoK6HpREbrvCEzCYBuAxTJ5uTMnYjmwDIhOdwF78l675tV2B8DvWAXruzZEa6PdQMbyX5AtsQ8jpY4sxudriRfH9gXsrpzK95iqee0roo61jSJg0o/oBW5okZMpLgq1WzhRciKtdhDXtXtsaohW/Ygqcmqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.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=4NDCSf4A1c8Arzt6jcl21UUd+3eeKwp+xRpDDsk18Hs=; b=einvYLGLDp4uoskfTH5HwkL099OvkohTAWPcx3tytnJPG2A5gJUkinHp8m6lNPEjx7qKx1f77F1USsCJR0DsI5311iBDskkq4EcleYpCkgfosPkI1pdfJ4oJ0l/VgZzGwwehF12vAS5QGVsJFIxsIbBPLjKZPa1FmaoZTrg8c70= Received: from SA9PR11CA0015.namprd11.prod.outlook.com (2603:10b6:806:6e::20) by DM5PR02MB3339.namprd02.prod.outlook.com (2603:10b6:4:66::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.19; Sat, 26 Jun 2021 10:28:42 +0000 Received: from SN1NAM02FT0005.eop-nam02.prod.protection.outlook.com (2603:10b6:806:6e:cafe::96) by SA9PR11CA0015.outlook.office365.com (2603:10b6:806:6e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 10:28:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=pass action=none header.from=xilinx.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-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0005.mail.protection.outlook.com (10.97.4.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 10:28:41 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 26 Jun 2021 03:28:27 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 03:28:27 -0700 Received: from [10.140.6.6] (port=55646 helo=xhdappanad40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lx5Y2-000AWJ-Nr; Sat, 26 Jun 2021 03:28:27 -0700 From: Raviteja Narayanam To: , CC: , , , , , Raviteja Narayanam Subject: [PATCH v2 04/10] i2c: xiic: Remove interrupt enable/disable in Rx path Date: Sat, 26 Jun 2021 15:58:00 +0530 Message-ID: <20210626102806.15402-5-raviteja.narayanam@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626102806.15402-1-raviteja.narayanam@xilinx.com> References: <20210626102806.15402-1-raviteja.narayanam@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2a1765c1-4eba-4c52-13a1-08d9388d2b67 X-MS-TrafficTypeDiagnostic: DM5PR02MB3339: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5obvHLme/d8FJ8DNzT9fhqElHo+VbepSdwhQZo+n06+ThXvkNsGgnV9UgYEO6Ju+soc0k01jboF1sQ/EHXbTMSSUUl+z5RzpLCjoi+717HjWbY2ue0JOfhwfNgH8yB+tVk64u9l54zP4Bf4wRB5tSB5HAptjesjHS3pPxOB5/cD5s1btVEarD2lQXsEd0gaWoCZ44iXDhI8oBbz2Dkl5o7x6Q644uoZoZmLgQgGYkk7PjcC/oWKT+Epg3lNw+7Ic9EiQN/bNsUVdCvkg8wHGhnPw54NZ+Pwcgi2rPafgnu3zBOrKE0LAErwbwT+2Me36QJ5/cc439L8VetLiwdonH7feUta/7VAbG9fLK/jqNwbRvYCDDzH4BmfNdBUQY20y0yeCA+5/QPf8VuEMLrSRPPcV8pnom18c8FkdFacJagbt5DNy3mHxTX7kzWRDEVlVi7SYePGHO7vqZrk+RS9OzKbp+jnIHleCWSF5b4SNGEUOZ3h2kHVE8G+AY2VUjoNtI3pq5iBVYmJ2IKmytF/SDR+LUM90vPHCmWxYWpC0D8jb7GMTNsfFAC7J3hp9AdiIdRSS7w1jzymLIQXGjyFKBmcQxu5VB2lGTrKXt1+JW1+W87T2UGEchGxfP65sfQbpQytSoYQOfic03EVHDIU8I0nb1tjqyGN/tNpnQGPLjBd3aSDibq4rdXb4zGR6+xdq X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(396003)(376002)(39860400002)(136003)(346002)(46966006)(36840700001)(8676002)(107886003)(36906005)(70586007)(54906003)(36756003)(316002)(47076005)(110136005)(9786002)(8936002)(478600001)(70206006)(5660300002)(186003)(26005)(6666004)(336012)(36860700001)(7696005)(2616005)(4326008)(82310400003)(83380400001)(6636002)(356005)(1076003)(82740400003)(44832011)(426003)(2906002)(7636003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 10:28:41.8435 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a1765c1-4eba-4c52-13a1-08d9388d2b67 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-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0005.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3339 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210626_032845_020451_AD2CDC75 X-CRM114-Status: UNSURE ( 8.71 ) 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 As the 'DYNAMIC_MODE_READ_BROKEN_BIT' quirk is added in the driver, we no longer enter dynamic mode for the effected IP versions. So, remove local_irq_save/local_irq_restore APIs from driver. Signed-off-by: Raviteja Narayanam --- drivers/i2c/busses/i2c-xiic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index c31d0d0a8384..72c46cdfa712 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -691,7 +691,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), @@ -722,7 +721,6 @@ static void xiic_start_recv(struct xiic_i2c *i2c) xiic_setreg8(i2c, XIIC_RFD_REG_OFFSET, bytes); - local_irq_save(flags); if (!(msg->flags & I2C_M_NOSTART)) /* write the address */ xiic_setreg16(i2c, XIIC_DTR_REG_OFFSET, @@ -736,7 +734,6 @@ static void xiic_start_recv(struct xiic_i2c *i2c) val |= msg->len; xiic_setreg16(i2c, XIIC_DTR_REG_OFFSET, val); - local_irq_restore(flags); } else { /* * If previous message is Tx, make sure that Tx FIFO is empty