Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp212889pxb; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMcdPUW2qznnlpez8IyhsxA9u8NKRVr5iEfdvhP14RCkH16RmsXqSl4T5VsZbRxBoF9AsC X-Received: by 2002:a05:6602:2292:: with SMTP id d18mr8392378iod.165.1635521457050; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521457; cv=none; d=google.com; s=arc-20160816; b=Stzni4GdUT2lcdTcvbx+lWXQ8Bf2z7Z9ajQ5jU2MUYi4ElJ0M/Nu9UepL/Liyim+K5 NTecRf6R6oyAW1k+FgCc9OILjFoVJipS6E2mfJhI5lWNiVCQmriQ0GYzEmv3UDaXqaaZ n+rp9Dic+r1bATKE3PPXxW8eeeHnjxjGd3m5aBk0u6x1w0Nzifd3pUMFuNoJ9nLEc+g6 JI0DRLc0DavbjEJGfn7DFDqzrqoSA51Dw98sKQClpVTKgQgO70dco77QzSkj8DBrqMWf 8B/igSPkwrEtLZH2mjjJggGEBNaH1Nlzm4tFeS7MX/UJDC7j3X95DBw83I3qtoB19Gc5 42RA== 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 :message-id:date:subject:cc:to:dkim-signature:from; bh=cNP7glRPCdXtF0+4xtQgEriodmY/AMw/r1zaOYMMwPo=; b=ye6QeKTW+5p18qel8HxEX+98YMNKevD1kHe9/yPoke6yjpLBDAXaVxRYyXBjcvfp6r VvfV7agQdZMYvfAnR2JwFyKqZQGGFVaXFGMuhiosvo441glXZl1DvVkIug7zLK5tu05p SXQXXYd7HIQ0bivP4D2tTekqJpU6qlW7vuWYPW33b7Gal3+k5N7iZQKlYKc0NqJ44pak kwLPRy9kW4YyWtsi0OnkY6YuGUyyJNMUiwHykFcWS6ubezgQmsZot/zbIwJue/vW77hH EGjYk73vYyola7od5DJyqk+6gnApbwMjdSlJOWRl6nk8a0Bjwp1RSbpKtyx5+2bRRBho gCjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=apdbY5Sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si10982229iov.32.2021.10.29.08.30.45; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=apdbY5Sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbhJ2Pbs (ORCPT + 99 others); Fri, 29 Oct 2021 11:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbhJ2Pbr (ORCPT ); Fri, 29 Oct 2021 11:31:47 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E12C061570; Fri, 29 Oct 2021 08:29:18 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635521356; bh=xpkQwOJ7rx6E7Tl8iUgiaBxrMqco6gv/RoKR4AOF7aA=; h=From:To:Cc:Subject:Date:From; b=apdbY5SvWPXfqQ3QIb2YfkeYUapqFBCQM3itUQq5AD5/K5895K0QHwqDdYETsBCqt hV1EGtz/iOl0mtnhd1MUNQ3zlRTGDBUgNftBBOi/XS+Py0nmD8LdA1MCyvQ0CMz44g UwBlgMqjvULYhrtjmPWawPID6+1eAnmMwj8iFTvE= To: linux-input@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Srinivas Pandruvada , Mark Gross , Hans de Goede , Rushikesh S Kadam , Jiri Kosina , Benjamin Tissoires , Guenter Roeck , Enric Balletbo i Serra , Benson Leung , platform-driver-x86@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 0/6] MODULE_DEVICE_TABLE() support for the ISHTP bus Date: Fri, 29 Oct 2021 17:28:55 +0200 Message-Id: <20211029152901.297939-1-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently as soon as any ISHTP device appears all available ISHTP device drivers are loaded automatically. This series extends the MODULE_DEVICE_TABLE() functionality to properly handle the ishtp bus and switches the drivers over to use it. Patch 1 adds the infrastructure to handle ishtp devices via MODULE_DEVICE_TABLE() Patch 2 replaces some inlined constants with ones now defined by mod_devicetable.h Patches 3-6 migrate all ishtp drivers to MODULE_DEVICE_TABLE() Note: This patchset is based on the pdx86/for-next tree because that contains one of the drivers that is not yet in the other trees. Cc: Srinivas Pandruvada Cc: Mark Gross Cc: Hans de Goede Cc: Rushikesh S Kadam Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Guenter Roeck Cc: Enric Balletbo i Serra Cc: Benson Leung Cc: platform-driver-x86@vger.kernel.org Cc: linux-kbuild@vger.kernel.org Thomas Weißschuh (6): HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE() HID: intel-ish-hid: use constants for modaliases HID: intel-ish-hid: fw-loader: only load for matching devices HID: intel-ish-hid: hid-client: only load for matching devices platform/chrome: chros_ec_ishtp: only load for matching devices platform/x86: isthp_eclite: only load for matching devices drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 7 +++++- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 7 +++++- drivers/hid/intel-ish-hid/ishtp/bus.c | 4 ++-- drivers/platform/chrome/cros_ec_ishtp.c | 7 +++++- drivers/platform/x86/intel/ishtp_eclite.c | 7 +++++- include/linux/mod_devicetable.h | 13 +++++++++++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 24 ++++++++++++++++++++ 8 files changed, 66 insertions(+), 6 deletions(-) base-commit: 85303db36b6e170917a7bc6aae4898c31a5272a0 -- 2.33.1