Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp647325rwb; Thu, 18 Aug 2022 09:41:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qV0b4C7l5WKsVns5quehnpYoDbHj+V0WN2EUxtw8b6tK1CKLNIrKJdfeJ4o1DW0oJX+vH X-Received: by 2002:a17:90b:4b91:b0:1f4:e116:8f1 with SMTP id lr17-20020a17090b4b9100b001f4e11608f1mr3933549pjb.121.1660840895865; Thu, 18 Aug 2022 09:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660840895; cv=none; d=google.com; s=arc-20160816; b=oa+JLV2UfJUjvaoynB2a26Z9f1MQTYCFHsWoPIu1+4TzQtHaQb9fyQ+QvRx7zPtgof EGz/PGLBloJXMe6X5eA2j4pzalthA3szz2BllsF0wEbvoHMFoHyMvCs6bABI7thuPlVK aI3V1lW+UNm1HmvSgoqCoHhDF9ni/hikSkaBs7px2cqD1vRql7w1ugYV6r6dsRVr2xA2 ImIco9++f/ayhd0Yr/Wuec7oKyO52g5gR03WW1mp9nZD8LyeYimW1TW+lgOMRy0XdxMg hwZQRczU3X0HqOC/qsS2F4ZNKpSgGUbA/clIV7529ErufOC8ErRDoOqQMzZIoNSVk2P6 bAYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Eio3B5TzjxSf2NDIsDgcsRVnZROL70cZDgQ1bWThvnc=; b=wDC8SCTA+zTK6D2c11yuzBFy7V3ZlNOKYISvMRdoKGvpY9LYXBGMXrfwAESnY9WxYH Xl7gZQr0zWWFXCOJPLJgWE8jZleK6+85CmwldeSJrrMc7QSqdFGmI/foSh1jRYA4kiUo jy8C3mDfdw75FgDOZQUtwKLSiIYJ1BMoFdQ2CFUcI9/Y/pjCO30M5w0auXUe+HS0hc1d VMvvLeBMskKNmTH41Yg1c+mz4Isy25AEiC58gnKT++FA8GAT8zW5Utg8WZ8iZple4BEh fJFjVFJpJlswNUlt5s2ysP4dXyxkDinOkKYVHzdNe67CjQ6/4gTXXo8ahrDDgzR5cqUo NcEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a170902758900b0016efa613702si1452618pll.613.2022.08.18.09.41.24; Thu, 18 Aug 2022 09:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343967AbiHRQ1j (ORCPT + 99 others); Thu, 18 Aug 2022 12:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344338AbiHRQ1a (ORCPT ); Thu, 18 Aug 2022 12:27:30 -0400 Received: from pokefinder.org (pokefinder.org [135.181.139.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBE6F3AB33; Thu, 18 Aug 2022 09:27:29 -0700 (PDT) Received: from localhost (p54b336f9.dip0.t-ipconnect.de [84.179.54.249]) by pokefinder.org (Postfix) with ESMTPSA id 0CE90A416ED; Thu, 18 Aug 2022 18:27:29 +0200 (CEST) Date: Thu, 18 Aug 2022 18:27:28 +0200 From: Wolfram Sang To: Asmaa Mnebhi Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Khalil Blaiech Subject: Re: [PATCH v1 4/7] i2c-mlxbf.c: incorrect base address passed during io write Message-ID: <20220818162728.lnq5y7qzxbdsyexr@the-dreams.de> References: <20220816225412.9095-1-asmaa@nvidia.com> <20220816225412.9095-5-asmaa@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220816225412.9095-5-asmaa@nvidia.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 16, 2022 at 06:54:09PM -0400, Asmaa Mnebhi wrote: > Correct base address used during io write. So, the driver never ever worked? Or were we lucky that it worked somehow? > > Reviewed-by: Khalil Blaiech > Signed-off-by: Asmaa Mnebhi > --- > drivers/i2c/busses/i2c-mlxbf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c > index 39051c4a6db2..02ed6983c35c 100644 > --- a/drivers/i2c/busses/i2c-mlxbf.c > +++ b/drivers/i2c/busses/i2c-mlxbf.c > @@ -655,7 +655,7 @@ static int mlxbf_i2c_smbus_enable(struct mlxbf_i2c_priv *priv, u8 slave, > /* Clear status bits. */ > writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_STATUS); > /* Set the cause data. */ > - writel(~0x0, priv->smbus->io + MLXBF_I2C_CAUSE_OR_CLEAR); > + writel(~0x0, priv->mst_cause->io + MLXBF_I2C_CAUSE_OR_CLEAR); > /* Zero PEC byte. */ > writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_PEC); > /* Zero byte count. */ > -- > 2.30.1 >