Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2842423pxb; Mon, 1 Nov 2021 03:01:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuwKOa/9jm6kcOfcSYRcZuY17e2TTEVnmTBJLf3fJx1Fk/tx5l/CBi2ZlkBPhhPtWI5nBn X-Received: by 2002:a17:906:c57:: with SMTP id t23mr11663214ejf.375.1635760911152; Mon, 01 Nov 2021 03:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635760911; cv=none; d=google.com; s=arc-20160816; b=xOxxYfyqdkVptH8MlO1O2lNkE/XoJjq+wVmRwJMiFkY96ivuyQdk4NJQ9hD2ARU8u7 Oz8jfa8xLhz4ULXn8zJmdZTo+GGi6WkyThaQLgNkGfWI/apwvRlHAV0XYH2SHALpPynI 5uSoW0hlx1dK6XYTwnzGHvh3z8wCAhnl3IFGYx0fpkkDp7moaDoW13x6lH+Q3DsIxAMW mPSoPtpY6VY81GVBrMsLZZ1TLx1ZaRGeTkdgLAjMEmtnOf+1F2zbEPY48wC5Zg0ruJNs FfNGg1acSntj1ugqY5iljI1foqeaFJ0bGE0zdbMbGf0+lkp8z34FZbSgxXAJZbyTkIkB vJlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vnNLP3pxCj5kK+Y7vBpKll8NWXd7vahWcRAymdcHOXU=; b=lanTfy3stc8LDDME6TN0jyeOnWPnNRjt7EbBfEY+xJhvLvWlag6vftI97Y9wOWC4b9 Urevou6tqLEC5G0pbnKZmz2rpA79cmakbRJ7YcO31G3hxFmJN8ajNf3PqBMHlK8bQRsS rNWbJuWJdSvJgxaWMfKlIVAicHj3R2i+hk1dUhrZED3v5N9rNhONY+Dnf8cakqTSvSbh nFwfKV0XWKEsDNqFJIjGtlJdccpqAbiVh3WqWkli/CIkUyttQADOyKF3GI5vbEfvO/yf FJM7SbOByvEfzi2qGw3wfMfuxF8T9YQFXbMedMMbl1rPegJd0dkqYsRL03f5h46t6V6J gvDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XMxIYR6C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si14620705eju.124.2021.11.01.03.01.26; Mon, 01 Nov 2021 03:01:51 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XMxIYR6C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233174AbhKAKAI (ORCPT + 99 others); Mon, 1 Nov 2021 06:00:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:48791 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233139AbhKAJ7R (ORCPT ); Mon, 1 Nov 2021 05:59:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635760604; 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=vnNLP3pxCj5kK+Y7vBpKll8NWXd7vahWcRAymdcHOXU=; b=XMxIYR6Ct4LAlKOU6HWX70OX7h6tOys4BaqEVdiM8JApgs6qvrpxFTi5SpPIs/QnEH0rUz sE3m/CRr0ZLWd9I/6XCuX5xNomIW7nwM+Vns8qyQO7ozIOWYuq9dV2ln9HR1ghEgpWBf7B oSTqMFEdOqA/UDYzpNI3tz32XOO79zo= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-107-H071VeTrPDCXqgTerVheXw-1; Mon, 01 Nov 2021 05:56:43 -0400 X-MC-Unique: H071VeTrPDCXqgTerVheXw-1 Received: by mail-ed1-f71.google.com with SMTP id y12-20020a056402270c00b003e28de6e995so1594904edd.11 for ; Mon, 01 Nov 2021 02:56:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=vnNLP3pxCj5kK+Y7vBpKll8NWXd7vahWcRAymdcHOXU=; b=MCIGR9KRHkSCk6fAudgaHqnFyC74LymfSiOLP71z4yvycovJUZUICqQyELjKmlzCUS jfjDregbXsdJOzVCyA3bCx5ZPaJb+TzadXopofOTHivzS8Ry5I8Tc7piw0Sti/lVM7HG h9MfbGgYzKxFK94pVyD/m3YHDC2wRGZFfBlCz5OqpSkD8KY9jNeUskDOTnUtDQk/McrD qAMHdDb3n1j22X4l/28NOmY14WLRYPLU+qku6x2TS3xlBpir7icKY8HbOsh//NSy3lc5 BItWMhUZl2pchtPkPckbKTE1i4vKCzWEaOQe/34QC7mzMYqn1b6E0bRCqisnhuZfiFfP 8NrQ== X-Gm-Message-State: AOAM532YhdIKgtxnWjMZF7IN2da3p6qxc4eGbctBVyVpvG4/7zyhJE4q cFpYDE6FfMzywEdXbQqUrkH9pyWceZ3OAH8LvHbhg4+jn0/0Ew7RESXToEdW/pnoWQi1fpAso0z nrDxfMbnjz0g82mROlSeNT/1I X-Received: by 2002:a17:907:72c3:: with SMTP id du3mr34940716ejc.536.1635760601916; Mon, 01 Nov 2021 02:56:41 -0700 (PDT) X-Received: by 2002:a17:907:72c3:: with SMTP id du3mr34940693ejc.536.1635760601753; Mon, 01 Nov 2021 02:56:41 -0700 (PDT) Received: from [10.40.1.223] ([81.30.35.201]) by smtp.gmail.com with ESMTPSA id bm1sm6701834ejb.38.2021.11.01.02.56.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Nov 2021 02:56:40 -0700 (PDT) Message-ID: <883db585-c9bb-5255-4ddd-f093616af1a1@redhat.com> Date: Mon, 1 Nov 2021 10:56:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 0/6] MODULE_DEVICE_TABLE() support for the ISHTP bus Content-Language: en-US To: =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Srinivas Pandruvada , Mark Gross , 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 References: <20211029152901.297939-1-linux@weissschuh.net> From: Hans de Goede In-Reply-To: <20211029152901.297939-1-linux@weissschuh.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/29/21 17:28, Thomas Weißschuh wrote: > 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. Since most of the changes here are under drivers/hid and since the latter patches depend on 1/6, I believe it would be best to merge the entire series through the HID tree, here is my ack for this: Acked-by: Hans de Goede Regards, Hans > > 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 >