From patchwork Mon May 21 18:10:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kiryanov X-Patchwork-Id: 10416165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 431136053B for ; Mon, 21 May 2018 18:11:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32ADC289E0 for ; Mon, 21 May 2018 18:11:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2779D289E9; Mon, 21 May 2018 18:11:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3C0C289E0 for ; Mon, 21 May 2018 18:11:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753237AbeEUSLT (ORCPT ); Mon, 21 May 2018 14:11:19 -0400 Received: from mail-ua0-f202.google.com ([209.85.217.202]:45618 "EHLO mail-ua0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209AbeEUSLS (ORCPT ); Mon, 21 May 2018 14:11:18 -0400 Received: by mail-ua0-f202.google.com with SMTP id j5-v6so11935128uak.12 for ; Mon, 21 May 2018 11:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=V9VE5aBiIHkZi5xZkUK/hTMaf9u+knp70WGVfIVPfWo=; b=jZ9pAejUHzJav1r4AtzHaYo4+z4kSUYpptkHL+JJQdwJG/ok9JmWsEjLXwByyGfgOb n1KN5ccz8WDE1fJLjhpWC2voqPMtbMYv6qufzEhWJkQDCaQvWyLbHpNO4X376ymAEaKw nIvv0aP9iQKo19bDyQOH8JdGkLbcXej0S4IrF+cZhAHwog2NRFjuiGyP3b8I+1vDpt6J yoqu0aNzPZqO+f/mjpQR4GaQ4bYuIhgHpAk1mWYJfG/sv6+qodCFYKebBt5OZPYHQ4jL Yqbhjw/Q/lARy4Q/RfKceJblF7mcLkWorsbS5leGp/fVT62/AXfs+VI52+uq6zHbY+6L 8g/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=V9VE5aBiIHkZi5xZkUK/hTMaf9u+knp70WGVfIVPfWo=; b=IcPshhs0RqAAf6yd1/ZfHzF1D7VEr8909RfpxQprA/8TKN6mgKPuaCMCwQzMlfwcTu KQrJAy6ctWhtY3pfUSuZmtWnO4ukHp2paQKyzGjX2Sul6NPssj7s3rDznTChzK9pV7w/ bWQWjgbc25Ad0+uR/Jp8R8wthA77XVcd5UuMoDbRnTAZFf8PoOM7bpKx2sf8/zZYDLrF 9/kQhOSdEVE7wYlLPyhg5RMz9SJe285rPQRupEeklLPEsT2feU3biWfqzVvWuB7ZWcht Oh0MDDBB9c7EZQnSPT/1wodQrYRf9ixIrpZQXKbO6NyQMi6mu9RP1QhLeWbOZ8rqIeVM HvDA== X-Gm-Message-State: ALKqPwez9nhS6gf+rvVf0cEqTAeHa9NTBlNBHZ24X8KfFRDpY+gTE+Go /17mhu4kU7m2z9JdSnfriBwY6X/CtxJAtsGF1HhEkwHQjrsaPGibxmXdWa7Q8lMBlREtiHg8n40 pLPgro4yv+MsLrnD8Opns8laaYjYOYjuPYD29Bi3X4gxDkywELrodG2YhxuE4WW4= X-Google-Smtp-Source: AB8JxZpjMVhCZliPLMiA8Qod9snqtMEorHMFUJmTyYg0W5Og+wRwgpnfTibYzv080d1gEYqa002NYP4h MIME-Version: 1.0 X-Received: by 2002:ab0:249:: with SMTP id 67-v6mr11538251uas.46.1526926277511; Mon, 21 May 2018 11:11:17 -0700 (PDT) Date: Mon, 21 May 2018 11:10:15 -0700 Message-Id: <20180521181015.147938-1-rkir@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog Subject: [PATCH] goldfish: Enable ACPI-based enumeration for goldfish framebuffer From: rkir@google.com To: linux-fbdev@vger.kernel.org, tkjos@google.com, yu.ning@intel.com, rkir@google.com Cc: tkjos@google.com, Yu Ning , Roman Kiryanov Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yu Ning Follow the same way in which ACPI was enabled for goldfish battery. See commit d3be10e for details. Note that this patch also depends on commit af33cac. Signed-off-by: Yu Ning Signed-off-by: Roman Kiryanov --- drivers/video/fbdev/goldfishfb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index de29c4ff77e5..01732858b60d 100644 --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -26,6 +26,7 @@ #include #include #include +#include enum { FB_GET_WIDTH = 0x00, @@ -312,12 +313,19 @@ static const struct of_device_id goldfish_fb_of_match[] = { }; MODULE_DEVICE_TABLE(of, goldfish_fb_of_match); +static const struct acpi_device_id goldfish_fb_acpi_match[] = { + { "GFSH0004", 0 }, + { }, +}; +MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match); + static struct platform_driver goldfish_fb_driver = { .probe = goldfish_fb_probe, .remove = goldfish_fb_remove, .driver = { .name = "goldfish_fb", .of_match_table = goldfish_fb_of_match, + .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match), } };