Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3186609ybz; Mon, 27 Apr 2020 11:31:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJrTvf8MQbFlVd7W/1jJUjfxW5c+jvv8A4O6rQqb9DyufNjY7yUwkIaRnl+tboSvvA3GOy/ X-Received: by 2002:a17:906:27d1:: with SMTP id k17mr20380452ejc.134.1588012261917; Mon, 27 Apr 2020 11:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588012261; cv=none; d=google.com; s=arc-20160816; b=p1eN3xaXiQe+yljU7j15iRgTy4D7AWAKrJm8mcHASm//XKYrRXBK69esRFP82TGpzw flJezwbO0mGTlJeBG2XhiuljgKg8PpxBytp0hk8dE24sXkDeHADavd0JZUVLjr+K3Ur6 vzagweC0hqmV5l1U18TSgllnzTuUaMn8B9LKCqw4+++y0yyPqq6Q+yEkUah28CPelQIr 42W3meWN1tHjS+V6KTnmrXt+DF7J7UIR4X5JqSVnovcw1+mnRRe5QW8D1jNrSBjleSjl g+F3no3ZL+vCG6ruxWvrSvd5PCfukeqqKMBfLUJAS4O7QeDSoz3Mu/7+QPlkJi04ZlXC VDyw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lHULapMa+BsXwsb7nFo4ngDpGWEQISNj1XIuagyOGJ4=; b=psvp4DWjPHvzIe6MrSZ+8YMqKUmAQKIVZIMBemgUmH92oGfPwPsJIfch4IoaHzQJa9 BFcXtZ4rKeYos5xmcPU4DpPgYLrdQ1IDzirdN5zCCayADPGm7GWXnqPxJdX3b8WSLOSH y6//l3E2StXtPtB7np2NWCXDBlBBj94nztvNzSQvCHVkdbzkAYto92P370G6S8aJVqgp l9FbCi3HO7I4ElB6artCW6j7fVkjjh8+TiMM/oDMKYE9yhSYgOml/C2YnQlIoYRmx/cM a06PUfq9d9C16mLQyN3FuqGrfnWVSEKg7MEIanQmJkshfU3ZM6Dka+a0/qjyLgRYEUFo 27jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S4nPK50g; 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 i17si244230edu.511.2020.04.27.11.30.37; Mon, 27 Apr 2020 11:31:01 -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=S4nPK50g; 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 S1726474AbgD0S3D (ORCPT + 99 others); Mon, 27 Apr 2020 14:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725995AbgD0S3C (ORCPT ); Mon, 27 Apr 2020 14:29:02 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 144C7C0610D5; Mon, 27 Apr 2020 11:29:01 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id t14so21688975wrw.12; Mon, 27 Apr 2020 11:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lHULapMa+BsXwsb7nFo4ngDpGWEQISNj1XIuagyOGJ4=; b=S4nPK50ggycLkdpsKEzm16DXDnDpUPNe4JP8XftG9GTRTK+xfH2TGDQFSNwNPozCih ROG2tV4mOoET9zFZxgHyO8sZNds7kijCfa1t80FBbbrnzf5+SAqv4Jt8nqIDrnLVYNTY Ok/bi2D18ftntyliblJnslVzyRoZiOTSOIEJEtu1swPu89TXasrNA4Bo54kfxwLl4PuT 8Xjla6GUzeZxhXOChhfv+56LKNUsfAFdDCapz8x6jkmhoM63hZh++Kbr/RHtxDI8f2zb AQBq4JWVdYep6lykSzc1EsNTVLj3nGaYPMIuhOcbsGEf0fsNWcpCYCBxgYlpUjBCMBf/ yXqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lHULapMa+BsXwsb7nFo4ngDpGWEQISNj1XIuagyOGJ4=; b=Oq7BmNTWMhxEaLuVxsJpmImwrJiZSJ+VDbCz7ESFloJVTQkAm2TXDTGgp24Yal9gbI cph3NfwZkOOrzcLlfnc3MrwobAMfe0qiix4cW3l+9CWaBuOM06Tfkj27fYSR9ucCwf1Z t9l8kukYhiq9ngqjB4+DQslVbsa3pPHT9KJHyqWQTK4CZ6eq7VSQ9c4R9d53in4vEOeQ ee7kK1y1szKRQG/BAaFGnrAEbKwgrRHautBx+dckVtDSwyCWTaMrX+JfozvrvIeEUf0y dezAXZd5Y9YfItyWIcQpb70KHxRjlWrgsBzXCzFasgSHkNnOsehEtjJ0TPNnvrHZqg9M 1HOA== X-Gm-Message-State: AGi0Pua/A4FQLuT81bO+10kc/H9yJp9a8kHpVIcCo4Fc0eb1idc5R7Ap kJgiwDF9ovz+rKrM0SK38Z5mPap6 X-Received: by 2002:a5d:6582:: with SMTP id q2mr28911267wru.343.1588012139464; Mon, 27 Apr 2020 11:28:59 -0700 (PDT) Received: from [10.69.79.32] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id h17sm13719wmm.6.2020.04.27.11.28.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2020 11:28:58 -0700 (PDT) Subject: Re: [PATCH RFT] i2c: brcmstb: properly check NACK condition To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: Stefan Wahren , Wolfram Sang , Kamal Dasu , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200426081211.10876-1-wsa+renesas@sang-engineering.com> From: Florian Fainelli Message-ID: Date: Mon, 27 Apr 2020 11:28:55 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200426081211.10876-1-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/26/2020 1:12 AM, Wolfram Sang wrote: > From: Wolfram Sang > > cppcheck rightfully complains about: > > drivers/i2c/busses/i2c-brcmstb.c:319:7: warning: Condition 'CMD_RD' is always true [knownConditionTrueFalse] > drivers/i2c/busses/i2c-brcmstb.c:319:17: warning: Condition 'CMD_WR' is always false [knownConditionTrueFalse] > if ((CMD_RD || CMD_WR) && > > Compare the values to the 'cmd' variable. > > Fixes: dd1aa2524bc5 ("i2c: brcmstb: Add Broadcom settop SoC i2c controller driver") > Signed-off-by: Wolfram Sang Acked-by: Florian Fainelli -- Florian