Received: by 2002:a17:504:f96:b0:1be9:327d:8ee3 with SMTP id oa22csp282849njb; Mon, 17 Feb 2025 12:22:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVsSD1UqJluuGgLoB06saT39xMT6S33dO11Ru51SouKCKOV4It4HPwRppeNCQowLLEQHboUD0nDfUCwHw==@linaro.org X-Google-Smtp-Source: AGHT+IFYz6pdzPChk5Lw+TBq2dkmGYQAMpr8vPZp54fnJOLyvyulLWwKKWOl8CDRa+Ui1d3S8JXp X-Received: by 2002:a05:620a:2493:b0:7c0:60a8:7741 with SMTP id af79cd13be357-7c08aa7a047mr1976443585a.36.1739823733742; Mon, 17 Feb 2025 12:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739823733; cv=none; d=google.com; s=arc-20240605; b=ieQJHGmlYb4B841/NB/I61KHNT+O2ixP4awwBw2C6lJmP3rjWYdPF9tPYgovfGqFHa rd1WdbdZ8MvYHQK+NrWvHNy9pDw3tQsWMPYLiIhwWU7vdao1nn35IhPMlbI6dEnF44TA rh5QmsCouUlCKN4DEJlKuvNZxcEFgyQV0TKddG71xBhWNrq4IIgD22AWY7A4V5ltMxUg sTaTZunCDH9XJsovgVmgMq36QLbXAoBqilsyhnmOHrFbRT4DnTVpy9kK6fN557SxEy49 0M4lZWrm0zdKhkeAavwaxIiqsKAXYb9eSLYAx9XE9KYMhu8uC4P53YYdNGjHVfy6X45W SJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=ZREVhBW3YhrKhq8Mmtpeghu4/sgYahbIKLxpHaZzI+U=; fh=NZMBPCQEpFum/0RJ41WhmMWGhr/ZWZ5TrUpxe+gr5GU=; b=KXi01tfsl83xj1TqeJ1g5BuApu7YRWpJ7dA9ohTbKi8yIKNFbHXWTnPP0NFYcER5uV 9rIJcSq6c6oNtBj8zcengoEQKHNtmoGk+qQyrPt1e9G/94f0cg2+iufOSu4XydXtL8os ttH9rgAEfXsqHSNP1xk2kTJd6VqCqtrM9bRYfyQ26FvsKKn39JMhz0yt4DLx0j+GXMB9 wFRPzJvB//caHMzBHhnXAj113Pm+VtgjncTV47EYvRnjz48XmIQ86obDFR5LFrSS0RUS WJ9RO45CXUHF0AImSGyUBvr6M6fn2n7zDA0OpzbVk1KwzX8kyYZFwcAsndpntVzCQdmf U6Bg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aRcET85i; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c0a21f0323si184399585a.491.2025.02.17.12.22.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Feb 2025 12:22:13 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aRcET85i; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tk7cv-0008Ew-EQ; Mon, 17 Feb 2025 15:22:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tk7ct-0008EO-Og; Mon, 17 Feb 2025 15:21:59 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tk7cs-0007Yr-2t; Mon, 17 Feb 2025 15:21:59 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5e04c044224so2861395a12.0; Mon, 17 Feb 2025 12:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739823716; x=1740428516; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ZREVhBW3YhrKhq8Mmtpeghu4/sgYahbIKLxpHaZzI+U=; b=aRcET85iRw6XspJFGMqdhcaea5Y/AHY4VyrJueL3zJ7RYMACWXaTwH6e3fOcnT9YV/ qpti1/muv2lA3QNB17l+sexgsEiaIUtcYE5QW/vF3vhs2zr8zO4BuMMGYKtDVte+ZfHw 21WwjME8sxUuXG3XPqt8I+l5fPbki022UuCkJ15ExwMG+5ecT+HVDRKZy4MtvbbfBlMW zlwRT1CYeqTHJRYtlkoUiMzVIHLY8mWz2re8SAXATJyyDKF6LuUI/4rPWGa07gpogYUd IS2zuOCm2Hfrvvvl8vHRNgCZOWPKrx52QOEdGxXZpAOI4EHYYa3NQGKx4LVKhgVhNjjN N+EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739823716; x=1740428516; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZREVhBW3YhrKhq8Mmtpeghu4/sgYahbIKLxpHaZzI+U=; b=PgHJQ7d/LZZ/i4wxwyCD7dTnGJQmUYMZXiPFXu0UuX51wxPrFsRQaoV7OEo6nGFXP7 fjC7tZi8PQ1wGmA5I0xjMh09PCz33uyVSeDNWPx3fOX69SA95DiGK2FLq1L4aa2v2C7a XB/Q6/bax8aYt8+8i+IZxX3jLnoirsGeNHnrJGAqppwsEJLoDAFihCetgsJUk5fZ5ms+ FbxegXe7WkM/V0ttAcn31vrT4ndv34luyFa5jXeVKKmwwzDd2VspEFV32icFEfAxCWsD n08QLuyRg/ztKWEvchMqXzTr08400+GYvTAZ0vsV8xFlEcdhpqb9kyt8diKFJsZeHm2K ecZw== X-Forwarded-Encrypted: i=1; AJvYcCVY03KB9VSAZSoPFOxph7GTl/YtMHubPwmLWPoTuoaen5ip8kMySIOyzkTU56Gc3wSLtkzg2LAgvw==@nongnu.org X-Gm-Message-State: AOJu0YxhSY7/CWnWq7ZtIwUrZNHKkQApJCijo71xwGOeRbI14DtC8qwb DlC2tceE9T3U7azJAsGQV3MHSCKLSeDo4V6wZuE/Nk27J8J0Vg5g X-Gm-Gg: ASbGncvMaF8zolIv09/GE3RzGaMpbw1H/9Wz8DTevpixV+V/gQPTRpc92KuvInh+NoF ZSwVZeqw8DACl/MxWYkk5W8k4JWWloHtMJARntNzvzkN+ZIhicmHjayZXwocrwgHg13y79/qCLL nn7i81mYhrLWbA8xgCQwVEH5Ts17CGzYmEhcyohcJTFAexbe/JkO8OXey0a/j7JWV8yLHfZt6az ej7cRXJ4f09Vk9RhYK5AkrqEPnxFDJtiDx5q9ocMlsxsxQveJC+jUeyi5Nf3UYId883a80hYWk3 MXajM9Kfo8WqKAmicX98J/X9O3Qfe7NASmsqG1E92D7K561DZD7I0SXNoQ0mHEHkrp4= X-Received: by 2002:a05:6402:27d3:b0:5d0:ed71:3ce4 with SMTP id 4fb4d7f45d1cf-5e036049b1fmr12517559a12.6.1739823715616; Mon, 17 Feb 2025 12:21:55 -0800 (PST) Received: from [127.0.0.1] (dynamic-077-191-175-027.77.191.pool.telefonica.de. [77.191.175.27]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5e075f59e3csm244342a12.43.2025.02.17.12.21.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Feb 2025 12:21:55 -0800 (PST) Date: Mon, 17 Feb 2025 19:39:02 +0000 From: Bernhard Beschow To: Peter Maydell CC: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Andrey Smirnov , Paolo Bonzini Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2_03/18=5D_hw/gpio/pca955*=3A_Mov?= =?US-ASCII?Q?e_Kconfig_switches_next_to_implementations?= In-Reply-To: References: <20250204092112.26957-1-shentey@gmail.com> <20250204092112.26957-4-shentey@gmail.com> Message-ID: <18125593-7729-40FA-9FC1-7DC912287503@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=shentey@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: EXwnv55CHgah Am 17=2E Februar 2025 13:35:04 UTC schrieb Peter Maydell : >On Tue, 4 Feb 2025 at 09:21, Bernhard Beschow wrote= : >> >> While at it and since they are user-creatable, build them when >> CONFIG_I2C_DEVICES is set=2E > >The patch subject says this is just a rearrangement >of the Kconfig stanzas with no behaviour change, but then the >commit message body includes one=2E > >If you want to build these when CONFIG_I2C_DEVICES is set, >that should be its own patch that does that=2E > >(The move of the Kconfig bits to hw/gpio is fixing a bug >in 6328d8ffa6cb9d ("misc/pca955*: Move models under hw/gpio"), >which moved the code but forgot to move the Kconfig sections=2E) Okay, I'll split the patch and use above commit message=2E > >Separately, it's unclear to me how worthwhile it is to add >these to CONFIG_I2C_DEVICES, because they're GPIO devices, >which means there's not much you can do with them as a user: >as far as I know you can't wire the output/input GPIO lines >up to anything=2E We have the device models mainly for boards >which provide them, so that guest code that expects to see >them doesn't fall over on bootup, and because the board >model code does have the APIs to wire up the GPIO lines=2E It's basically to satisfy Linux which will clog the i2c bus if such a GPIO= expander is configured in the DTB but missing in the emulation (it will de= fer probing which will never make progress)=2E Once it is its own patch we = can decide separately how to proceed with it, e=2Eg=2E dropping=2E Best regards, Bernhard > >thanks >-- PMM