Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp710471lqo; Wed, 8 May 2024 12:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOgOFnMMRzDJ58UruUZfk+z+1PH8yqEy4fDLaSRtipHNR70v8P6780P22DmuDkXv/Pb6Enn6a6veiHFziIL1tEahloRw5uTjViWiy7zg== X-Google-Smtp-Source: AGHT+IHzl+uu/j89kb8BsGAILD8CyiToVHSrN8mutxHaSvxXGaJoQXNvhBr0ZgiREO+RCohW3t/E X-Received: by 2002:a17:907:7750:b0:a55:9195:362c with SMTP id a640c23a62f3a-a59fb9b85c1mr182659866b.49.1715195892604; Wed, 08 May 2024 12:18:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715195892; cv=pass; d=google.com; s=arc-20160816; b=cz+V9MF4vkjFQsEAHLXtvCGWSv/pUoUoHG2hbuyYPTJM9RjoSnA5xszhe9alMqJq40 ZKmiNJ4QBB+k+8yP1rCTJ2NebSmZgeZceVBtaGjPRxUbmrRQrLViWUhthp/EUF3swXmD hWAsSrd0R/s/uZi0dd3lvtuTIIsjsQxFSk/SaHM4ShECgA6GKoJ2Q2O5M9GA6U/kiUvf yRfxXH2DfdHsVRI2CrGVEGYQvH33RNSa2aTGsoiNdiYNuof16/P0mRTz6vsddZ7cEg+J mv3S/xaEW3a+8rh6VEnofW/ZF1TYCdE0/GM8qHW7osXBtd6+CG9YYxom3W124wMvUL77 9Wow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=EbwY2a/URCNmQgwNFfmpt+FZB1fZDf0fygFNi5pEO24=; fh=p5vzcY+kIRWHbGCJEu1HB2hhdkkZOyZe5Vi0u0D2jlU=; b=ypg/hUPl5wFfl6cXUXNjLYCdLkXc63IEMUHKWRiGu5ruKE7BhYASEkHI5ssxaDUUbT dxZNuwlTUAb9E7WODPWTPTdz6ugqlEtel8yTwxAl9xUY+6HfOiZ/xaobS5jFKRisV9SM KZ8HUaW3g8GMShx7kw74HMOpHc6fMkOGVpt1FiCz6Lg8YHp8GDGb6hojmQyEq2XR3QrB ojPVTuqFeqy82d0/LJlpdPaaP1fmaClVOmRJ5QvNQjSkItyJKiuzoJT03f21akjtozNS Ddj8dAEgReyQkfR+LC230JhjuyRJ3bUD2HgftcNwfLW+csAHamHEodzODG92e1Z4tqvy 6W6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bbRkWQmF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hg5-20020a1709072cc500b00a59cc508bc5si3974729ejc.586.2024.05.08.12.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 12:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bbRkWQmF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E6351F222A3 for ; Wed, 8 May 2024 19:18:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72066130A53; Wed, 8 May 2024 19:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bbRkWQmF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6C8A01E532 for ; Wed, 8 May 2024 19:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715195884; cv=none; b=IvKO/oznINzwItfWdWWCriRI8OAVKhy9Mtwd6WQqmQc2lhoaRzYlqkR0sA/5NQm41yGwwF3hU1nxcxUTjhBiQgZbvqwZFD8fV19ZyYQyonJ4wwcAO9+Tt/t7TE/8DZhwwPNHCxXsnjGx6NxMkH1ch2L055SfAvoLoKP3pz95wTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715195884; c=relaxed/simple; bh=7Z+dow/wYnQpsydDXRcGA9YIG/FXSQ1KPQIUUAkiOzY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=I88xQMymgoicfwGfZYMnLxAGBqmbTfePr4c6jDo2EgwvljRXTKgPI13srTUZLYwGtgdeERYdJPyzBLrmSvQrK8vYzi8dUj4JGMFM9lDwpAzjQ8XUKQzWtEZzbemVpb87WBqCPthPNPrqx/B9rujC0kM67AkxcR68ICj9lN5Af3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bbRkWQmF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83CF2C113CC; Wed, 8 May 2024 19:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715195883; bh=7Z+dow/wYnQpsydDXRcGA9YIG/FXSQ1KPQIUUAkiOzY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bbRkWQmFrGim7pO7PgTY7Yo8FFDh7qNPa+SJMYqbqFUI1T2YSZsZicA6fy+bCe+ZP bQyouUqkRVWOUClEIJPvYLhM1ilDnwPNoF01DNKxSZvZV87hCVlJgUlKYcqA7+fSlf XK2rLrIN0w4tfs0vqm4kpoyoM96vSjPOnp+sIFqyEoWiGgib6RXF05e1xTbujX16Fh RFD7wxAcamXDVXFjsF75mMaDVgf6a1aZW3bHE68FM4nG4hZWYkiIrU5kdUjEyseJct Tegq+uPcca75o8d1WHkBYEUqAPCJt0FfG5IPWg9DHMWojrNtL+xp1h8jcv7tuhIIhG LuOmTIQ8e+HiQ== Message-ID: Date: Wed, 8 May 2024 21:17:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] eeprom: 93xx46: drop unneeded MODULE_ALIAS To: Arnd Bergmann , Andy Shevchenko Cc: Greg Kroah-Hartman , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.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> <5b29d981-aa8a-413e-8250-5fb33802f32d@app.fastmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC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ply-To: <5b29d981-aa8a-413e-8250-5fb33802f32d@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/05/2024 21:11, Arnd Bergmann wrote: > 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, > That's kind of independent change. This commit *only* removed duplicated aliases, thus should have not functional impact except dropping redundant code. What you propose is to change spi board matching, which is reasonable, just a different thing. Best regards, Krzysztof