Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1305944pxk; Mon, 31 Aug 2020 15:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxASV6We8mWKJgN74NSotCAmdiMgkfv9Yf8cIoUKWJPAN6lMyiwDErjcIBCoIxaqiFUdXHE X-Received: by 2002:a05:6402:1d25:: with SMTP id dh5mr3032266edb.266.1598914467254; Mon, 31 Aug 2020 15:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598914467; cv=none; d=google.com; s=arc-20160816; b=U+TDXbXF9Ejer2Li/wYy5BmYC55ZbkC/OBOZ70YYSK+bPPcP1utz/Vj8uFiagS9jp3 P4iG55rO5K7shYmDz+Te1UJWJL2nhp2dBa8FzrxI5XrcDa0KJzc8pSPQgkt3KutbadHo GyXeswEfSYkagKwM4ycJM3uGffB6hdmoCkJRDaAGH4Bg2CPjU8AP0eS+OrthZa0jhTu2 g+RxpQGtyTvVMUvyKYGCdqoUpfjl8TlaSBwPrU9YxsTGwT/XbnTldToHUwcWFKOr4OYY 7N2+5qIJ3wK1/KFNFQkeI2k0PijHHBopxnE7VuO1hhdmQ+ql9KhpEh7QPY47imi7DWdl B2rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gHgiuwktFuNHisqmCuic313IjjZCR0r8Yab3mbg/wXU=; b=CVgOu+aCdIeqGXKYwTLrPk7CtTnVwITa7qVd7rCFlYoD3b/9dcPipN3//e6h2eCSmC vW/KgyjiJwi8YvZyGuLSVXNxf3tzuqjUKu90mH5nCXdOiAZ7RxY5Lz9bx3Px+X1UbBUa 0frzQNMlDMhhqWsNKYe48GSYD2afJLq44t6GCcK5Ax0XfsPMGFmobTeIenQHUzM1HCPq qCAZeYfxBN1837qygLvcBbfvYL02+71qIqjt5peJk+RgU0QDoWIpGb2BsBhk0Vg5cpij CSkpM4Y7vaky9VQ3nIVniv7+DrZTzDnl1U3m4FxGkJHG/ROIRm/Ek2dZPD1RibIadpKy Wvjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="B/KOs4w0"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si2405096edw.68.2020.08.31.15.54.04; Mon, 31 Aug 2020 15:54:27 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="B/KOs4w0"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730096AbgHaUYT (ORCPT + 99 others); Mon, 31 Aug 2020 16:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgHaUXc (ORCPT ); Mon, 31 Aug 2020 16:23:32 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9B0BC061573; Mon, 31 Aug 2020 13:23:31 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id j15so4235992lfg.7; Mon, 31 Aug 2020 13:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gHgiuwktFuNHisqmCuic313IjjZCR0r8Yab3mbg/wXU=; b=B/KOs4w02g8hE+IsBUTqQnmPot9G0NMpLoolhcnpdPOZ52L8Fly9+DRSScCdIe1Qho Ryr1dS3S6EvZGJ619GEYzZSMb2WuC5BbpXVseDU1Xt0IsRB9hw4pRM2w530PbY12zwkt Mt7U/3AD6iCIgt5QqgRrUp/WOTJVQbLxXOSydezCzPitbKeaqN/XHWlwuGow0+YaNpmr S3PfoyFV4fAm+dnLzAXU6/pYe95YFsU7Hn3IJ2mtQaWbtU4CwBPmylEkZV0WYq3+GhbQ f3NxcB96omwY8drfT03TlMKg9QmY5ZaOrZr7x8tonxPm1O4SJZobCgR8KKZQRhZm6Ahn EY+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gHgiuwktFuNHisqmCuic313IjjZCR0r8Yab3mbg/wXU=; b=oaSFrycO3imk46BjWrXLSGXOTeiM/RML/8O1bWjQ7LIU+UUg6DcWJDpDKdSq6iRk7y qsz91IgrXLI1hEA3L+C402u3GlidU052fVEXGp6jcIbbSRkeEtwRSlUaImtooLLesVyR HAbwm2bOglXyDWHG84J030CIQoYVK5NsAUXScLC9l7Y85gjOOEcwbmXrVOJSuHwMGeE+ 6d5N+bEzfVE5MP9lq6uthDqaoIKS+zbqkflSL09emY3CBdqCp+FR77c7LtrmMHIB0pFI w0wcsWGAeQEPIqmvKnSpyZfdDNq1SgRF6kQT/5bd+5gio61WQ926Vluo56XFwekbFDly PHeg== X-Gm-Message-State: AOAM533oJGKHIlm8lL8eSUAVxmzhBG2w88yzF3USRgl+60dFlZCKXqoG 4ypxT96EFn+o8syym9BslEQ= X-Received: by 2002:a05:6512:2010:: with SMTP id a16mr1414256lfb.196.1598905410419; Mon, 31 Aug 2020 13:23:30 -0700 (PDT) Received: from localhost.localdomain (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.gmail.com with ESMTPSA id z20sm1769054ljk.97.2020.08.31.13.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 13:23:29 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 05/12] i2c: tegra: Use reset_control_reset() Date: Mon, 31 Aug 2020 23:22:56 +0300 Message-Id: <20200831202303.15391-6-digetx@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200831202303.15391-1-digetx@gmail.com> References: <20200831202303.15391-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use a single reset_control_reset() instead of assert/deasset couple in order to make code cleaner a tad. Note that the reset_control_reset() uses 1 microsecond delay instead of 2 that was used previously, but this shouldn't matter. Signed-off-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index a7ef3a93e1b5..6957be34bc41 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -791,9 +791,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev, bool clk_reinit) u32 tsu_thd; u8 tlow, thigh; - reset_control_assert(i2c_dev->rst); - udelay(2); - reset_control_deassert(i2c_dev->rst); + reset_control_reset(i2c_dev->rst); if (i2c_dev->is_dvc) tegra_dvc_init(i2c_dev); -- 2.27.0