Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4128463pxk; Tue, 29 Sep 2020 15:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5+qoZyXp2ym2zy6t/Rc50QQIg7c0HUvImk+dbJvmNcOw9dv/Nlzz6dH8y4RyAmm0JF8KL X-Received: by 2002:a17:906:4941:: with SMTP id f1mr6258062ejt.417.1601418376445; Tue, 29 Sep 2020 15:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601418376; cv=none; d=google.com; s=arc-20160816; b=f1cvWcheJhdKJnjayCDwMs5u7fdhCVXQIbtuNXbw5thijmn3cnFNKyKuNvLJS8kBm8 kqv75dDahggT1dVyTOQeeOUYdXVoZ5cJSrMTxcKy9r85YavGl/fcgC7JWXYZjbt+qwTp uOUpU8CMAEAWLmyUHtmRtU7I8Ztweduus8ZwoqOylai42WjjEOQu91gYTtTNeCQkKesf 3CDwi0T5yLXC1j/X5UrzH+7R4z34zdfkL0CVWN65eWzZ116QjrNdaPOSBimqnVMKERPI bY79KsoNhSy1dQKAE+OzQYuzKwfcQfxY9tDiCZvZmzz5hTn0/+l8/oYB3PMUYCAJE+Jt lLhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LqOxqZnSM1Klocs7LgilmbCtwZ98vQsnxG4EkAGBKYM=; b=HEGQwxMi10s4XC/o7WI2ZYmBshdmwHz985meU8IsysEP9sz58gjDLrWHrKID5nhEYx KbHmefqtZVdLBVopJvGxYaSeH8sa87AQqumvrJIIjkmhv+u8i+N4wQFn0CZWlEq7TrJL HrWpLrZ1viVJuH+eWaDkPADCMZL62mWHOpp/oGElzlXu2RkneLifjz03G6CGd9cDYfHB MVqlK5s5tjyyEDmnbMuEAHRLxCJ8xxywdfkGFaUfob6LwHllAXLMPklyIgrrY+pDc1Xy culCpa0VS6qzF/0vEAb3plqV4nDmdjZoDLLeu+UVY+3lpzyRwmwvSfPJ2h1Q+fJVAVaM zjqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FkWR/vrq"; 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 b5si3789101ejq.317.2020.09.29.15.25.53; Tue, 29 Sep 2020 15:26:16 -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="FkWR/vrq"; 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 S1729699AbgI2WWG (ORCPT + 99 others); Tue, 29 Sep 2020 18:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729121AbgI2WU4 (ORCPT ); Tue, 29 Sep 2020 18:20:56 -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 069C1C061755; Tue, 29 Sep 2020 15:20:56 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id q8so7410236lfb.6; Tue, 29 Sep 2020 15:20:55 -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=LqOxqZnSM1Klocs7LgilmbCtwZ98vQsnxG4EkAGBKYM=; b=FkWR/vrqmhm9tPfZjO8wZJ2W+AnPiiEkvd4M1aMRBqD2r9O7OuQXLqL06aDcZZMbpk ISWYH65O0o9om/fyPAxeNGNh2pnUzOytPTSecrJCySYbdVeTq0/EzQ/c8oi2iKao20pg ZlE+1fY8n6Fl8S+D8EQLMshEtoEswSYPjYbysTSIu/EGpTpZ0XOvhL7fWE5W4fuxJHyO M4fqIsbroTol+BkiJHPPkfFc0j+H5wPw7Athhc9aenn1JAabR+z8BvzWKfexipotSIqn Ssm9RVansgXaB+/qOabxfoz3i5Z4Pp+B9UDiiSPaxIHZQ16eOR6zDnPfLtU7ZT669vLx PR1w== 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=LqOxqZnSM1Klocs7LgilmbCtwZ98vQsnxG4EkAGBKYM=; b=QaYAPjUn9W0ax6NRb3Fo1SGaQVaMxgJEKqBOlzHJYzqBxqIUQrTghMw3bktf+4geZY VuJ1fcq/mn6L8pCPys72N7UjaNbMdeuG7P+ART+SVlGyokJVihqL8oxHwmUp9y41V3F3 JfiPOyrra8oN4ijlTPN/SqzmFpcZ4lVMc/rmWylE1zss7TLBfnc8LpZlAJqj9lga25XG l+y33Ni5P7sVpxlZAN+TVHwe1PirFOczc1M7P04oplOja9Z1R50Xk16rtWFPE6qvFjWw yxNEMAi/HeA1U1oCmVWH85xmQRVfy+MRn+aZ38fXSAm8EBQlyEjq0w+JvigS2eUOc2uE Lsjw== X-Gm-Message-State: AOAM531BqiFXXv7XlPmrce933bqtrA8A5542hmmBHHlh00EOFIDV89BM 7/nq2hFQphix3PuZjGNiw3c= X-Received: by 2002:ac2:5192:: with SMTP id u18mr1886444lfi.464.1601418054270; Tue, 29 Sep 2020 15:20:54 -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 q18sm3379750lfr.138.2020.09.29.15.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 15:20:53 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Wolfram Sang , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Andy Shevchenko Cc: linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 19/32] i2c: tegra: Remove redundant check in tegra_i2c_issue_bus_clear() Date: Wed, 30 Sep 2020 01:19:02 +0300 Message-Id: <20200929221915.10979-20-digetx@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200929221915.10979-1-digetx@gmail.com> References: <20200929221915.10979-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tegra_i2c_wait_for_config_load() checks for 'has_config_load_reg' by itself, hence there is no need to duplicate the check. Reviewed-by: Andy Shevchenko Acked-by: Thierry Reding Tested-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index dc25578adb6b..79fa98423cae 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1082,11 +1082,10 @@ static int tegra_i2c_issue_bus_clear(struct i2c_adapter *adap) reg = FIELD_PREP(I2C_BC_SCLK_THRESHOLD, 9) | I2C_BC_STOP_COND | I2C_BC_TERMINATE; i2c_writel(i2c_dev, reg, I2C_BUS_CLEAR_CNFG); - if (i2c_dev->hw->has_config_load_reg) { - err = tegra_i2c_wait_for_config_load(i2c_dev); - if (err) - return err; - } + + err = tegra_i2c_wait_for_config_load(i2c_dev); + if (err) + return err; reg |= I2C_BC_ENABLE; i2c_writel(i2c_dev, reg, I2C_BUS_CLEAR_CNFG); -- 2.27.0