Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6265737ybh; Wed, 7 Aug 2019 20:44:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD85kiwaASS+8RIYiOeog4OtUFkXpr9VbeCQO7kB97HeplOUn9mePKisT2zWw66gH6wsnY X-Received: by 2002:a17:902:b68f:: with SMTP id c15mr11517370pls.104.1565235840552; Wed, 07 Aug 2019 20:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565235840; cv=none; d=google.com; s=arc-20160816; b=l0rx2lkYjsa6TtnDR+QsTGvw9PhTbwd8u4+q7WIv/BOT206QfcmbT+Buq1nUV6NxZn ycws3S/5mNXjYkqOq2HzxzOgF9xYwmVhDgxGem2oMIUKjI++UAcC0/msbCAj79D5xyBC zFVs4uuFQOSAJsioapHnxoMyMhtWB+Qd1p9NeMLL3XiXZRlHHApd3/9RbIkNCw4ujnpv 6VdvT94+HAHDcyS+va8gVjpoLdqrVbboqvfcGAgFASoacyfWwQcstl50f1S5V/L71bji lEuw3q3nGHFw3HTF8PUUf2l4x55M07mox80XBLAgYil4D1PXAMcK+Y9Q3ysgn1duPhBc bIbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=5jMXrFkjRDxZEak/KeRUnh4UCld5MbB91tFVhNYMLPw=; b=pwcThPY5vTSLWvQTJ2BQ6sHmtBFuTgLHgg32JW97P7YC+uas8LLR5uGJ+Jbubdq6Gy S26qkcxs/LbbiNppSfCFNVmel6I40yZJc5O3TkVxR56rorKQKh1hXkX57l4aN23E4ham Z23o3npDYKktjosXshW/DqESguoLmSJGS7g0W/Nb2LEwQvuSPnjlg4bjCvPFu4ViT1XJ 0VqM2OAwuErVfticZa+IeUCHx/b8f9FZ835TA6IV685RyuLCe0W5T4Zv/zReHB/6sZez RXsvXm0EoI7AW9mi+ehyTbXk9JobFifrn5wwdQVIzxOS/5mKHPFkdrnjkPjHpKBMy3CR ETqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PWgHHS0q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v33si35713398pgk.152.2019.08.07.20.43.44; Wed, 07 Aug 2019 20:44:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PWgHHS0q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730723AbfHHDmF (ORCPT + 99 others); Wed, 7 Aug 2019 23:42:05 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42659 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730662AbfHHDmE (ORCPT ); Wed, 7 Aug 2019 23:42:04 -0400 Received: by mail-pl1-f196.google.com with SMTP id ay6so42964970plb.9 for ; Wed, 07 Aug 2019 20:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5jMXrFkjRDxZEak/KeRUnh4UCld5MbB91tFVhNYMLPw=; b=PWgHHS0qNOhHpCy5KKESZ4GVaCpzQ+fl/ugAs1shJwv7WXYzrXDC7SuAoKMP9VU/tx o04A/xw4LcenrEqFf2azeE7WFh2Ewno/7aBRVYv+JJAN8JPRO3h+Kk1LzvAi4JmTiG7X z3sn+cKYOGXQUyRqRjEdXPuAqqtsUuaLJeW+o= 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; bh=5jMXrFkjRDxZEak/KeRUnh4UCld5MbB91tFVhNYMLPw=; b=I3JSgEUBXgZrBt5Vblwzl/d9bTFB9IIkvgyddjh+UEnMnL+IxDFMpKR0wnXdfb3Nvw qvupfajwe2XLC3zSX3HpdC28V/BH4oY9Q6IvNYTrG0pyFal2uJU/8daHRl3wSN6yd640 NL2BHf4JMpjIP+bbS0OJsLWtys/39sFTDcAvAxKDaSiA9aWLHoeonPCc5xEhTSgAhdwj M56hkP1axKMwHeDdpWzohv9Pe4mj477DXaL3/MMbdsVq4s6riba5xlxXgROhXdp41X+2 88svzEHW91/Z87Vy0js827iuSjillWZar1uBEVS1Q+nm1OfaMOHaRtVq9PjOsKwN1tpk vJuw== X-Gm-Message-State: APjAAAW/ZtUnPuHrd/UlQ0MZVnFSieF3B3HpDJ7SLYsEl0Z6ujGg4KF3 L6OECkLEafty4jAtUTyiCj++Ow== X-Received: by 2002:a17:902:b415:: with SMTP id x21mr11335513plr.287.1565235723861; Wed, 07 Aug 2019 20:42:03 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y14sm46425482pge.7.2019.08.07.20.42.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Aug 2019 20:42:03 -0700 (PDT) From: Rayagonda Kokatanur To: Wolfram Sang , Rob Herring , Mark Rutland Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Ray Jui , Rayagonda Kokatanur , Florian Fainelli , Lori Hikichi Subject: [PATCH v1 1/2] i2c: iproc: Stop advertising support of SMBUS quick cmd Date: Thu, 8 Aug 2019 09:07:52 +0530 Message-Id: <1565235473-28461-2-git-send-email-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1565235473-28461-1-git-send-email-rayagonda.kokatanur@broadcom.com> References: <1565235473-28461-1-git-send-email-rayagonda.kokatanur@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lori Hikichi The driver does not support the SMBUS Quick command so remove the flag that indicates that level of support. By default the i2c_detect tool uses the quick command to try and detect devices at some bus addresses. If the quick command is used then we will not detect the device, even though it is present. Fixes: e6e5dd3566e0 (i2c: iproc: Add Broadcom iProc I2C Driver) Signed-off-by: Lori Hikichi Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index d7fd76b..19ef2b0 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -790,7 +790,10 @@ static int bcm_iproc_i2c_xfer(struct i2c_adapter *adapter, static uint32_t bcm_iproc_i2c_functionality(struct i2c_adapter *adap) { - u32 val = I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; + u32 val; + + /* We do not support the SMBUS Quick command */ + val = I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK); if (adap->algo->reg_slave) val |= I2C_FUNC_SLAVE; -- 1.9.1