Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp260778pxx; Thu, 29 Oct 2020 01:49:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2Dm/IbuPjrN7MJtcmgE8/AG/t1PSSFLO8hwrKtJBXdwFIRuXk21VdxOEY6vCfwiEw6hYC X-Received: by 2002:aa7:da4d:: with SMTP id w13mr2765207eds.266.1603961372226; Thu, 29 Oct 2020 01:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961372; cv=none; d=google.com; s=arc-20160816; b=Yf/knzEyJGrcyfoTgnSc5v8WRWYWBjLqhokgLxuSBIZzqBlRTGT6opSGqQAFTaTOFp 71VYRkM7qGOHp9FUXa8tFBX81rlXkfnD6RkWnUS221ffESHLdVEF9EUnTJCH7DzR6JMA NuBvnbZAgMbRHK0jKi97Nazqml8rUmSA+WAyO+wcenUcyNthhcISUx78/YUs05t1875s Y6Hu/kLRUOLYNve4h8S3mHd5xCVEtcMaRx1P78NobkMlhSqmWt+qKbPjfDXBgVMqUNll s+P/cMPwLSZPqkd3+M2+DyfgEeM0Hs4beEJs6W9kQqLG+hd/8uZlJcmx8etyHUmLedVu RNJA== 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 :message-id:date:subject:cc:to:from; bh=w4rPC+iCKEw/totFQlADHzIROm9jUPKzZiknTr4fFQY=; b=gxSbJmNLeGxzVPpcpHCUk2jPELLgBzDKQzxq7CLxOplUMyu+q6dA5AHYOMLA6K40h0 YBr3zgbXf+oZuUz2TXUC9kGlrqokVjQUwtUceEvr4XWkJSlpsvbxF+pqxFaLRTDwIMh3 0cEvxT1fj5ysKiYazE9P2Nb/9vK456yTOVEsNfS8q7vb+bycb3P9kTpV137imHnkxyFN l2n+1SaY/l+Aj8Xrf0zmEHprJfCNTk9auDHoOcuGlj4KS1Au2KHD/AaY6v3LuaVwjRUh 7OCOwECJTRM3I94ipkOZyyEN7qTvyrl0zNiptW/I84raZ2VGGML21hS/8VjylUwJYRXQ z+nQ== 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 y17si1353618ejb.417.2020.10.29.01.49.10; Thu, 29 Oct 2020 01:49:32 -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 S1729667AbgJ2BeY (ORCPT + 99 others); Wed, 28 Oct 2020 21:34:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34790 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729388AbgJ2BeV (ORCPT ); Wed, 28 Oct 2020 21:34:21 -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 1kXcTa-00037Q-RK; Wed, 28 Oct 2020 03:50:19 +0000 From: Kai-Chuan Hsieh To: Jean Delvare Cc: linux-kernel@vger.kernel.org Subject: [PATCH] firmware/dmi: Include product_sku info to modalias Date: Wed, 28 Oct 2020 11:50:15 +0800 Message-Id: <20201028035015.8897-1-kaichuan.hsieh@canonical.com> X-Mailer: git-send-email 2.25.1 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