Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1327286rwd; Thu, 15 Jun 2023 09:05:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73iQMW2tVU79N6GmaJsakj3WZOpZakntLl9iNQv2TftpbRfZOG4W5CdM1/iGCmtBb4eP0r X-Received: by 2002:a17:907:31c8:b0:978:62c1:6b4f with SMTP id xf8-20020a17090731c800b0097862c16b4fmr15943026ejb.12.1686845146804; Thu, 15 Jun 2023 09:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686845146; cv=none; d=google.com; s=arc-20160816; b=B2ycyBTWDaLgwdoe3epjdeFr24g7JzD1iqhIQY0P419yeG0q6oPNzhjsy8BmdxTDgZ JlFBwy0R4nB3rv2h9FE4W8IjJT4M0DNtUswR85we6eHtcvZM8JKy/hpXIPavUfq956hc 8UYXrnApl7Bnbhw7G62fbjchPVtej2jDt6u1+TDf2oipXMuRWzJo3y3IXV2RT+iFIl/K hCbABRS2SGsbPYk/AyDQ+NnEx9MDsU+1I67J3sqgyoGZqDjF0kRkzEFrm7mPM7DonYrd sd94zhLN90wZEwOukYdRzr7lBkF6rVjRaXTP5y/tOmneg9Dn4WZ+Hi/PZKr2cgqt+4eQ p2wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fWEGnBHXNc63Uwxz0zgOjUOLLEa/esM7YJRwb/HCsjY=; b=H2Zul0jL9dM5zkLs7uL6xrVcwftSu8Wseqoi0X+pqvBUj7f+hYjq+RxFU10doIqUqm RaTM87pYPFX84FWAqTyhGEjKS68z8Xptoc91KHOAOdCiSeZ1+Gj5iqVTqxRg+NDlqD4Q C0QXsTqTjwLNmc4/oG+ORBJbftpXdnWxQT/c53lQulGs94QNtytNCKbZN18QjJ0Yt9TU AHvPZTrSq0xK6zEUNZNzmkMRfGgs69Oort7DDEt4xA+mtgBNjvsLx+tSapo9IbJwLWmK syf+DWkG9IqIbqj6HxBTtX7UTA8kzQK3t58UJTJGZdKhEpVKu2fUgcNC42Dqxwv35r3e Z10w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dVXUZEjN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qt27-20020a170906ecfb00b00982a4f487d2si912407ejb.387.2023.06.15.09.05.16; Thu, 15 Jun 2023 09:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dVXUZEjN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244229AbjFOPuM (ORCPT + 99 others); Thu, 15 Jun 2023 11:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344086AbjFOPtm (ORCPT ); Thu, 15 Jun 2023 11:49:42 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9A1DF; Thu, 15 Jun 2023 08:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686844178; x=1718380178; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=PFBtTtmWe3T3OLLflnk8WWM5W5odQPoBX/I7JOJDbQE=; b=dVXUZEjNZGynz3mqarh0IYhioTOFuJgFqzyHmguVsDgQ6e6ciik0g5CK RbVBRgmS0VKiHJII5dsmmaag6o+VyLNUHHit3d4om7yGOOZxhNDRRMevq pD/+ynPdrR67+SPxT47naStNAU2EihV7fDUgK9zGNbnGGlaQ9Tq0xSoHh Ga/wwzhAktfTM6iJaHXYT9FS1WOH9lLmo4ZHpQuasrA49vM2WozfYJLhA qDJ0/LFrVIWgvhPvxnBSvVqtcpPfAd756s+zLx8mLaOz+YoNeiB7jMF+w nxbbbSlDpHDpjwMKGQ1w4dKAx3roTLERfnW27H7LCYeVAhmtVNh7xONIf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="424868043" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="424868043" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 08:36:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="857019779" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="857019779" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2023 08:36:09 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q9p15-003yU3-1z; Thu, 15 Jun 2023 18:36:07 +0300 Date: Thu, 15 Jun 2023 18:36:07 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Bartosz Golaszewski , Linus Walleij , Alexander Stein , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v3 3/5] gpio: aggregator: Prevent collisions between DT and user device IDs Message-ID: References: <20230615132023.13801-1-andriy.shevchenko@linux.intel.com> <20230615132023.13801-4-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 15, 2023 at 04:54:14PM +0200, Geert Uytterhoeven wrote: > On Thu, Jun 15, 2023 at 3:51 PM Andy Shevchenko > wrote: > > In case we have a device instantiated via DT or other means than > > via new_device sysfs node, the collision with the latter is possible. > > Prevent such collisions by allocating user instantiated devices with > > higher IDs, currently set to 1024. > > Can you please elaborate? How exactly is this possible? > > Aggregators instantiated through sysfs are named "gpio-aggregator.", > and are IDR-based. > Aggregators instantiated from DT are named ".". > How can this conflict? When instantiated from ACPI? > What am I missing? Nothing. It's me who misunderstood how OF platform device naming schema works. So this patch can be discarded as we never will have gpio-delay available for removal via delete_device sysfs node. Bart, tell me if you need a new version w/o this patch (but note that b4 can handle this case with b4 -slt -P1,2,4,5 ... ). -- With Best Regards, Andy Shevchenko