Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp259851pxx; Thu, 29 Oct 2020 01:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcJ8WT2Mgpy9b66GkrXbQqTwtlEwZbK54mQq4WkrojZ5rmrdEFb1k96zVzgbBvn9wir9hb X-Received: by 2002:a05:6402:28e:: with SMTP id l14mr2827455edv.157.1603961256475; Thu, 29 Oct 2020 01:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961256; cv=none; d=google.com; s=arc-20160816; b=BnqqWoesUG9O7+JF5ACV6wd1o5khGCMTZskUoieIQTP7mYRVm6VQltcO2L9XxtFy3h C+v569nJnL91M07PyivIYRRktJmr7OGiezaP2dEQ1n93UnyCzHi9RDcKt/MhDUb3I7ij fdQ4UBDlRHG/8hc4gURPmT6VZmXM9T2lCzkicLMKI8ixdjw/Fi01eyOX7bFiO/cPgWIc qLyDMtqqZUB/695XbcnnAIcKsHnlyto3sAw2ZVZutCWJbduJXa9o4NSYXF1ovQyj1/md RGGgza7aTACFz9HOsWVKV8nsF2DcZFWUzjsP/mQPLnhnsYm3Dpy+ZBye/yR/ERynKQr4 iswA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=w4rPC+iCKEw/totFQlADHzIROm9jUPKzZiknTr4fFQY=; b=H42QfhFgJYICTLZ9W5Qj71UpdbR02Ey+xso3siDvPlBiFD+rZWcJ7wzq20dAHvOd0G nGx+Z5yCcI+z2/EyQLBTrFwJmANIG95JkpqLqlvWRVUwCwC+fN5wn4IiA3BFX/pzgj+C RFdobVovEyskbeFQl1EUQXsW7/8Vq9i9ZLkE1SYWH9wiskv1P2MBZTciimCYdMopJ/t9 o+T1P+EAH6RiQ2CN1X82cFhefe3LWBnIO/8C8nKbPtEiySrX5CcSgE5gO223TtyBz6rK OhES42B0quPcEZBRq5f+h/Tyno3IOMKFLmGLi69yqpX9J4lpRwMRQWsiGQEUeuOyMTcA nnLw== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc24si1521046edb.438.2020.10.29.01.47.14; Thu, 29 Oct 2020 01:47:36 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733009AbgJ2BeR (ORCPT + 99 others); Wed, 28 Oct 2020 21:34:17 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34771 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729474AbgJ2BdN (ORCPT ); Wed, 28 Oct 2020 21:33:13 -0400 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kXdEH-0005wc-Gr; Wed, 28 Oct 2020 04:38:34 +0000 From: Kai-Chuan Hsieh To: jdelvare@suse.com, linux-kernel@vger.kernel.org Subject: [PATCH] firmware/dmi: Include product_sku info to modalias Date: Wed, 28 Oct 2020 12:38:30 +0800 Message-Id: <20201028043830.10131-1-kaichuan.hsieh@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201022064936.10854-1-kaichuan.hsieh@canonical.com> References: <20201022064936.10854-1-kaichuan.hsieh@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some Dell platforms rely on modalias to customize configuration, the product sku can be more specific for the hardware. Add product_sku to modalias for better utilization. Signed-off-by: Kai-Chuan Hsieh --- drivers/firmware/dmi-id.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c index 86d71b0212b1..4d5421d14a41 100644 --- a/drivers/firmware/dmi-id.c +++ b/drivers/firmware/dmi-id.c @@ -85,6 +85,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size) { "svn", DMI_SYS_VENDOR }, { "pn", DMI_PRODUCT_NAME }, { "pvr", DMI_PRODUCT_VERSION }, + { "sku", DMI_PRODUCT_SKU }, { "rvn", DMI_BOARD_VENDOR }, { "rn", DMI_BOARD_NAME }, { "rvr", DMI_BOARD_VERSION }, -- 2.25.1