Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52E39C12002 for ; Mon, 19 Jul 2021 04:06:37 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63642610C7 for ; Mon, 19 Jul 2021 04:06:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63642610C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BE790829E7; Mon, 19 Jul 2021 06:06:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626667595; bh=+YlTCcUfMZlLzaOlEyD4pcRSBzuVJqBVGQZ3Mf/fK4g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=ISB1kfS/sKYNexQV8FmgVqJ0nkvwWBQqJoqtsvkx1BJUQT5ac9OW6SXVJBRztJT5P wc6xJW4SH9Pu2EiiqNYc8uSCDQoMm8bscb9LYTex4FYyOYv+01ZORGrAcg0IZwGgYV 83+/uIVaYWQzzbByt5S64lbzgJ0eDCdq+BJj7sb1fo9UjZSzGdh94/w/z2FPJdPEX3 29sULTG6TFPMTsmMJJ4vVH8vzElaFnIDTZivxZEI/1WnZFZl+5ST6lMplc0yZQweTT rF4wjA1O91RkAfMcgxmEVHjCmHRa6xxVj00Gxn68SKpXGr6EbNYu3thmlG5c/iW6ow ingpZFyDCPhOQ== Received: from [192.168.1.107] (fibhost-66-234-106.fibernet.hu [85.66.234.106]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hs@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A1D5E81EBD; Mon, 19 Jul 2021 06:06:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626667593; bh=+YlTCcUfMZlLzaOlEyD4pcRSBzuVJqBVGQZ3Mf/fK4g=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=J2f13BZx+d53f4tlOgz4JQa9RvNTWrbYh2r+NkX7wZ18RPdr2DODFgXVQDKN6I0ay jrFgZrTQnOQ+mPy5Ti8ilGzoRHbJKw92unN5DLwGn1EUQboeoJgXn8BRo2RFMiOuQ1 1gRootfH9kaOMXb+zPZLHsZpaRO6gpTH+mHXhfxe2nHx8EgAczwbwtdAws+y+oJAyt akvpwd+VCQ35FFUX2C1mCBccjlv4POxmaI9QnAqCaRTZyTXn9UUbX3o6ZbpELjOIxf D+HxpyuZB97kZK+GBlvVWxmUfDXlFpde4Eqry+a6SFGl1gFvXYdOeP5ZWXHAJf7XyG hOYOUGHma/cBw== Subject: Re: [PATCH 15/17] i2c: Create a new Kconfig for I2C To: Simon Glass , U-Boot Mailing List Cc: Tom Rini References: <20210711031438.3230666-1-sjg@chromium.org> <20210710211425.15.Ice370f399e68eb59a69e84a42e000e16fb48f10b@changeid> From: Heiko Schocher Message-ID: <124b007e-93c7-7cdb-488b-24da453ff9cc@denx.de> Date: Mon, 19 Jul 2021 06:06:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210710211425.15.Ice370f399e68eb59a69e84a42e000e16fb48f10b@changeid> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: hs@denx.de Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hello Simon, On 11.07.21 05:14, Simon Glass wrote: > At present we have CONFIG_SPL_I2C but not CONFIG_I2C. The reason > CONFIG_I2C is not strictly necessary is that: > > a) We have CONFIG_SYS_I2C_LEGACY and CONFIG_DM_I2C for the two possible > i2c stacks > b) In U-Boot proper, we always build drivers/i2c/ regardless of the > options > > Still, it is better to have CONFIG_I2C - it makes U-Boot proper similar to > SPL/TPL, so we can (in a future commit) simplify the Makefile rules. > > Enable it by default, since as above, we have separate options > (SYS_I2C_LEGACY and DM_I2C) to control whether it is 'really' enabled. > > Once we have migrated I2C to driver model, we can drop SYS_I2C_LEGACY and > make DM_I2C become I2C. For now, this lets us simplify the Makefile rules. > > Signed-off-by: Simon Glass > --- > > drivers/i2c/Kconfig | 26 ++++++++++++++++++++++++-- > 1 file changed, 24 insertions(+), 2 deletions(-) Reviewed-by: Heiko Schocher Thanks! bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de