Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2643990ybc; Mon, 18 Nov 2019 02:23:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxax8jf5mXTAdP+E+rDWYSS7UaKcxwyBFSTGESqaU3M+y6ekz4QvJ3DnDKL/u7x4KVEZUgQ X-Received: by 2002:a17:906:d96e:: with SMTP id rp14mr25129455ejb.14.1574072590698; Mon, 18 Nov 2019 02:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574072590; cv=none; d=google.com; s=arc-20160816; b=Bt0pgaRL+n3R+bI4KKGaHbSFMnHeJq+J3eb5GYekESeK5WrYqWrStml2h7QjwkLqYn lX7EMqLJT95kB05hX5HJoyPHnPQLAPno2iKcPSSp64WQ344kSJXogNLlzWB6wDVH4XCk RHPaBzPROK1Lq3NfZHO9BcZF4iRkLZ8L+60oyNUnDmcWg1N0+lbJFgqC7Q0+BAZcQZaJ 3r/NCZZbDzI+GP7YKuHHQbdPzixIvecDq0RJVqcbJxGWb9GGMD8TIvW/+FTQyr/2xDkh zkiHoB/PtkpLONBVi0KoJm3Vp0CZRCK0ttRBFIfpqH0vhiK+MBXoiA3Rj+29VmKEYUND UBng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YFGgNdC1ZOo48hA+OmEH9EyctK1S1xIaxbDXHBMAwNA=; b=vS+bMr1rKBCkGkKC1XLyovqaoNxHC6KUfSel4IDmB+VT3Q8UGG2OFYSaTzJM1OeRgm uxS99sWjsFjEtRrSk8dWgcY6FyHyC8NIUMIkhcbeag3eK8bMGbCqeiLqRfAuaDUgMn/Q iYTqG4kNnalPF6Rb4BB5wIVirE4msAEEcAk0Qp/ErYUBUFzvX+zclShMf5+4ptQwWxdF kdRiZd+qqE20fEW82IexWER4n86blT9juELb3r4l6IMoqzQdurTSD1fL+VVlnUt9KaiD Eju+JrvMyzX4gt4+W00LRhlEyVXSVSrUE7e2jRIJtm1jw9otnrFCO2X61+vxhFHYc2X3 Bl5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=O8XvTfa4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si13217105ede.381.2019.11.18.02.22.46; Mon, 18 Nov 2019 02:23:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=O8XvTfa4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbfKRKTr (ORCPT + 99 others); Mon, 18 Nov 2019 05:19:47 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45546 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfKRKTq (ORCPT ); Mon, 18 Nov 2019 05:19:46 -0500 Received: by mail-wr1-f67.google.com with SMTP id z10so18697855wrs.12 for ; Mon, 18 Nov 2019 02:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YFGgNdC1ZOo48hA+OmEH9EyctK1S1xIaxbDXHBMAwNA=; b=O8XvTfa4Ssrw38qLLQGUQ5qDKhQFRmPQIj8WrZwsr1Ui5W1JTYiR3r+6zcPXnIipCS QTlwsnOtYrWwmaMnqIA6Rfh2fzoBwxx6dYUEfE4nZCIG5tc0k2m25/Xf0r+XwmXqb7jP XDxjTEbwZQB5TsEBVJ3NsxNT94kkBge4NonSJHLU9NkglqLt8DO2L2iOhP3U65C41Rug IXMVXPVzn1VSX3BSwcbaUxeN6zSIN7vW6ohpSDHlffrBDSBieJFG5xSgN5j3L6axVcWT IYWS0iyipPvrasWr2c6pvxaE+A8DMekKRovN5qHP0UxR8Ce6Rta5VcEehI75Ke/CHhtc cIZA== 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:mime-version :content-transfer-encoding; bh=YFGgNdC1ZOo48hA+OmEH9EyctK1S1xIaxbDXHBMAwNA=; b=sC8pfggqRz8/LNEzzhy3+vB1x7AuoYmKT9PCClgGxmnjkugzZcj+UvpkencXwOFMd7 ulHeu1fMIfd7OGTSYu9wnAkWJ9yCqKc/wCiwdsZzEQn55Ubh7HSEfiNn6l19WQuvOcqi FPVW7yX1kHgoxyzh6TGE2QRgVJRwlaOz9kmuYB2Sft/aiiHB0Rx/GK5HC621N2iYDOuo 77J5Oev5jG1wi2mRwf7+mDhU4hbYxkPGGf23F+7Nw1ncJC7/lW6aRNl+/op7Jf2LbXrN y2wGKXh4ZQOMKDUaTI+81Ol6YTk8QOSFpNdAsJgQQxz1xVlo45anlmFoHY8vlen8qBDy yTrQ== X-Gm-Message-State: APjAAAXwyr0HH+iS3WF++TUH2h72/Z/fZFUBCFcRn5QTNJz69wjj5WkO dhgDFj19grMIASkd1m+icNOo1zwyCiU4L4ki X-Received: by 2002:a5d:6a08:: with SMTP id m8mr27665741wru.52.1574072383253; Mon, 18 Nov 2019 02:19:43 -0800 (PST) Received: from rudolphp.9e.network (b2b-78-94-0-50.unitymedia.biz. [78.94.0.50]) by smtp.gmail.com with ESMTPSA id t134sm20766740wmt.24.2019.11.18.02.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 02:19:42 -0800 (PST) From: patrick.rudolph@9elements.com To: linux-kernel@vger.kernel.org Cc: coreboot@coreboot.org, Patrick Rudolph , Allison Randal , Thomas Gleixner , Alexios Zavras , Greg Kroah-Hartman , Arthur Heymans Subject: [PATCH v3 0/3] firmware: google: Fix minor bugs Date: Mon, 18 Nov 2019 11:19:28 +0100 Message-Id: <20191118101934.22526-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Rudolph This patch series fixes 3 independent bugs in the google firmware drivers. Patch 1-2 do proper cleanup at kernel module unloading. Patch 3 adds a check if the optional GSMI SMM handler is actually present in the firmware and responses to the driver. Changes in v2: - Add missing return statement - Add s-o-b on GSMI patches - Add define for reserved GSMI command Changes in v3: - Cosmetic changes only Arthur Heymans (2): firmware: google: Unregister driver_info on failure and exit in gsmi firmware: google: Probe for a GSMI handler in firmware Patrick Rudolph (1): firmware: google: Release devices before unregistering the bus drivers/firmware/google/coreboot_table.c | 7 +++++++ drivers/firmware/google/gsmi.c | 25 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) -- 2.21.0