Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3153891pxk; Mon, 7 Sep 2020 04:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuMRF+ZbRQOerXVz3+d2nxCPdxNo6Ukw7rCsoNfZEe9L8BnewcebcuTMoPxJq7qwg4caEy X-Received: by 2002:a17:906:1186:: with SMTP id n6mr19639851eja.331.1599479949832; Mon, 07 Sep 2020 04:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599479949; cv=none; d=google.com; s=arc-20160816; b=N8avz0zy66Jql7maUphzsNT2R0OW9wilsso3oHKoV+MElTyhh7O6c82yY6sJDKRkdt 1pCrpWghyZsPUv4UaOm6kVbTP0KDjTewb/dpTYa/1DyCFMnQ9ND65fZ4Og1JR0a/W33f iARIEfPzLNYzjjgjLvDYtya8H2UDX1/AydCDaF6mhFWu4FrfrSXie+ysyxSdMoeb80Og 8dKAI7Nb3tb8kgmvCkDnsHxju6f83nXKT72BskfeNCGQYyACyo5bGjKYda7lIkp2A6nW n8biTR1JDicnLzhV6GYV/rOQMIsgk5Nl0j6mfoFwmmIG8/iM4GX6qp6eBbPs3zGkSN82 zS0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=IBp+4jIMXo2M2asKBJ6GZLCo7CpQWa3hSomvqRJ0bCs=; b=QvIt054osMIxO7mA7syk0pxWdL1xjPvoNWqRPDkD3FaVY4T94ra1IKnw/UkEJg508Q i6fhSPg+plYq/clYsR2mKbBabx5rLGsxTxro2wnN6GJwztum+WPa6MJZWcc9eqmWAwhG eq9NPPfY6iNWFQvIAABtnq0umplr5kHHbG738nyAKBCLe4ocTop9XNgq1lwdNf/ac5oC /Zns1aVuZgPVvKYiRdpYw/PczBsQ5mdLLDLyRocxrifDAQZsQTx3bfEMGVZb7mA8lQtR teHuustLxfdT2YoMsfNivZM38bLe0Y071TLXwHxvpRQnTanh5HrVsgJGqm7cHfuAbOM/ dzew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg14si10020672ejb.368.2020.09.07.04.58.47; Mon, 07 Sep 2020 04:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729165AbgIGLyg (ORCPT + 99 others); Mon, 7 Sep 2020 07:54:36 -0400 Received: from mga11.intel.com ([192.55.52.93]:10615 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729145AbgIGLvC (ORCPT ); Mon, 7 Sep 2020 07:51:02 -0400 IronPort-SDR: JZM6zfsSeRKmug3yNkG5B4Mpyh6AE9rKmcjbe2FeI2rvNQJoPpMUkT9/+vh10ZQR2PZ4Trsu3Z rO9FsS9e43dQ== X-IronPort-AV: E=McAfee;i="6000,8403,9736"; a="155489468" X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="155489468" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2020 04:50:58 -0700 IronPort-SDR: HQST3gf+o0GnEsydi+Z6/lIeh000nTt0LDNLWrhjgijJEO+/HaecyyeofJGt75liq7l3IMXzpo s/U8DrdrAMWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="333142540" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 07 Sep 2020 04:50:54 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kFFff-00EwLE-P3; Mon, 07 Sep 2020 14:50:51 +0300 Date: Mon, 7 Sep 2020 14:50:51 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Jonathan Corbet , Mika Westerberg , Kent Gibson , "open list:GPIO SUBSYSTEM" , linux-doc , Linux Kernel Mailing List , linux-acpi@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 15/23] gpio: mockup: use dynamic device IDs Message-ID: <20200907115051.GY1891694@smile.fi.intel.com> References: <20200904154547.3836-1-brgl@bgdev.pl> <20200904154547.3836-16-brgl@bgdev.pl> <20200904164917.GC1891694@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 07, 2020 at 01:04:29PM +0200, Bartosz Golaszewski wrote: > On Fri, Sep 4, 2020 at 6:49 PM Andy Shevchenko > wrote: > > On Fri, Sep 04, 2020 at 05:45:39PM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > We're currently creating chips at module init time only so using a > > > static index for dummy devices is fine. We want to support dynamically > > > created chips however so we need to switch to dynamic device IDs. > > > > It misses ida_destroy(). > > No, we always call ida_free() for separate IDs when removing devices > and we remove all devices at module exit so no need to call > ida_destroy(). Perhaps couple of words about this in the commit message? -- With Best Regards, Andy Shevchenko