Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5300178ybl; Tue, 10 Dec 2019 03:52:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxMp6ChrE/IMVf8wLYgmxiN1ljVE4GDVkxMIUvaUTA2TbK+dKPGrqUHI0vTmVkddF7EdhoW X-Received: by 2002:aca:4e87:: with SMTP id c129mr3431150oib.153.1575978774120; Tue, 10 Dec 2019 03:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575978774; cv=none; d=google.com; s=arc-20160816; b=0Nr79xV9IMdabFL3CaTI36jq245M5+cQm7UOrFND8WNJBviTBVzMesPU5ratgLQO21 MCgfo7419LKFQWRzcE0zXGoND6FT8N/13f0UBAVzZ43797EMnPqg18l353wxhHt9WOBg xGgzNoymUhlfRYwHX6wzLrjBA+MWpLb2w8RHN+wJnryBVqs54KFIhPmcTzw75taZcRhC VfwePpfhGuA/x3HQKxYEdb4j0knCccMQjd1pbxddZsVDd+Bsd9BedyAhqGyq7ngXxodZ 3yxF4sk2b5e5I4ug+YDIvqUtVeqAxvjI74P2t9ckLONFc3keK3caeo368vrT8PGNcrYK erbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xEBrDdwqBspifEyrKVUN4LwxDIQDuRZSkP0oQyfCJjI=; b=BpySzDv0+cSGujfyrRD+3+9OMWYhcbX5OFlypCzu/yUHwfga0o79XsmiVCl1J+loUq BDHoPEud6ZHmF7xaAOakJzKs/M+4V+VyeuMNNsh3+uP4dBeqUYwHVngx2nYUcdVGeOgf PoiM4L/8vl4bBcmzpzCC1pxnoV4NZWrUS5TnVjKRLl+OeVWkjrvEoI0tglZQ2Ae/66Xz zJJSQH9E3zaLFNnPqGw4Y/ZyY4XuJSqQP6p7/rWL/dS8bcCtbbp5o192eVMqbeNTBeKC 7E+vWJRxKZu68jW3BARE2VXVDiuuQnHfFT5POGy12G9I0Ekt07oj+GyI1o4w1xPRS28T aJmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B5IMcp0l; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si1733420oia.98.2019.12.10.03.52.41; Tue, 10 Dec 2019 03:52:54 -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=@redhat.com header.s=mimecast20190719 header.b=B5IMcp0l; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727855AbfLJLwB (ORCPT + 99 others); Tue, 10 Dec 2019 06:52:01 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:41385 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727843AbfLJLv7 (ORCPT ); Tue, 10 Dec 2019 06:51:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575978718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xEBrDdwqBspifEyrKVUN4LwxDIQDuRZSkP0oQyfCJjI=; b=B5IMcp0lTx5WZS2+PPCAtt5hfxXRTxpAuqQKKCvyfAb6GDhQViE3/+CpJxtlAZXLFQbC3b f4gzvoC48/NlmYdAEffmjDOBzGddaaj8inNKk53yNIWnMgiCcJsjkEG+QzjnnxiqZBpW24 d9FO6L8wo3ymjzOJ6yRmwwCXvcYgbqQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-231-u7RTSJX5MZqf7Dpjrg4UGQ-1; Tue, 10 Dec 2019 06:51:55 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E2E68028CF; Tue, 10 Dec 2019 11:51:52 +0000 (UTC) Received: from shalem.localdomain.com (unknown [10.36.118.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 098975DA60; Tue, 10 Dec 2019 11:51:48 +0000 (UTC) From: Hans de Goede To: Ard Biesheuvel , Darren Hart , Andy Shevchenko , Luis Chamberlain , Greg Kroah-Hartman , "Rafael J . Wysocki" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Jonathan Corbet , Dmitry Torokhov Cc: Hans de Goede , Peter Jones , Dave Olsthoorn , x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v10 07/10] Input: silead - Switch to firmware_request_platform for retreiving the fw Date: Tue, 10 Dec 2019 12:51:14 +0100 Message-Id: <20191210115117.303935-8-hdegoede@redhat.com> In-Reply-To: <20191210115117.303935-1-hdegoede@redhat.com> References: <20191210115117.303935-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: u7RTSJX5MZqf7Dpjrg4UGQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unfortunately sofar we have been unable to get permission to redistribute Silead touchscreen firmwares in linux-firmware. This means that people need to find and install the firmware themselves before the touchscreen will work Some UEFI/x86 tablets with a Silead touchscreen have a copy of the fw embedded in their UEFI boot-services code. This commit makes the silead driver use the new firmware_request_platform function, which will fallback to looking for such an embedded copy when direct filesystem lookup fails. This will make the touchscreen work OOTB on devices where there is a fw copy embedded in the UEFI code. Acked-by: Dmitry Torokhov Signed-off-by: Hans de Goede --- drivers/input/touchscreen/silead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen= /silead.c index ad8b6a2bfd36..8fa2f3b7cfd8 100644 --- a/drivers/input/touchscreen/silead.c +++ b/drivers/input/touchscreen/silead.c @@ -288,7 +288,7 @@ static int silead_ts_load_fw(struct i2c_client *client) =20 =09dev_dbg(dev, "Firmware file name: %s", data->fw_name); =20 -=09error =3D request_firmware(&fw, data->fw_name, dev); +=09error =3D firmware_request_platform(&fw, data->fw_name, dev); =09if (error) { =09=09dev_err(dev, "Firmware request error %d\n", error); =09=09return error; --=20 2.23.0