Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp707593lqo; Wed, 8 May 2024 12:12:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaoux7YfHNI86gR/nN64OCSz2PilYn8cbYRRmHgKKZ9n1KWk2i0BMgc3iGQhKprIUMJTBSm3neXfkfbESaSinI0CpUUfaBa1r14VN63A== X-Google-Smtp-Source: AGHT+IFP+Lhm6/RAcAvPjKODJbKgeeYB7w0qC6fDQLr2MztMqK7youk02CWzaN8I6PD0cbtt/kN9 X-Received: by 2002:a05:620a:1136:b0:792:95e6:cde3 with SMTP id af79cd13be357-792b27b3130mr397588685a.2.1715195547773; Wed, 08 May 2024 12:12:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715195547; cv=pass; d=google.com; s=arc-20160816; b=0uICjZTERNy5cfxPrK1D5SE4WhsmJNcsTWxM7w1iSbQUfgPAWdqELJYDCWRsTDAgcn GzvAsCOc1wKbwPAEIPAWZonVKFkMtZWmlmWzN5mjPsCBnblM23CIvDf3GFGzfC3spNei Q5DOzB8rkPn0KZg635xbCSCsZQgBvPyFdaW4AQILOBId3zkjmMc3Jf/l+E04Ze2IQ7Cs n8GcVvyCSPP7Pod5CpC4/xSd4lNlcrUwz2C+nFbdxRBio8LHqS0z8cy2Gab4lltYDXkM +kFN+yjZmCJbNuy/HbFnb73Du4qdRNlBrlFeImZ35gMmq0bK8HxR2YyZuSTxKJAxs20f q5kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=b7o5ZIjvfHyrKOMLF/GO7Tf2G5tsfeSYs7cv6FLBodc=; fh=1nn/2aenf5438jvE8BYjfjZ9xbmKyljxHmPrp4bne4A=; b=o3YyPth+Vkrd0BtG3Ph6bRAp55EKrwgdWkJKE8madQ7XErTjoVWq8u8PNipGsx/PeH xUSJ/ek+ecYQczw2cRw3Wl84dyV+g32eCrYQPgXYsEg58NXVvXgT8GGrAr8QnLmZTx1q tAaaWhAKYa3qqr2v6nXoJz6ne6bPcPViJvk1m9ZP7Lp1m9hOmZTd4pZmcXDLtdUcIPh6 Wr+MyPu2pRdHncXE0mYtph3vYllRQdS04QF5goIdNEe5Wmb9+JavHhDaFb+skV+eshH6 TO7ZmauaJIEYXcv2useL7UyclfeD7uTkdA8H5CwZybLMZ9izuYmAreXcf0ypdjf1xOr2 cqAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YS8pNXld; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jEhofAns; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-173740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r3-20020a05620a298300b00790f77ccce6si15706619qkp.333.2024.05.08.12.12.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 12:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=YS8pNXld; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jEhofAns; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-173740-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C3C01C22609 for ; Wed, 8 May 2024 19:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6922F130A4C; Wed, 8 May 2024 19:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="YS8pNXld"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jEhofAns" Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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 0F9AE130A45 for ; Wed, 8 May 2024 19:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715195524; cv=none; b=NlWfCZe/aprbRsgXvdk1oIn4QBv2vBDBmj6URtDhZORHoMADYw888eZrf1T+Kn1UxN4cvnCbYB6xpE/OQrBgyL9dQOTDnvHLq+Tz6g5z7V52+Jgu+kcwRl16g2OcMklLh8h+7Vs8QLfx2Lod7R2hgl4AWVeaGyH4XHDicXNO3/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715195524; c=relaxed/simple; bh=PK6qp2vMhDHRSEY9lMFS/YvbuAahsOCgdiwJdZeUw4w=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=CjZG2iHI8rBAytYI3Hf3jzl54LFflm+Oq5CyS/rBqhMsikiG+FMQ63+Wv0M5ncYKWc6ylaOz7waMsE8D/bIsG2b/6fyWqtSyNY1TxwLEkP4QPn9GQGD/uzy8kxcaeH2t/Grz0Z9CV1x88mNRaeyks0ynYmHjpSLxzIc/zq2ke7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=YS8pNXld; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jEhofAns; arc=none smtp.client-ip=103.168.172.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1F6CB11400A3; Wed, 8 May 2024 15:12:01 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 08 May 2024 15:12:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1715195521; x=1715281921; bh=b7o5ZIjvfH yrKOMLF/GO7Tf2G5tsfeSYs7cv6FLBodc=; b=YS8pNXld9MoEVFnM3PA+o3jDNH /1iECD7yIG0WZhlsEJ6rt4mFOXTstjVkzSEewqD44PVieMviC9D6Dhe/d4K53lT5 XxYzibeFCH6MPYJ35Fn998iY5CbSbG296s/pv1ypot2Oxm35Inm38uUB0AujAM/+ LlzQJGoOcd2iYM9RymGrxyt8DBQFX/DY09AzTt/c0FPqTk398xaCEgUjvxRR7Qaz ayWrtzCANIgSYGNYXSVOzbgcHlt3yOr8eD0mNHn2wDaMP9VFeknIB2QhciJtL76j IuhIsVtMElpp8EeDzZwkigGQcO1JCMbGtGWbbVQ1vVoJMMclFKcmcoa5h9gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715195521; x=1715281921; bh=b7o5ZIjvfHyrKOMLF/GO7Tf2G5ts feSYs7cv6FLBodc=; b=jEhofAnshvxHm3cHDrSYvsan3rcETEqNcWFzXM7AQARL +IaRm1bCIJ8tkXVjSa/rgeU4DQSEOQ9GSTNsqw9FFcZNbyo+HhYHOW+qZYlCrsUq ga04rTtsqHlvRebWTZUyw7Kjj1RjoguWEhOLS1EEDWvPu1tl25/iCYNTgk3RSHNT 07gKW4kxbP+RxOlzo/Htjp8/ItoBvXGWTc8wyeMDHFBX/4wezX356Cfv1tpTLFpN 7hA1XsVJiKUUMtb9pR5l+HF6fVjl7kOJn8baa3SMeDFWzYZH+VNUlS7w7MpqPU8i wVZZTSHrZMcschDzvYetbICKy7rSpB9l18AMsHWKxA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeftddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A66F6B6008D; Wed, 8 May 2024 15:12:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <5b29d981-aa8a-413e-8250-5fb33802f32d@app.fastmail.com> In-Reply-To: <9a26dac6-d776-4b84-830d-6f622719d7eb@kernel.org> References: <20240414154957.127113-1-krzk@kernel.org> <20240414154957.127113-3-krzk@kernel.org> <6599e2a3-3b04-4ea2-aa5c-a916b66c8009@kernel.org> <9a26dac6-d776-4b84-830d-6f622719d7eb@kernel.org> Date: Wed, 08 May 2024 21:11:39 +0200 From: "Arnd Bergmann" To: "Krzysztof Kozlowski" , "Andy Shevchenko" Cc: "Greg Kroah-Hartman" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 2/2] eeprom: 93xx46: drop unneeded MODULE_ALIAS Content-Type: text/plain On Wed, May 8, 2024, at 20:44, Krzysztof Kozlowski wrote: > On 08/05/2024 20:28, Andy Shevchenko wrote: >> On Wed, May 08, 2024 at 08:15:00PM +0200, Krzysztof Kozlowski wrote: >>> On 08/05/2024 19:53, Andy Shevchenko wrote: >>>> On Sun, Apr 14, 2024 at 05:49:57PM +0200, Krzysztof Kozlowski wrote: >>>>> The ID table already has respective entry and MODULE_DEVICE_TABLE and >>>>> creates proper alias for SPI driver. Having another MODULE_ALIAS causes >>>>> the alias to be duplicated. >> >> ... >> >>>>> MODULE_ALIAS("spi:93xx46"); >>>> >>>> I was stumbled over this (leftover?). >>>> Commit message doesn't elaborate this bit. >>>> Any comments? >>> >>> It is not present in ID table and commit msg removes only duplicated >>> aliases. That alias has meaning - someone might be actually relying on it. >> >> It seems no users for it. The only user of platform data of this EEPROM uses >> board files which AFAIU bypasses modalias matching. > > I don't think that's correct. The modalias of SPI board is there on > purpose. Right, but I think a better workaround would have been to change the board_info to pick a modalias that is part of the ID table: --- a/drivers/misc/eeprom/digsy_mtc_eeprom.c +++ b/drivers/misc/eeprom/digsy_mtc_eeprom.c @@ -76,7 +76,7 @@ static struct gpiod_lookup_table eeprom_spi_gpiod_table = { static struct spi_board_info digsy_mtc_eeprom_info[] __initdata = { { - .modalias = "93xx46", + .modalias = "eeprom-93xx46", .max_speed_hz = 1000000, .bus_num = EE_SPI_BUS_NUM, .chip_select = 0, Arnd