From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 9142A367F25; Fri, 6 Mar 2026 11:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772798321; cv=none; b=Lqj2p+x8+0kpreX5cTAqIFlvtQD02mx5IPBxCZBtMU8sH7n8hdAdCS32HsiTMLzWOCPpJb1eNE09VsgVrG8pFKOKdD89yTcC6m1au3vqZB8cvsV04+90xkqnn4h+akLyjFCLeG/KpcAE5IYNkVtZr0YDfBfcEUjVhbJPLgsAj8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772798321; c=relaxed/simple; bh=cEQaX+VtmqE/SxpWMBRV1Qx0pWS+puKGMQ6VzGSrkUc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kR8t4YmGr5FfMjMO8iG9KcPYbn8PKZ+99Q9JymsiInUA/7w774BZj+e8WDe0isJrvWVFRbwerC6MOAIC340mZtDcxZeQrJSdUzMpAGZi/E12HVSqY+XZzoM5avIAmw66ohab5I0vPklDcb6CkLOsIHsjYW2HNVy2RWj6CmYtIVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fTVuQsjD; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fTVuQsjD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772798318; x=1804334318; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cEQaX+VtmqE/SxpWMBRV1Qx0pWS+puKGMQ6VzGSrkUc=; b=fTVuQsjDzrgIyDVuJSmZAZB2JtSjQdN3rseM7OW0fZ7af+YgWyD4ZIzx AtMo0uzSIkioZNSvd1ZbqqLgfhOYHNvsg7Tj5aVFK/SkvZlej2Jgehey8 Y14eGPRWdIktTvpj+xGxLyRq0bTZ1nBOxOvsGPBhpGOufhMC5qx0LpTZ4 ceUTxGcNDJZv37M7yoLW6jxNkreEhOIpUFVugML8YYOmduUNimdBAJ6+8 AJMqA743vutcaPtRViJUCj4fujuR3CK4sGa9o9/OV5+cDzm1XgtDRnC27 rBxrUUyPMZKu6BMLWGL8/soXLk6vLS2szwQX1i8gwt8w2PDfVWVCedtWy Q==; X-CSE-ConnectionGUID: eTBh3d8lRUmCSOd6K6ZUHA== X-CSE-MsgGUID: k6sFTmdJRHiUU+whnVmrrQ== X-IronPort-AV: E=McAfee;i="6800,10657,11720"; a="73095931" X-IronPort-AV: E=Sophos;i="6.23,104,1770624000"; d="scan'208";a="73095931" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2026 03:58:36 -0800 X-CSE-ConnectionGUID: C9sHvJJDTHOtW+4gpDJeSw== X-CSE-MsgGUID: 1hJhBcTBSgCKnGYEoy/d5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,104,1770624000"; d="scan'208";a="218224486" Received: from abityuts-desk.ger.corp.intel.com (HELO localhost) ([10.245.245.1]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2026 03:58:30 -0800 Date: Fri, 6 Mar 2026 13:58:27 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Bartosz Golaszewski , Geert Uytterhoeven , Frank Rowand , Mika Westerberg , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Jonathan Corbet , Shuah Khan , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-doc@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 0/6] gpiolib: unify gpio-hog code Message-ID: References: <20260305-gpio-hog-fwnode-v1-0-97d7df6bbd17@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-doc@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: <20260305-gpio-hog-fwnode-v1-0-97d7df6bbd17@oss.qualcomm.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Thu, Mar 05, 2026 at 10:51:25AM +0100, Bartosz Golaszewski wrote: > GPIO hogs are handled separately in three places: for OF, ACPI and > machine lookup. In addition hogs cannot be set up using software nodes. > A lot of that code is actually redundant and - except for some special > handling of OF nodes - can be unified in one place. > > This series moves hogging into GPIO core and bases it on fwnode API > (with a single helper from OF to translate devicetree properties into > lookup flags), converts the two remaining users of machine hogs to using > software node approach and removes machine hog support entirely. In > addition, there's a patch extending the configurability of gpio-sim now > that it uses software nodes for hogs. > > For merging: I think this should go through the GPIO tree with an Ack > from OMAP1 maintainers. > > Even with the new feature for gpio-sim, this series still removes twice > the number of lines, it adds. Lovely! This was in my TODO list somewhere deep, but I never started it for real (had some very very initial patches) Reviewed-by: Andy Shevchenko (Maybe I will have time to test it later on, I need to check if there is a use of them on Intel Galileo Gen1 platform). -- With Best Regards, Andy Shevchenko