Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1977930pxb; Fri, 5 Mar 2021 04:37:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6OP1SNYpJhvM4h2vJU708+a/KdFU+zPZEguMgXLjjSDW1lATlQTqsWzgGDKYZ8JPb5fLW X-Received: by 2002:a17:906:2bce:: with SMTP id n14mr1946809ejg.171.1614947850403; Fri, 05 Mar 2021 04:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614947850; cv=none; d=google.com; s=arc-20160816; b=Uffv7fR+/CYU2z18b2ER2QC7tmnmk7fxWZMpVWPxErBsm0HDlJQRDWms5WAEd0KQMz Yy48Mj7+deRbkNRuKiEJm8xyACsMcTV/k1zhseEdFLILVhTw4NAwuKPjWYuQNH/G55H0 yncxPS+cUoqX/EqGIiR77bI9cwMqy4mcGLcxkOzsULLTPjDAxcd5pZpyUIMGeWGIxlU1 C/UhMxmeuk8U5OG7C0eBrfxiOHqIoaVqeGT9MtHsAlPI2LVidtZTOcvHYb7s1D0uvxM0 i6NLmCfVpGypeyhN6ZXkbijZxVSfq4D6yUFGS77rGrO79oD98XRlPqWVHn43YulV1lvp syzA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=meK6uv3EIVCK4Xve2FsLoAMzYACUE4BjA7Xl3x5qU5o=; b=Artk0yKsw07IAdd1YVpilTj2/ouBchFRR1sJfiEzIOvZaBOsByi6KFf92tM/EozqIr uXaco29kcj8Qw1RrwFbEAmFK4wF5aJLw+Uxf/oXuIgbYFexdqADFITGTMTigq0osSImk yGwixBi6jkGQl6GCzFvJ1Xq1+R8AQBn5AalPL/V1Z8dVIh5Ptb+DNzY34cLV1mgvZ5+z MOrWPmDCQpHziKmA8guSXyINIvPzwEFOXsU7NcfsrAIf7rSyhqA9pxyBnSR5JjiHjt8z Q/0lSriluuBeWwqnUjmQd9/xBRRwqI83KWHkzLlawQxoo4IblzDqAYFbbF6Lm5HdPOwi cjOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xjh1zH4s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si1388595ejx.150.2021.03.05.04.37.06; Fri, 05 Mar 2021 04:37:30 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xjh1zH4s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbhCEMfC (ORCPT + 99 others); Fri, 5 Mar 2021 07:35:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:45772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbhCEMeY (ORCPT ); Fri, 5 Mar 2021 07:34:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E03BF6501A; Fri, 5 Mar 2021 12:34:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947664; bh=hK/Ok1kevv7pLNz660F0pBVsk5zM3LWPxclkES4qxNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xjh1zH4stIYezWQ7jmjTpvNtmkte7uGfhE4EIBp+OgTQwxGX0VRAtNkhcsNYXk68i 2o0EJKwJwvC9h/XNVsTTV3faTmWAnVw3H/KQ8fM1iKpR+GR1q7LT/xPCk6yrV3mmQZ abSOb+3gCYOvbyxKbqHoUGtBEWMQFq5LKDE5j40Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 40/72] brcmfmac: Add DMI nvram filename quirk for Voyo winpad A15 tablet Date: Fri, 5 Mar 2021 13:21:42 +0100 Message-Id: <20210305120859.306868273@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120857.341630346@linuxfoundation.org> References: <20210305120857.341630346@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit a338c874d3d9d2463f031e89ae14942929b93db6 ] The Voyo winpad A15 tablet contains quite generic names in the sys_vendor and product_name DMI strings, without this patch brcmfmac will try to load: rcmfmac4330-sdio.To be filled by O.E.M.-To be filled by O.E.M..txt as nvram file which is a bit too generic. Add a DMI quirk so that a unique and clearly identifiable nvram file name is used on the Voyo winpad A15 tablet. While preparing a matching linux-firmware update I noticed that the nvram is identical to the nvram used on the Prowise-PT301 tablet, so the new DMI quirk entry simply points to the already existing Prowise-PT301 nvram file. Signed-off-by: Hans de Goede Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210129171413.139880-2-hdegoede@redhat.com Signed-off-by: Sasha Levin --- .../wireless/broadcom/brcm80211/brcmfmac/dmi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c index 824a79f24383..6d5188b78f2d 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c @@ -44,6 +44,14 @@ static const struct brcmf_dmi_data predia_basic_data = { BRCM_CC_43341_CHIP_ID, 2, "predia-basic" }; +/* Note the Voyo winpad A15 tablet uses the same Ampak AP6330 module, with the + * exact same nvram file as the Prowise-PT301 tablet. Since the nvram for the + * Prowise-PT301 is already in linux-firmware we just point to that here. + */ +static const struct brcmf_dmi_data voyo_winpad_a15_data = { + BRCM_CC_4330_CHIP_ID, 4, "Prowise-PT301" +}; + static const struct dmi_system_id dmi_platform_data[] = { { /* ACEPC T8 Cherry Trail Z8350 mini PC */ @@ -125,6 +133,16 @@ static const struct dmi_system_id dmi_platform_data[] = { }, .driver_data = (void *)&predia_basic_data, }, + { + /* Voyo winpad A15 tablet */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), + DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), + /* Above strings are too generic, also match on BIOS date */ + DMI_MATCH(DMI_BIOS_DATE, "11/20/2014"), + }, + .driver_data = (void *)&voyo_winpad_a15_data, + }, {} }; -- 2.30.1