diff mbox series

Link failure with CONFIG_SPL and CONFIG_I2C_MUX_PCA954x

Message ID DB7PR03MB3770D9DFA4215EF149992C37A04D0@DB7PR03MB3770.eurprd03.prod.outlook.com
State Accepted
Commit 660606091f12320210cb7ced018788b8028aab5f
Delegated to: Heiko Schocher
Headers show
Series Link failure with CONFIG_SPL and CONFIG_I2C_MUX_PCA954x | expand

Commit Message

Trommel, Kees (Contractor) Aug. 3, 2020, 2:49 p.m. UTC
Fix for the case of a U-Boot configuration with CONFIG_SPL,
CONFIG_I2C_MUX, CONFIG_I2C_MUX_PCA954x, no CONFIG_SPL_DM and no
CONFIG_SPL_I2C_MUX. Without this fix linking of pca954x fails because
dm_write_i2c does not exist because CONFIG_SPL_DM is not defined.

Signed-off-by: Kees Trommel <kees.trommel.contractor@draeger.com>
Cc:  Heiko Schocher <hs@denx.de>
---
 drivers/i2c/Makefile       | 2 +-
 drivers/i2c/muxes/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.26.2.windows.1

---
This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.

Diese Nachricht enthaelt vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfaenger dieser E-mail sein, senden Sie bitte diese an den Absender zurueck und loeschen Sie die E-mail aus Ihrem System.

Comments

Heiko Schocher Aug. 25, 2020, 10:21 a.m. UTC | #1
Hello Kees,

Am 03.08.2020 um 16:49 schrieb Trommel, Kees (Contractor):
> Fix for the case of a U-Boot configuration with CONFIG_SPL,
> CONFIG_I2C_MUX, CONFIG_I2C_MUX_PCA954x, no CONFIG_SPL_DM and no
> CONFIG_SPL_I2C_MUX. Without this fix linking of pca954x fails because
> dm_write_i2c does not exist because CONFIG_SPL_DM is not defined.
> 
> Signed-off-by: Kees Trommel <kees.trommel.contractor@draeger.com>
> Cc:  Heiko Schocher <hs@denx.de>

Please use for further posts a single space after Cc:

> ---
>   drivers/i2c/Makefile       | 2 +-
>   drivers/i2c/muxes/Makefile | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-i2c.git

Thanks!

bye,
Heiko
diff mbox series

Patch

diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index e851ec462e..f7b2786448 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -46,4 +46,4 @@  obj-$(CONFIG_SYS_I2C_VERSATILE) += i2c-versatile.o
 obj-$(CONFIG_SYS_I2C_XILINX_XIIC) += xilinx_xiic.o
 obj-$(CONFIG_TEGRA186_BPMP_I2C) += tegra186_bpmp_i2c.o

-obj-$(CONFIG_I2C_MUX) += muxes/
+obj-$(CONFIG_$(SPL_)I2C_MUX) += muxes/
diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile
index 68ed9b547d..b690821199 100644
--- a/drivers/i2c/muxes/Makefile
+++ b/drivers/i2c/muxes/Makefile
@@ -2,6 +2,6 @@ 
 #
 # Copyright (c) 2015 Google, Inc
 obj-$(CONFIG_I2C_ARB_GPIO_CHALLENGE) += i2c-arb-gpio-challenge.o
-obj-$(CONFIG_$(SPL_)I2C_MUX) += i2c-mux-uclass.o
+obj-$(CONFIG_I2C_MUX) += i2c-mux-uclass.o
 obj-$(CONFIG_I2C_MUX_PCA954x) += pca954x.o
 obj-$(CONFIG_I2C_MUX_GPIO) += i2c-mux-gpio.o