Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp600704lqi; Thu, 7 Mar 2024 06:34:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXewwo3IO4uDspUoOl7LJOl5qjW9Re0wagj6Pfgw8fv03s1kz5/IzqwpZ+qpO/59qoXbJ7o1m9rnDJGDZLlcSy/3qH80xxF/GO8ah7C1w== X-Google-Smtp-Source: AGHT+IGvCn8LJ6Ow+LoSnJ5BExvnn8IM5gVsjosSvHqFvT/zrvgApYAnWavWqRkAG27SEEMCb2vl X-Received: by 2002:a19:ae01:0:b0:513:298b:73ce with SMTP id f1-20020a19ae01000000b00513298b73cemr1536596lfc.29.1709822080748; Thu, 07 Mar 2024 06:34:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709822080; cv=pass; d=google.com; s=arc-20160816; b=r/8uks0g/t1cGE2KokdngtM726r6jcmbsQTF/5pFsrzWbuO+Wnc5Pzhm4SZmFpe7io QkfhxQWqkVpHYFBrRV/c+LhizK+/GYrfPQp/wDpD8tlUS0A7T4jpmB4M3USszhs6b04Y 6BcXICRi6GgIiD1sCEBiAMNupV97wtYQ0S1B4veLoo7shxtKpRRxvw+iIhkiOxLmK5lv x/zm2q8OMkD5Zx95AUyUnri2fcC6QwfVvi60XrjiVAOn9G3o6PLqCXY87f0Afqv3N8oa 6pq2Oj2QlOJoQfRh+7c7+m/xRe6JT6fgW1k7/TPxMxwx7WRE+4bfnHDtaXk2Enxo8oH3 XKLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=f09FyQK6bbJpMAO+lRmbYEOGtoF6bKnHbS4uczC26iE=; fh=pzBjWsmKY1uktWKO8EYu9/3W8/F8GWb6lrlhlSxzaWs=; b=aE4bF21MyeHtw4CfTd7imoOLzoDJaYYGFm6uygKcvS/CfllHDH7hWNiE9Xdrz721Ns WhDmIMoSd2FpXZNElNqWcVp/z/Z+63wrHhELOlA921FSTJlxaVW8mKpEHWomFSpa2Qsx EhUysxTv77RAj9nAyVMX2mlyj9chns1Lbnp9TpTgZm9/eNYe9DeYiJoMcrqVucFfooI0 savHvnffYNPZvVKOmltiGdXe64xbwblBUOgMZErxlXnSrVoubgeSXuXMgUFK3AWcf28q 4W9+2Nx6wcwyibqucYD/qKmBrlaKh9X9xjf4YPyNe1usckB+/fMwAzwzrv8eMtPlGwXk 035g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oOdqDMS2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l13-20020a170906a40d00b00a43ffe31b8dsi6748788ejz.652.2024.03.07.06.34.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:34:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oOdqDMS2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-95740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4C8C81F265C8 for ; Thu, 7 Mar 2024 14:34:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 797B01DFF9; Thu, 7 Mar 2024 14:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oOdqDMS2" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2461A639 for ; Thu, 7 Mar 2024 14:34:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709822070; cv=none; b=iyhJ9RIZql46WUKjvPGsgMElbyvn3QwWZHJUrON80ifDJ/xgsMOsLrpe20LqJoUIkG3+6Twjf2gFOwl/U8cnR/kTkWlDXQ56ta8ru+zGMqIU9v64q2YaTR7tBOuRnsdzx6KUKJfdrpf0FrPvnQKhE37qyjswgcacjCPenmTFnGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709822070; c=relaxed/simple; bh=f09FyQK6bbJpMAO+lRmbYEOGtoF6bKnHbS4uczC26iE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ShMR9PzoRAM1h+nrzAUka920lohDbZ+7Y2SLUNUjLUXAxXn+851/AfQ7+ZwGnhmWYcrZBxENXyziHFITnUM8kEXWVhOmldtXmAD186CQ/EEGu6q/xGBdpmwIDvT8T5JotdTK2e7ELNXX4ITS3wWkT14a5RLjHyUNZXnkeyXHEa4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=oOdqDMS2; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dcbf82cdf05so941013276.2 for ; Thu, 07 Mar 2024 06:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709822068; x=1710426868; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f09FyQK6bbJpMAO+lRmbYEOGtoF6bKnHbS4uczC26iE=; b=oOdqDMS2MGMqVO3TvI/YP1+J//YTmRntjELebKv/GcJ7A+xTnHa7/UV3Ms8TYkgb+P D8pWHKsee2VXblCZbqtLKuUF9IbvuXhCsNljtTmTUZjT690FxVMF5+WV3r6uJyNbVCJs XYGO45vC25pKQE0NxV3K0gEXgJi9SMP/54guXob9L9sPmqazbx8f88ANAf7zS+2utPnR Z58fSXxKZu1Mz/9Esm9Sz0pYenNDow4IA391XJfgtufSaCIxg7cDExQrgFmb+041n8RM Zi0roSi9AMuC2JhdBf8o8vkMgx1v1z3cFPj7qmpjjfFd2nMMEEAIL+VLvmbT2Q2bzVHa er0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709822068; x=1710426868; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f09FyQK6bbJpMAO+lRmbYEOGtoF6bKnHbS4uczC26iE=; b=TIGI+bKAXyUyay9rSjnMssCNq50s9RgER0m7e56vzGlMFG22Mr9FSTjCq4+b/pBisn pN4FuIaBOqHG8Fl9hAGNHNoO1Fad4JmvN0yBFCU1UaUP+CLwDhlR8msFcdbGqPecYhfr F9yG+jJzp/oIpUUtoI/qG+Cq5f6BEsAkJhSFN1yCU5I/84mAseCHIZTo2tE1jwdq7llp cOsZ02u77zqnwQJ/8Hf40S0SOg+Lhv+KTGxHzq9SN6zVajWkcqVjAHdgPqpjwXTgPFfR HksSJ6b+fjEFoNFP1hliKQcwFb+cTxOxAXRSqzgFBuoNSEAGwI7FsdMyJfaqdRUYsEfP 5Ciw== X-Forwarded-Encrypted: i=1; AJvYcCVn3vdIlb/AtKqOT5CWgboce0NBdBivQP0gB3XLM5w9Dpi+nD7JNbB4d4UyvjqiR/0pj44ffoUc5ffgD4m1QTGConAQuLi37Dhg9wcQ X-Gm-Message-State: AOJu0YyZWY1TRIccu8urma7yqPQQVNYfPut3NzYvl8gSYMKSVipUIbG0 whYtT3PCIY87O9iPjvZ47ft8Tdfl9KW8z4nNMwYUZgx21e3zU/O4bf6Uw6R9WQFedED+QIjeriG MLqlo6lIbVzqOMgliV+2dAbZZb/ek/6dj23odjg== X-Received: by 2002:a25:abea:0:b0:dd1:ebc:ca2d with SMTP id v97-20020a25abea000000b00dd10ebcca2dmr3363260ybi.52.1709822067776; Thu, 07 Mar 2024 06:34:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307140729.2278907-1-arnd@kernel.org> In-Reply-To: <20240307140729.2278907-1-arnd@kernel.org> From: Linus Walleij Date: Thu, 7 Mar 2024 15:34:15 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: aw9523: allow building as loadable module To: Arnd Bergmann Cc: AngeloGioacchino Del Regno , David Bauer , Krzysztof Kozlowski , Arnd Bergmann , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 7, 2024 at 3:07=E2=80=AFPM Arnd Bergmann wrot= e: > When CONFIG_I2C is set to =3Dm, the new aw9523 driver fails to link: > > arm-linux-gnueabi-ld: drivers/pinctrl/pinctrl-aw9523.o: in function `aw95= 23_probe': > pinctrl-aw9523.c:(.text+0x9f8): undefined reference to `__devm_regmap_ini= t_i2c' > arm-linux-gnueabi-ld: drivers/pinctrl/pinctrl-aw9523.o: in function `aw95= 23_driver_init': > pinctrl-aw9523.c:(.init.text+0x4): undefined reference to `i2c_register_d= river' > arm-linux-gnueabi-ld: drivers/pinctrl/pinctrl-aw9523.o: in function `aw95= 23_driver_exit': > pinctrl-aw9523.c:(.exit.text+0x2): undefined reference to `i2c_del_driver= ' > > Make it a tristate symbol so the dependency is correctly honored. > > Fixes: bfa5aa367a82 ("pinctrl: Add driver for Awinic AW9523/B I2C GPIO Ex= pander") > Signed-off-by: Arnd Bergmann I sent something similar yesterday: https://lore.kernel.org/linux-gpio/20240305-fix-aw9523-v2-1-2dc50bab2b17@li= naro.org/ Thanks anyway! Yours, Linus Walleij