Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp617993lqb; Wed, 17 Apr 2024 06:29:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQRL0tPhyGWSugaLTyGNK1Z57lfHUxr4Nk299wmsYDa0VUDPEvFFu3X+jmW3HS61xw+zlUaMoNSmQWpDvNsD70YOPGgoMQ7Os++ILxlQ== X-Google-Smtp-Source: AGHT+IGUQiVg8dh8KwYXR7V4gh8i1yyCyn8DGC1IhMaThAk4q7jmG8eI1yb/9yXYQcD9AX0sXBdS X-Received: by 2002:a17:907:844:b0:a4e:946a:3b0a with SMTP id ww4-20020a170907084400b00a4e946a3b0amr5389087ejb.34.1713360555898; Wed, 17 Apr 2024 06:29:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713360555; cv=pass; d=google.com; s=arc-20160816; b=Fs2iYK08gyrGwmnECvyTenOZhBiAlLGyh6nDaGamiMjqnq/nHQCsFBGII8wLz7TULa 1Nop1KpHGi4CX/4IzamnAzHWeSc1QnfgD87Eq1LDKAqu6xhuaeskCd+bj2TYUvFuKabY XC3uJSV68vmmUPC9YTkgSdAjJJ6OVzew9pikS6pYqy4clhiYpS85LYdDNxFN4FQQ57o5 94C6yPqWwKDmYDdqSlQXx3CbOtlJ8vYN3o/A1JX14hQGGEdk6f4mCLyYCWgxgQ5PGWML SeWi/vQB0Tz3BFSfpoaSBUFYAhWmBERVm8rZRVVLZymvskkcx+JSTbaJER7K7C0eO3xs KA6g== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=WFu4mvEeznobxqre7daThd7vdbpccZBef/cBLPKwLYQ=; fh=S03sqVKyIfbGxVnP1s2zwAqTPZSE03YtbVnmh/Rvh8M=; b=0BBO8P4w84WvaB8YzE7GCRdk3NW0BPVdnj3VWLmBGp3kU8L9W/WwEXTEN25PSGW46A PNQqdMKF0WAB9dGPhlAmYu7GP8hBHHPzeRzPVOAwfDzmymh1TDX1Lsddnn7XAHDeQHHh d/5L4HStOMOQlvvuEy176rwVQJwGPyOmbSWDiOXTDqZsIW7kSldKxFPQuuUBfeFN1sGh 6nXoAYJWvafzGOO+KQ7bt0F+yaGS4nP0PjmN2rQwxoyejEQmV9SAuIKu5iDpVaaVIH7+ dghlbD8Ukh4Gmk8iedGd6PMWVy9rAfbfUbYANYyYAYQYmq3+nDz6xajgCbqbLUu/P18S Rj4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cpsvZvkQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148572-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 o3-20020a170906358300b00a51a45374d7si6601766ejb.228.2024.04.17.06.29.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 06:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148572-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=cpsvZvkQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148572-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 952C31F228CB for ; Wed, 17 Apr 2024 13:29:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5E8414264A; Wed, 17 Apr 2024 13:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cpsvZvkQ" 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 0D9841420B6; Wed, 17 Apr 2024 13:27:03 +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=1713360423; cv=none; b=ZefxyLmN7bKMLp8h8wU8dK1Ac+PIqY+YNFBM78qG0k0f6W5/zG/8jYoDke6OAoG2jNAgs83yEu9nCqnVFeWwn7i+cwo9/i1H8ePMTRaLR0KKl2Dfrv5b6Bbaw2WIcpEhksveaT1c1R5Vd6Zc1UEoK5sBRqt3nTJsaUuoWmP6QV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713360423; c=relaxed/simple; bh=OppBHTbHm7r/r/ow7qu3mDrsEWhFgrC0Qd6Kx4piG9s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W1ac1xY0Frvj8H9xv4V4VtEDgyam/77rYBCF7a2ggETMRZmmqJQk21SNGLN02+LFGwc4UGFzJPhzhoIB+PgS2EvBH8dBd8bDtYFS2+H0WB5vRZ9gwgtbmiXcPcPpwJ2VXkIbEFjTV4idYrU59w1LpcBzFL0EaUNcpWT/8ENLVtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cpsvZvkQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95B12C072AA; Wed, 17 Apr 2024 13:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713360422; bh=OppBHTbHm7r/r/ow7qu3mDrsEWhFgrC0Qd6Kx4piG9s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cpsvZvkQg6xn5WEZXvZl0ZSYW2HYMbLUuJqWZxj5ENaqugEqvC6A9O3t0yZuoECgI WIaTrSd+U6TdP6JajH/1EuQgdGUYGAe9r1EQ1g4GPh1Xrjbw6Uilw5ywdx36oUDxvE CxZsWMUoncSukuiWeE+cWPp4ZdBATZDiAsG/pOT+AXga1r14Zog9s0MDLKqJ0l2hlr NkzYnlmryrVTURqjXB47v0XkbFQ0vIwW4YhQCKw/pEYPEdaBeLEGI73iAqqDsz/Xyd iSvjhTEyocD75tMzGpZnT+Gc8BjdgpvbrKaouk2QR317ZgDJfWquY+pM0IIsdc1KIW xGtkB3EFriozQ== Message-ID: <4b6fc681-078e-4b48-98d6-cc5734487972@kernel.org> Date: Wed, 17 Apr 2024 15:27:02 +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 net-next] net: dsa: microchip: drop unneeded MODULE_ALIAS To: Vladimir Oltean Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240414154929.127045-1-krzk@kernel.org> <20240415102023.mmkkrvuh7sulelyn@skbuf> Content-Language: en-US From: Krzysztof Kozlowski 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+XgC0L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To: <20240415102023.mmkkrvuh7sulelyn@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/04/2024 12:20, Vladimir Oltean wrote: > On Sun, Apr 14, 2024 at 05:49:29PM +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. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/net/dsa/microchip/ksz_spi.c | 7 ------- >> 1 file changed, 7 deletions(-) >> >> diff --git a/drivers/net/dsa/microchip/ksz_spi.c b/drivers/net/dsa/microchip/ksz_spi.c >> index c8166fb440ab..cdc4add5f5b5 100644 >> --- a/drivers/net/dsa/microchip/ksz_spi.c >> +++ b/drivers/net/dsa/microchip/ksz_spi.c >> @@ -233,13 +233,6 @@ static struct spi_driver ksz_spi_driver = { >> >> module_spi_driver(ksz_spi_driver); >> >> -MODULE_ALIAS("spi:ksz9477"); >> -MODULE_ALIAS("spi:ksz9896"); >> -MODULE_ALIAS("spi:ksz9897"); >> -MODULE_ALIAS("spi:ksz9893"); >> -MODULE_ALIAS("spi:ksz9563"); >> -MODULE_ALIAS("spi:ksz8563"); >> -MODULE_ALIAS("spi:ksz9567"); >> MODULE_ALIAS("spi:lan937x"); > > The spi:lan937x alias is bogus, right? LAN937x switches are covered by > these entries in ksz_spi_ids[]: > > { "lan9370" }, > { "lan9371" }, > { "lan9372" }, > { "lan9373" }, > { "lan9374" }, No, it is not. That's a valid alias. What's bogus about it? Someone wanted to load the module by such alias. Best regards, Krzysztof