From patchwork Thu Dec 3 22:32:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 336954 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp675672ilb; Thu, 3 Dec 2020 14:34:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3do5L7Czp1DFmRxryqtX2vnAyO5vx3fW5YL4dup99H14gbgRh9n/vb5QtuFtPUSu9MW7c X-Received: by 2002:a17:906:3102:: with SMTP id 2mr4557802ejx.135.1607034876605; Thu, 03 Dec 2020 14:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607034876; cv=none; d=google.com; s=arc-20160816; b=POgMnkC/XSKx7WgXXihiE+l00llolfNCT+Y6sR0m+2cCW00pFvV2lq3wpAMxOYgqPU do54fSQTiFjVEYJSqVOha1ijeVMpi/s5cpCoiVDotN2LK12h9LsCV7rvQo4n/C+YxoRx SbB39lIJNZ+tEs8FiP93lRVvppRqkhXMoi79ZE3cE/HDdeYksOsjnSVSxyA/Pd5b3SZi iCv0bvnYoStxHxxPFE+IqC2HMAP+beznGD10JWfKWPXZNzIjiWhJ3hLNzFAdbY7lL9yp eCZjSVMqBxwAwJladvPpivBx/UEEY3Luoypd/8RO93HXVzjBk55YaKaDbVAJav0Her13 svyQ== 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 :message-id:date:subject:cc:to:from; bh=S56lzKNrNrXqR/KLHadTxdc2P88os17FKuxoKVImlqQ=; b=WTZHa7exl5cYfKLJCJp5/8VAdnMca6sjcBUosUT3ondJ/J28eZr2u/tjyV7dNYQRHk fADrAgmp+PXPSVpHMnOd8yFxc2bk9RFO40O4p+5/RzXd3Aj4l3Eu8dfgj9SUzxP3HN+f 7m3bCIJ8wyYakhjP/GBUhvtuT1o8Q+VX2EmWAd3PSSNppoZuTBZnT8IqIyD6YHYI41IK XgtjlNN+gli7AtS3KL/ASXG9bcnWcCR2lJk1IaWsVFqTABWK4HYF9TyZVbF2P6cHwitI kDUec6RLAxLoQjIoOSdRgGVxOm4MU6NrAe9oNBxAos46PZ+sxRNbC7JIOAEg3lv+KPGD Idrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si237856ejm.210.2020.12.03.14.34.36; Thu, 03 Dec 2020 14:34:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 S1731872AbgLCWd5 (ORCPT + 2 others); Thu, 3 Dec 2020 17:33:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:55830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731857AbgLCWd4 (ORCPT ); Thu, 3 Dec 2020 17:33:56 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Vadim Pasternak , Wolfram Sang , Khalil Blaiech Cc: Arnd Bergmann , Wolfram Sang , Jarkko Nikula , Andy Shevchenko , Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: mlxbf: select CONFIG_I2C_SLAVE Date: Thu, 3 Dec 2020 23:32:50 +0100 Message-Id: <20201203223311.1251788-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Arnd Bergmann If this is not enabled, the interfaces used in this driver do not work: drivers/i2c/busses/i2c-mlxbf.c:1888:3: error: implicit declaration of function 'i2c_slave_event' [-Werror,-Wimplicit-function-declaration] i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); ^ drivers/i2c/busses/i2c-mlxbf.c:1888:26: error: use of undeclared identifier 'I2C_SLAVE_WRITE_REQUESTED' i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); ^ drivers/i2c/busses/i2c-mlxbf.c:1890:32: error: use of undeclared identifier 'I2C_SLAVE_WRITE_RECEIVED' ret = i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED, ^ drivers/i2c/busses/i2c-mlxbf.c:1892:26: error: use of undeclared identifier 'I2C_SLAVE_STOP' i2c_slave_event(slave, I2C_SLAVE_STOP, &value); ^ Fixes: b5b5b32081cd ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC") Signed-off-by: Arnd Bergmann --- drivers/i2c/busses/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 Acked-by: Khalil Blaiech diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index a97a9d058198..a49e0ed4a599 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -734,6 +734,7 @@ config I2C_LPC2K config I2C_MLXBF tristate "Mellanox BlueField I2C controller" depends on MELLANOX_PLATFORM && ARM64 + select I2C_SLAVE help Enabling this option will add I2C SMBus support for Mellanox BlueField system.