Message ID | 20230620061254.1210248-1-juerg.haefliger@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3470792vqr; Mon, 19 Jun 2023 23:48:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x+4zRzuJFYwvTglDt4rcdXeZl4D0XvHyzwUnZb4TkP8giwcllBRcMDKXa1CTZlpfPQDQL X-Received: by 2002:a17:902:e847:b0:1af:a2a4:837f with SMTP id t7-20020a170902e84700b001afa2a4837fmr11223582plg.26.1687243739430; Mon, 19 Jun 2023 23:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687243739; cv=none; d=google.com; s=arc-20160816; b=xHxiX9ojWe3U1wnU/jmLmZLfl56KFiLnrv2W9E0rd6E/L0MTBf1Tn/Bu/oq8PMTsUY W4JWhftv7gNP8X2NDP6BVBJlctQNlj/1rwEHwe3es0LuUMDCLbu6ueTNSVXXQ8btI11t 9YK+47StXTvg1CXYYxiE4+9/Xbz3YeAgJ+/U794GcJEULBKadArP1jmP+54WCZTo7Bnw AoZQEOb/dqd9gItE2/Xwl0ImUf1fulRog9J4BLLkq8M4ci3myXw2eIOFnrswXVOqhbMA SDU4zG0SYETJ8WDuPvl2zrY1/EiA+vrXYLfxKl4+wCQ2ZenpsaHn+qLzPr/9Zlhq/Qzs K4Ew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9wIeiW1ZFsba/KXCWD2PyQ1wr/96tQbFZf3Edkh0XnI=; b=S83AncuJ3DaJQtEQkkNdy5oonqxe7QOlTF/RO2OdsP7rj1VuGwh0Uva5oXujUFg328 1jEEjXjXuL9s4xn/BvuiH7bX7CFZq10UOwjujE8f7QxIff4tLuGL9VirgFUVtP1eHOfE 9Ob55sHgjQHcwod5LbJnWLzmC8MU3XBUeG993/s/rIWujYFMZtEzQ5GMeACdUP5wRSek Q3m8wcyGBtZ5Eid8Av8qy/ZPHGbY2wrBt6xIYPp0NY5pxeolS/PEp7UY7kGU83FJG1TC Q4rTwQYVBn+rhqnUBUUV4usEkEUGVQTcWxhbo+wKIJYug7Dg6EFsGFzLrZr19447H8yg Ed7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=XNMOL5G9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a170902ec9200b001b668cf7162si1356556plg.401.2023.06.19.23.48.47; Mon, 19 Jun 2023 23:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=XNMOL5G9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230510AbjFTGNJ (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Tue, 20 Jun 2023 02:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjFTGNH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2023 02:13:07 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A607AC6 for <linux-kernel@vger.kernel.org>; Mon, 19 Jun 2023 23:13:05 -0700 (PDT) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 04869423EC for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 06:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1687241581; bh=9wIeiW1ZFsba/KXCWD2PyQ1wr/96tQbFZf3Edkh0XnI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XNMOL5G9XfhvvZEQhn0g7g0XAPI9nAIu9t4w85D11Co3Zn8I/mLSN5MUgiFeYdKLh rOp6FZaFa4N7vnABf5lgjVDR8mzeAdIM0lp8VYxBmn1ch0h01N294KrQS8oQigfoSu GVzW0wOKt3pskwzDVts/WkaBPmFXlMNmYbTETRw13Arh7Fd0ZJFK4CMbwkVi4ScyEn /wq3QjZ5T5L5lkfIDPog3j38S98ii4pa0g/iPubxdipJDWpyWd2EnsYgo4cuoaHcIq u8sEnfUxSzRmM9GAhHuxTO1iQcMP7S6eaDu1XhOV165dPO2OoMGmca5J4Esg2EOkTC gOj8Ht2ptFDpA== Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-30fb1f3c30aso1506028f8f.0 for <linux-kernel@vger.kernel.org>; Mon, 19 Jun 2023 23:13:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687241577; x=1689833577; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9wIeiW1ZFsba/KXCWD2PyQ1wr/96tQbFZf3Edkh0XnI=; b=XOfLLgrqxaTNwHjig0ZdpcL3oMP+JKl992fzI+qU8PL6t+i4YryZyeDfdt9r/iTO4C wK+b0yXbUlZ1RL5VW9sPkFcd/anMhtoj4lD7iNU/LT3Wp87jJ1VjiwDF/5kvw+UFcxXY A608e+KoVYdpMdZGO/xJDdyIWCVCa1RlCYpEjbEjpccwwvbK4FnUYg0LmH++WCeQAKrv 8P75gxR+qBDKjT/i4DWjsCNXs4Ld8SiSCWtDaJFEbuzxCaTUcWnZUzRe9RCaZZ1TTezQ UEsSELlDaS8aacq52hbMEPzzNA8SxA0G7aaBEWhii/fOD9D8qv9GQH+Z8Ek735YimhVl joCQ== X-Gm-Message-State: AC+VfDxRnWhFRN8YFJMY2X9GOVpzf5DgifYd/Qw6GeQSpBBSOtXDIeK6 mtwIsx0qj73MqtpvGJRdDGp0vTdECmcmAYIH4+CVmYHRSUR5cG3gYmWeAjveO5603Ok+RwB24hJ MWvjr9NmTOpUladXOr0Mh3VsIzGaCP9ABptRBk3L9eQ== X-Received: by 2002:a5d:5642:0:b0:311:13e6:6504 with SMTP id j2-20020a5d5642000000b0031113e66504mr7172945wrw.47.1687241577594; Mon, 19 Jun 2023 23:12:57 -0700 (PDT) X-Received: by 2002:a5d:5642:0:b0:311:13e6:6504 with SMTP id j2-20020a5d5642000000b0031113e66504mr7172930wrw.47.1687241577282; Mon, 19 Jun 2023 23:12:57 -0700 (PDT) Received: from localhost ([194.191.244.86]) by smtp.gmail.com with ESMTPSA id y10-20020adff6ca000000b0030f9c3219aasm1163729wrp.47.2023.06.19.23.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 23:12:56 -0700 (PDT) From: Juerg Haefliger <juerg.haefliger@canonical.com> To: rfoss@kernel.org Cc: Laurent.pinchart@ideasonboard.com, airlied@gmail.com, andrzej.hajda@intel.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, jernej.skrabec@gmail.com, jonas@kwiboo.se, juerg.haefliger@canonical.com, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org Subject: [PATCH v2] drm/bridge: lt9611uxc: Add MODULE_FIRMWARE macro Date: Tue, 20 Jun 2023 08:12:54 +0200 Message-Id: <20230620061254.1210248-1-juerg.haefliger@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <CAN6tsi4jdDD20DY5sKL+ALC_Mk2UHRArOrQnjzKoyF30QZi8jw@mail.gmail.com> References: <CAN6tsi4jdDD20DY5sKL+ALC_Mk2UHRArOrQnjzKoyF30QZi8jw@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768862803228232360?= X-GMAIL-MSGID: =?utf-8?q?1769203291133515173?= |
Series |
[v2] drm/bridge: lt9611uxc: Add MODULE_FIRMWARE macro
|
|
Commit Message
Juerg Haefliger
June 20, 2023, 6:12 a.m. UTC
The module loads firmware so add a MODULE_FIRMWARE macro to provide that information via modinfo. Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com> Reviewed-by: Robert Foss <rfoss@kernel.org> --- v2: - Introduce FW_FILE macro - Add Rob's r-b --- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Comments
From: Robert Foss <rfoss@kernel.org> On Tue, 20 Jun 2023 08:12:54 +0200, Juerg Haefliger wrote: > The module loads firmware so add a MODULE_FIRMWARE macro to provide that > information via modinfo. > > Applied, thanks! [1/1] drm/bridge: lt9611uxc: Add MODULE_FIRMWARE macro https://cgit.freedesktop.org/drm/drm-misc/commit/?id=354c0fb61739 Rob
diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c index 2a57e804ea02..22c84d29c2bc 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -28,6 +28,8 @@ #define EDID_BLOCK_SIZE 128 #define EDID_NUM_BLOCKS 2 +#define FW_FILE "lt9611uxc_fw.bin" + struct lt9611uxc { struct device *dev; struct drm_bridge bridge; @@ -754,7 +756,7 @@ static int lt9611uxc_firmware_update(struct lt9611uxc *lt9611uxc) REG_SEQ0(0x805a, 0x00), }; - ret = request_firmware(&fw, "lt9611uxc_fw.bin", lt9611uxc->dev); + ret = request_firmware(&fw, FW_FILE, lt9611uxc->dev); if (ret < 0) return ret; @@ -1019,3 +1021,5 @@ module_i2c_driver(lt9611uxc_driver); MODULE_AUTHOR("Dmitry Baryshkov <dmitry.baryshkov@linaro.org>"); MODULE_LICENSE("GPL v2"); + +MODULE_FIRMWARE(FW_FILE);