Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp988438ybk; Sun, 10 May 2020 02:55:14 -0700 (PDT) X-Google-Smtp-Source: APiQypJjFmRAhTXwoOMlR40YU/SWawG0OWnbyVvPTUL03i0IFL6ds+9OvYT48AxnfC++6yGKc1lk X-Received: by 2002:a17:906:7e19:: with SMTP id e25mr9336575ejr.358.1589104514158; Sun, 10 May 2020 02:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589104514; cv=none; d=google.com; s=arc-20160816; b=LlSPSREtR02vFtzEG1PZ3AEoNd9dTtWbN2t8bR99gcp38icmR1fA3TIKHso8xBz4Nt GYu7d+ydwbXAzP/ne6KG+6Gp1GW0vpZRo3sLiAHScXUZm2qZfW9srmgZ0YHQ2hf1QxoG EJ4FpnVhGmx7v9UwEE3N6gvrqKeud7zV5+hQTd33TA36fN/a7uurJ6U0n5nmNmj/EeyS QRsSqfhT9JUdBGm9tsutZOMvMSSpFVX0W78HwA4YIn8TietZKTtollqKVbk7pzVN1SZE DblYZGh2xbX0reyL16daFytTlko1fQ9+8Cg1Ug0Ur9z7J6z0zU3zliiyyfbVXA9Gb0NA vDWA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qJ3WdJpLhXlCqiKNp4PKzJZHmfbBHLgbNCGtt6deo0Y=; b=mBXLDY4kpeis3dGdtRiZBcsMUG4D2PtA9bstOYD23pxcrY5jXh6LbcAZ9QSRAdnASt hrx8YcFOQvhkJPLkwXL5t1IXKbFtcrXqpMecmlsA3CfzOpCRoJqEo3+iNOKTq62gLPdd ikmXg8DDtauVsGJl1GCRPI8J06FI1d3sejA3I9HJ3ghHvW7OOZ0gj9x1lHhhMf0B7vK8 hKoelmNB3hPl7gkAymgW7foBwQu7+SJnhRU/AfXqK4awdMXd3gg6iuy2YAyZEDWjnXCr q1EueukgUnVA2+9NU86FLuYNKXI6usE1IGHxWQaTz2MdH8Xkt944WraDw1qNxZvgyFzr Ov2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si4017937edz.94.2020.05.10.02.54.51; Sun, 10 May 2020 02:55:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728972AbgEJJuu (ORCPT + 99 others); Sun, 10 May 2020 05:50:50 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:46022 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbgEJJut (ORCPT ); Sun, 10 May 2020 05:50:49 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id E09D68030791; Sun, 10 May 2020 09:50:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZvfTD7M6ptLT; Sun, 10 May 2020 12:50:44 +0300 (MSK) From: Serge Semin To: Jarkko Nikula CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Andy Shevchenko , Mika Westerberg , Wolfram Sang , Rob Herring , Frank Rowand , , , Wolfram Sang , Jean Delvare , Krzysztof Kozlowski , Max Staudt , Stefan Roese , , Subject: [PATCH v2 06/12] i2c: designware: slave: Set DW I2C core module dependency Date: Sun, 10 May 2020 12:50:12 +0300 Message-ID: <20200510095019.20981-7-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DW APB I2C slave code in fact depends on the DW I2C driver core, but not on the platform code. Yes, the I2C slave interface is currently supported by the platform version of the IP core, but it doesn't make it dependent on it. So make sure the DW APB I2C slave config is only available if the I2C_DESIGNWARE_CORE config is enabled. Signed-off-by: Serge Semin Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: Rob Herring Cc: Frank Rowand Cc: linux-mips@vger.kernel.org Cc: devicetree@vger.kernel.org --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 14368c46cb63..368aa64e9266 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -541,8 +541,8 @@ config I2C_DESIGNWARE_PLATFORM config I2C_DESIGNWARE_SLAVE bool "Synopsys DesignWare Slave" + depends on I2C_DESIGNWARE_CORE select I2C_SLAVE - depends on I2C_DESIGNWARE_PLATFORM help If you say yes to this option, support will be included for the Synopsys DesignWare I2C slave adapter. -- 2.25.1