Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3303289pxb; Tue, 12 Jan 2021 11:07:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYGLesOzP0WEZI2L+JZ2Tn9zsJ+bsiBPQATXLyqfw2hqUUKz4BcmN8bRI82X/bdwTYWL7H X-Received: by 2002:a05:6402:1b1e:: with SMTP id by30mr466088edb.75.1610478448212; Tue, 12 Jan 2021 11:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610478448; cv=none; d=google.com; s=arc-20160816; b=027tclxF89WiObrZsy+TKbUU8vza/B0aUbJ2yScSdsZemVaWWlcMwoVIQ+scvRrFCK NraQnH0Wp68qMjHp4LkJx0IbFDMolB1Ls6PgWwClDc/qMZikxnuTaxO8sqhwfF8Dfhz/ qfcqHcC0RPjmNEQ4WRwgUIkC1MqS59k2bFkHrAvlksXLH8h1e7QOtH5apsZgNEEiS5bh HVpRLlhUEOQhmoDWfHhktLMZmKhheN4OMGP4CO+NiIuxDDgAHId3jEhklFNxXPjLYjy5 baoaJQoHhyZ42/ufGDpxyDMljGPxWZANDVbFeX9dM/yZqMohIZr4Z8/jJIujqRJfX7ig I6Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:message-id:date :subject:cc:to:from; bh=xwwBp4yfrgJzIJ1O4SXmSt1ktHP8GdLhQ92ARq5y3wA=; b=ghazi0IstS7tKnMjUUDR5JBwrxhDRs6Z+j2PTqyIMwEBFAxRk4YBfaH0b+KLD81ZYl zz2SaXZqPEdyM1OHhXFEUmiotxV7pVGSPCSgEM0wyy/SqLbjnEQRlJE5eXOVs62SbP+O ujRm5fueid1dLhXR85BmTeWUoQA2raI19gHPk70qlPy3oGxBsol/WJnlu8BXKWtxm45l R4fI66j2ZtbZokA2s4DDmGfpWoWQRZ6XEz06qKQ1eT9atiI5FNixAKKksy1YakvP/Yhp uEcZdrRth/bkR+sWBD4ANupC0e6hIFrbnBYLJ8OvIzEr//am39TMsI39zvx/PgTq8b9/ iOZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=f3SpTnVZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si1651254edw.609.2021.01.12.11.06.51; Tue, 12 Jan 2021 11:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=f3SpTnVZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406004AbhALTDV (ORCPT + 99 others); Tue, 12 Jan 2021 14:03:21 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:17662 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbhALTDV (ORCPT ); Tue, 12 Jan 2021 14:03:21 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 12 Jan 2021 11:02:41 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 12 Jan 2021 19:02:40 +0000 Received: from skomatineni-linux.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 12 Jan 2021 19:02:40 +0000 From: Sowjanya Komatineni To: , , , , CC: , , Subject: [PATCH v3] Create i2c_writesl_vi() to use with VI I2C Date: Tue, 12 Jan 2021 11:02:40 -0800 Message-ID: <1610478161-4877-1-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610478161; bh=xwwBp4yfrgJzIJ1O4SXmSt1ktHP8GdLhQ92ARq5y3wA=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=f3SpTnVZ+LbHkhz1bWB5OTJPZBGhmiIIBYquI12O72pj0oNGU3T0xYIraVkARzVQG kJNbJGCdfHjPDzeVZ0NAJbRyHDQpGeoZFVprmCmG2SLWK7jUtyiXWpaZO6WIZaq2a6 rNZ07dggOioDw/AkvzRkPKhgZJHKT2a4rYnpmaJXZEAOOxf8hrPPmEhps9XK0Rt0oi wnc4OgLm/T58xtKuA4ylnL3UgUxD50ksRkCiY3hlsnFZ/NLNvGlrsu2scRTqL8W7cc jQnOOEAUEA5oZV96F4aW4/yIFmloleJnZB6YBP4YGj9rhYROkgRp3BJ1+xMLAU6HnZ E7Z8IHJpqXzYA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch in this series is to fix known hardware bug with VI I2C controller where immediate multiple writes to TX_FIFO gets stuck resulting in VI I2C controller to be in bad state. Delta between patch versions: [v3]: Includes v2 feedback - uses relaxed writel and readl - avoids type casting on data buffer during i2c_writesl_vi() - updated comment to clearly mention this as workaround to known hardware bug with VI I2C. [v2]: Creates i2c_writesl_vi() for vi i2c based on v1 feedback. [v1]: Updates i2c_writesl() to use writel() followed by i2c_readl(). Sowjanya Komatineni (1): i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO drivers/i2c/busses/i2c-tegra.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) -- 2.7.4