From patchwork Wed Aug 22 16:27:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Harkin X-Patchwork-Id: 144841 Delivered-To: patches@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp209271ljw; Wed, 22 Aug 2018 09:27:29 -0700 (PDT) X-Received: by 2002:adf:8103:: with SMTP id 3-v6mr34903068wrm.213.1534955249850; Wed, 22 Aug 2018 09:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534955249; cv=none; d=google.com; s=arc-20160816; b=PeYIisXOa+QCdBzWil4blakp2ljLoGX35Ksu9KXJK6FHtAfRU4Vnvc/L1hynnM7SEq 58CztKoElAF1eSLuGj0XDnqYUKdt36Ano1A27FNI2EZM5RQJRapNiN8eJUQ4T7ss3Ydi yS3xGlanNqVR4/ZZCO20eNNf2iJSp+0DMvXtfvIYHJN0mv6/+2/65p0b9WGAHItuqUhM 0vFrKx21lJ2DdLHy1nHEkwpwNCKnZl+snITWBf/s4UTD7GUJtnuq1GS59PT2fGO31Q7r IBSrgTtXixncdU2lVrKxZDes1PlfqybV4uedMbUyyY1/ndfeJTX9PTP9h8xyACuTE0F1 WcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=VR/6376ISi6XcKg6dNy30IpI1e3AFtRkO31MxjN5D7Y=; b=rfP6ATtQVSJoyFmVrYjnZckZFXfDeLMjXMVQmK/RJGa7zIiI95KGf0X5G40oqjg7lr jSrDJ/BweyOxTKecHYS8qPYj512mrYUXQiO4HFqMmBkT7z6Dvn6dew550ITxAlywzENu +hdEBkFzD5lBcj4ZkADAXPQ6Gr2tn5YMfVmI2/Vgz8CbMERluJLIW2WUlAeqCpu/ct67 229487zJL/1TKx36Hi5mVTqi1gz/3BHY+y+WSQC5mIBhXPAeqf+T3cyKArNTjs7Qi6iQ DFoirkvfmq5+VMbyOHRzoBDkMURg1uL4spb1IPtanNqq4hu4pMXga7yDCJgnaCDwTEkB zO8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Bt6Lww/4"; spf=pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ryan.harkin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y20-v6sor584865wma.87.2018.08.22.09.27.29 for (Google Transport Security); Wed, 22 Aug 2018 09:27:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Bt6Lww/4"; spf=pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ryan.harkin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=VR/6376ISi6XcKg6dNy30IpI1e3AFtRkO31MxjN5D7Y=; b=Bt6Lww/4bNpdDYGV4pn1HDotKOYn8G+Ne77MhCAsiE+5UR6+kqLmKqnHhbUOh3uxGE He0JYDw/PvwF7g54jAtpNkiXUbG/7vcg7mBz8ffHLeLMduLbw/STq8drMUF788fUiEPT exybTSLesa2+KU5Ekoi84RvgP3zNmvalWF1+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VR/6376ISi6XcKg6dNy30IpI1e3AFtRkO31MxjN5D7Y=; b=PCKHX2ItEXqN/Aau1TS8y4Rg86gqHQDZLUhYGX/W1OM5Zdo1mJZKmndX3kEnmMyGjU WO/ojFNXuuh2zIzpB0Xw6XUK8pv0WGm7+QAsmqiQL+hujC4q/Szq8CzHoW2zu+YGeB9o PujHYLXa3TdxL7MPAGm9FhWn9Y48zTVCd9c9h8vGHNv785op6+vFEZI/wk/D82xX/Rvk XLdD7AOCDLqKf4zSDDcMHOXcp6t/RlzKK0BccfowRpc8cWqHoiSGjCtFeUQCxQbsT+td 23Z8sixpiskaEnVqgyEQl6OoVha8vtJbymDd3YZOv70EZf9/4nWGEAGIKbl/Cm/AFfIL VqWA== X-Gm-Message-State: APzg51DQaI8GfAIO8lEqPogXbi3vHlHg++lWOfCYNBWv5PSjWOk5W1zU mURNczRWhCdmcahaAmRcD1+O/RmB X-Google-Smtp-Source: ANB0VdZvyCstomufaKImZ2+hIZZ/GgAiFJtJeoP69WcR8CCP2PxUADeoh9VunwMYiA+471KeOQ9YIg== X-Received: by 2002:a1c:1188:: with SMTP id 130-v6mr2752113wmr.138.1534955249599; Wed, 22 Aug 2018 09:27:29 -0700 (PDT) Return-Path: Received: from localhost.localdomain (82-69-54-187.dsl.in-addr.zen.co.uk. [82.69.54.187]) by smtp.gmail.com with ESMTPSA id w4-v6sm3165306wro.24.2018.08.22.09.27.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Aug 2018 09:27:28 -0700 (PDT) From: Ryan Harkin To: Openembedded-core-request@lists.openembedded.org Cc: martin.jansa@gmail.com, patches@linaro.org, daiane.angolini@nxp.com Subject: [RFC 0/3] Adding BCM43430 NVRAM files Date: Wed, 22 Aug 2018 17:27:13 +0100 Message-Id: <1534955236-559-1-git-send-email-ryan.harkin@linaro.org> X-Mailer: git-send-email 2.7.4 NVRAM files for the 43430 modules have been committed into the upstream Linux firmware repo. I'd like to add these files into the linux-firmware recipe. The following files exist upstream on kernel.org: - brcm/brcmfmac43430-sdio.AP6212.txt - brcm/brcmfmac43430-sdio.MUR1DX.txt The AP6212 and MUR1DX are the module types for variants of the 43430 chips. The first patch is a simple update to the latest upstream. I guess someone else will commit a similar change before I get to it, but for now, I need to make the update to test my changes, so I thought I'd send the patch with my RFC series. The second patch adds both NVRAM files into a single new variable. Ideally, the Linux kernel will be extended detect the module type, so having all the NVRAM files in /lib/firmware/brcm seems like a sensible thing to do. But advice here is appreciated. Perhaps I should have a separate variable for each file and allow the machine config to choose which configs to include in the filesystem, similar to how the .bin files are included since Martin Jansa's change? The 3rd patch is trickier, I think. At the moment, the Linux kernel expects there to be only one NVRAM file, named brcmfmac43430-sdio.txt. So to make the system "just work", it seems sensible to provide a way to softlink the module specific NVRAM to the generic filename. I'm trying to avoid each machine type having to define a softlink _append in its own config. Many different machines can use the same module type, for example. I'm just not convinced that the way I've done it is appropriate. eg. I don't like the usage of MACHINEOVERRIDE, or the variable name I've chosen. I'd hoped to do it using a MACHINE_EXTRA_RRECOMMENDS, but I'm not sure if that is possible. Again, advice is appreciated. Ryan Harkin (3): linux-firmware: upgrade to 1d17c18 revision linux-firmware: add BCM43430 nvram files linux-firmware: MACHINEOVERRIDES for BCM43430 NVRAM .../linux-firmware/linux-firmware_git.bb | 23 +++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) -- 2.7.4