Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3377758rdg; Tue, 17 Oct 2023 12:46:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPBZR8JGo/0ECLcoyO1qVBYaeLWIMahz6v37cIj+0zySuZ86LCwg61Hif4go/mV/1uc9WY X-Received: by 2002:a17:90a:d98d:b0:27d:2ce9:d6d5 with SMTP id d13-20020a17090ad98d00b0027d2ce9d6d5mr4549966pjv.12.1697571961758; Tue, 17 Oct 2023 12:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697571961; cv=none; d=google.com; s=arc-20160816; b=w2O20xCmQfZtgQb1T/kZBJVgtEQxuSXQXKUsItQyzGbG6aeZ6sBZb1c23h7AzvhKyp JoU9VER2KdUOHepfwpN5mgItHOmpN8Q/PEFdnrePZ5JCdX5BHbzMWDNtWcnqFkb5/17r i34qQ+78oNi5DAi5fnqLMYDX+MJe8/iq7ajZI7BsXJ2YhkSln+LIajSZMl3BWWrqV99i XaX5+jkhnTBH3DwbNKZhWtLBG/oNkcHZaMIOg7NG9t2WoHoH2PwzNhIHKCsnuwObvCSB /fWaarFnhi9KUahxx0Ys50RBn5APdyoqkI5oFQpYTFvb1fKU2jdX8Y05/WjSVLQb7U+r bkaw== 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=tvuvMcd2XpCbqrzENoTFA7/r1Hd88qGP4273aECNrAM=; fh=5wgG+XVmlYaLgKYaz/pqvHkEglSvsjhxhp8LQDXojMc=; b=SowttI1n4P+Tmatw/8sFHBLHGmsYhVSvrctag6DiqQkLuJqEVaD22soZ7V1TbzD46X 8yvJlqtaqAIbLHanu4OQ/6k+YVAsstvBA29IeChVHDh+S8hFTjHxLYB2944zIGEkqsbv //084WtRkbfF42iFYlXmKzW8yXftmJaNXTilFWgrb21YDM+AZuz0R92QSuGrU33i96VW Yvim0ws2geWgceElFrMgI/ToM/k0g2qiSbW0X86NUXT/AesocFDBr0WitER8ptjwgab0 iVb8hSND4Fl+viMY091JTzqzbNT8XQF+tmnYxgmXYd8MhFXHRi02QSVl4xdlL42Frkqv z0fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Oo7B3BXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i191-20020a6387c8000000b005859cd26195si462019pge.487.2023.10.17.12.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Oo7B3BXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6E6E280C923B; Tue, 17 Oct 2023 12:45:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344158AbjJQTpt (ORCPT + 99 others); Tue, 17 Oct 2023 15:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbjJQTpr (ORCPT ); Tue, 17 Oct 2023 15:45:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92030F1; Tue, 17 Oct 2023 12:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697571945; x=1729107945; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=N7ORy6k2dxvfyteuCSTaJBoDsO/YHTfYnab+FNPQi1U=; b=Oo7B3BXv5/AvjluDWhFA3r0/eiAGicZNPujItFs6r1HLY8AIVaDbaSQb KfUSmVgRjSlTNuKP60RQt8XoNBkf0vj9K3fJlIgKik1g73UJse0rdzMIw gsu2OvtrFNPmDJJiZ7rIkLJmwLtO3IlN2+2CWSaDyZirSh3VASaqpSfHj FxQ4JH+ubWqLQhuAZaXJpCzZ6nNIV3q0RcMkKK5VfFnZHkXzzi0LqzhaN yzNWGvVklquMaKZNxIMT7YL6dLFfHIXfJ1tlOPvCv6OranP0bgwKX4dHE yTVZPFD2eOTDJvMVWKem3jhrkn4RqC4xJKXvl7JRPclYkmO/7QJvz4qOf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="450089432" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="450089432" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 12:45:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="872718031" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="872718031" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 12:45:42 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC2) (envelope-from ) id 1qsq0Z-00000006Pdp-3vyB; Tue, 17 Oct 2023 22:45:39 +0300 Date: Tue, 17 Oct 2023 22:45:39 +0300 From: Andy Shevchenko To: Linus Walleij Cc: Ulf Hansson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Ferry Toth Subject: Re: [PATCH v1 1/1] Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()" Message-ID: References: <20231017141806.535191-1-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=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:45:59 -0700 (PDT) On Tue, Oct 17, 2023 at 08:59:05PM +0200, Linus Walleij wrote: > On Tue, Oct 17, 2023 at 8:34 PM Andy Shevchenko > wrote: > > On Tue, Oct 17, 2023 at 08:18:23PM +0200, Linus Walleij wrote: > > > > In the past some file system developers have told us (Ulf will know) > > > that we can't rely on the block device enumeration to identify > > > devices, and requires that we use things such as sysfs or the > > > UUID volume label in ext4 to identify storage. > > > > While I technically might agree with you, this was working for everybody > > since day 1 of support of Intel Merrifield added (circa v4.8), now _user > > space_ is broken. > > Actually, I don't agree with that, just relaying it. I would prefer that we > solve exactly the problem that we are facing here: some random unrelated > code or similar affecting enumeration order of mmc devices. > > It's not the first time it happens to me, I have several devices that change > this enumeration order depending on whether an SD card is plugged > in or not, and in a *BIG* way: the boot partition on the soldered eMMC > changes enumeration depending on whether an SD card is inserted > or not, and that has never been fixed (because above). This is not the problem I have. I haven't added any SD card, hardware configuration is the same. The solely difference in the whole setup is this revert applied or not. > > > That said, device trees are full of stuff like this: > > > > > > aliases { > > > serial0 = &uart_AO; > > > mmc0 = &sd_card_slot; > > > mmc1 = &sdhc; > > > }; > > > > And Rob, AFAIU, is against aliases. > > > > > Notice how this enumeration gets defined by the aliases. > > > > > > Can you do the same with device properties? (If anyone can > > > answer that question it's Dmitry!) > > > > No, and why should we? > > Because device properties are not device tree, they are just some > Linux thing so we can do whatever we want. Just checking if > Dmitry has some idea that would solve this for good, he usually > replies quickly. OK. -- With Best Regards, Andy Shevchenko