Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp171527lqe; Fri, 5 Apr 2024 17:31:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+crrFgEgrcuPT82Tbw9Tff3mNrOvzM/eXSJonXup2f7CajkqWotG89sNqZ9Wl5MWUiM2swuGtLBxzRgfRXT+ADig5TSWWHJZwaIZc+A== X-Google-Smtp-Source: AGHT+IEkrsVGsQjTYZDe94OqY0LYeU2KCw7maNjW70FBBCoCOXB2r2PciTCdMwaR5JnchgzeR0/t X-Received: by 2002:a05:6870:418d:b0:22a:1cd5:dc5 with SMTP id y13-20020a056870418d00b0022a1cd50dc5mr3597609oac.20.1712363518921; Fri, 05 Apr 2024 17:31:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712363518; cv=pass; d=google.com; s=arc-20160816; b=K2DVHt7+StNoeHbeNX76uvol1iqkF19GOk8Y8uP52837PElzmi3MOERFjmN7Pwb3yT rG3vJL+oDT3evfR/CEYYkEu2j6WCDJcKc9Qp+PeD6Hxt+Xt7oWqSME+WJTCmaHWQ/Igc BhFrZsUhymL4jfuPNYNowGubotzKZSR4OvOfCuJRbRGKfxoPYLEEXIP4yUpVfG9iiwzo IbOsHcyNWuE6tqBPPTyDEic2p9KedZ6aRCm7HIsfURkSQD4WRyR+TIHVe65IGddbfs8f 9YHK/z17EXZg2wY60jBrhBDrtFOQVRhPkajhzJwlKjio2gHyIU7X0uAy/5bQaLWBTtCh 5Y6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WtHLcz1usOVgwQeWir+PzNWpXVRU4anNniP6BkEQoCc=; fh=WKTcvwYmahpjOZtp70cMyz6J1jBDAW7N+JtYOzuqFxI=; b=q9QASiPeNqEe7E0jor1BlgxHmGbKsbj9H6H+FpaBASn3NJdJnb1Ybz2nHIYBkAfqF9 wiq/IWNUjYFhXZqqliIezy4O66O+td5o8Mw7f/8Gej2pxRqFCvmuDJsQd4CFOK5AUZNa APU7RXCOx55xMYpvdJt8UVj/fz04Yq520EtXzg4e0EiUCWSh74i6KVhBLqNAgPD7YhvA YPi70Hg7vJ2enn265C2N4Z3ldhnImcOJGx5btiIGypsUVclo8pu6z1p2F5aNPOlV7YVR AQHvUYomcBxLb1nTDeAnTLpL9CjwjfkIGJM5CLti273L5u9Q19V/JbITZDiY3tBET9QW qumw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uL/8ZWKv"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f14-20020a056a0022ce00b006e6c2182f7dsi2274448pfj.123.2024.04.05.17.31.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 17:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uL/8ZWKv"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 32DE028473C for ; Sat, 6 Apr 2024 00:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 871F53C0B; Sat, 6 Apr 2024 00:31:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uL/8ZWKv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8B7B632; Sat, 6 Apr 2024 00:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712363510; cv=none; b=qho5AiQpK3WQ4aBNTV+iwcpXbG7f00f5xRGz590Ki1uwRMXGBMZnlPJXAV4nITuN6IPvJK8DOEfGIx6zCrpJa/BkNo+FUXQoOOJNMvl5TwtTM5vYqUnVGxDliC8cM2/OueY/RNMV2SKE7PUdnB2oStAEMfTZwYTWw699rTwhkVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712363510; c=relaxed/simple; bh=bd9s04wUaLu4Yh59HHU7R0GCVInJamM+pcf+isBLVcQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fnrhtj3u7pgF1VVMf5W5Dr+PuVg36eCmJ7C/wdcvnUSm9RqD6zFtWjRWPQ2Fye7FUijAR9SEyzvyVK3NRD4naRA2uUDYmvjipnx2j2EIN3Krsfxxtv1eDdSl/Fc9wPH/bFoYy+oimSORR10b94kTsvpM+ZZF8vGCJIoBeESlhJE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uL/8ZWKv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8876BC433C7; Sat, 6 Apr 2024 00:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712363510; bh=bd9s04wUaLu4Yh59HHU7R0GCVInJamM+pcf+isBLVcQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uL/8ZWKvoDBZLY2DvZV5JDkTFZSm7KAWyfu9+7hcXWQVDKtfX7LpxD3gu31CHVfRy i3xFX9ROamIugcypLbcMuOgmV92kLyW9wfMq6Ix90OvRhlqL7RUSj22OInkrpfu0aS QpzeqU8PsrEzJm+Dq1jdWWoeQ2j9aKUUhOXZlqLyVcEvvj1wI9BTcjqyBwYgMle0Hn AIMeEc8DF0k68qys/JPC83i+r6XqbAAdaTq/fkxGWxdFC1VA8CaFpVTpJ/1+aGJntI SsY33okiP2B3lv9np65SZwv6BuEz6pLRx81eZSXD1C2mrd1yy93m2f7H9bXkAJYdGJ eTEUf1ygmD/Dw== Date: Sat, 6 Apr 2024 02:31:45 +0200 From: Andi Shyti To: Arnd Bergmann Cc: Wim Van Sebroeck , Guenter Roeck , Heiner Kallweit , Wolfram Sang , Arnd Bergmann , Jarkko Nikula , Geert Uytterhoeven , Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH] i2c: i801: add I2C_MUX dependency Message-ID: References: <20240405142823.615609-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240405142823.615609-1-arnd@kernel.org> Hi Arnd, On Fri, Apr 05, 2024 at 04:27:43PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > When I2C_MUX is a loadable module but I2C_I801 is built-in, the newly > added notifier function causes a link error: > > x86_64-linux-ld: drivers/i2c/busses/i2c-i801.o: in function `i801_notifier_call': > i2c-i801.c:(.text+0x1f5): undefined reference to `i2c_root_adapter' > > This code is only built if I2C_MUX_GPIO is also enabled, so add a > conditional dependency that allows building the driver as before if the > GPIO part is disabled, but otherwise require the linker dependency at > Kconfig level. > > With the added dependency, the driver cannot be selected by a builtin > ITCO_WDT driver when I2C_MUX_GPIO is a loadable module, so remove > the 'select' statement in that driver as well. This was apparently > never needed at compile-time, and the watchdog driver just needs either > the LPC or the I2C drivers, but never both. > > Configurations that rely on the implied 'select' from the watchdog > driver now need to enable all three. > > Fixes: 71b494e043d2 ("i2c: i801: Call i2c_register_spd for muxed child segments") > Signed-off-by: Arnd Bergmann thanks for the proposed fix, but Heiner has already submitted a fix for this issue. I'm going to mark this patch as superseeded, if that's OK with you. Thanks, Andi