From patchwork Wed Mar 27 07:43:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13605738 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C961B4C7C for ; Wed, 27 Mar 2024 07:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525483; cv=none; b=Lq9oc1rbiPsi187oELBIA0g+NjrIO2jCsCg7qNUxDDj4+kQXzydJDol2bgFR/5PUYPopP8glNWpxJG7zkvMvp5hBpQxhYSQx8csO9WBLlYH3yAVtTj0/dOMhMPl67ReZmLi06OdHCdrZgAPo+RnMWYFKRDAZNkVm3uaEkAsWpZg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711525483; c=relaxed/simple; bh=meBEX830gRW4HXcwRaI98fQKaU/0vg8wDYKxDADJaXA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=mCNPUKpi77K8hQcb7NIyh0A8Q1Xb6uKqNKGQmUMKarp2je3uPYHEsoKey2ewB1YffqPavd6TjFjfAoGKJsyqOF95Q369d0c1hJHEvpl+4gHSteybXxbUg0rLlkgXly5zxC3g28D759RgtWOqy315fN8lqcrXxmneoI6EYKo2ZoU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SdBvHhiu; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SdBvHhiu" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a46a7208eedso866344766b.0 for ; Wed, 27 Mar 2024 00:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711525480; x=1712130280; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=cwJgbNd9Cb1xxQGP3U28yL2PzFi4V4xZap9Ru43Q/Mw=; b=SdBvHhiuyUFUwk8YiTvwTtM0bHquxeOd2OPGUG8vYvWcXZnHxn1vC3JMkri5DuT2yE izjt00bO/nAqGy0SL8agPK3BuCqc6QXUmOA81omR5XOsCZAWY4+FubBak/OxYtnjhaOi S0FMQW1j/sFO41MbQXMHvg5E1Y3x+AyH+prQe5CztQWuAeX2TuSaqudsfrRLDFw8ULO6 hD5OyKb3+NKvXLrQFbLzvXsEoLWswJC2E0e//xCD6uvBc11LNNLZTlqeNKgnxJfNReSE eXjh7sFj/Nwpyil4JxHw4LdEThDgguzEq8fAkBXS8io9mTMUMdbcJ611WUE/hZCi13h8 I0Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711525480; x=1712130280; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cwJgbNd9Cb1xxQGP3U28yL2PzFi4V4xZap9Ru43Q/Mw=; b=jp6lynAeNNqsYeqY5q6JL4LmS7GHoeiw9rUqW6yHYwZnuYHxsoSZFtnt6qfsAiW4T7 Yi3kHZqXn2WichZTGP/c/WCrL80etmLWdiNc9weoMPZpWN/ES75lgj6eStbA/v8Z/E55 pQ6bGRjln5+l7BTgHO+Lshu+EMtOCHi34YWmfDEIFMhzi6R4nC2Sv8IbmtT5uu2fIGBb rrQV+75EdDwxbhdry8XA7CIXnj7u+wtaH/VYGBzhySWIZBLuVfg5ymXa95FPnJmMUbwa We7NtC3H5FH6elr3k1kfLKiw7Zej+LS8wDTqky47u4HWzdcXgicCyjuOzdHSROuV8PYT JrlQ== X-Forwarded-Encrypted: i=1; AJvYcCVUlaE2J5bFSKdSL8WsxiEmte5WC5NkrBID4G2yvbWdB8NpBvjpCudRn6B+uirdzpWLqDwSl4m0TL5JK6zc3TrdhuMw7MRtYCojnaM= X-Gm-Message-State: AOJu0Yz7MRHI6WjlZptx7ZlT1ROVXZl50F5BHvcvqD40PKumYc0P7u52 cL6bZw31H04RezwdZmAnVh1Qdx8IS00/3OStJareWzOlBzh47D0QBTaZzdfNfgM= X-Google-Smtp-Source: AGHT+IGlvH7IOquxCns2fE0YzmhHeEjVjLkRMbV5aqG3+Bvmapd6+zXlFoC0J4tu34KlhV5VJ7nhhQ== X-Received: by 2002:a17:906:4112:b0:a46:930c:b793 with SMTP id j18-20020a170906411200b00a46930cb793mr2316193ejk.9.1711525480120; Wed, 27 Mar 2024 00:44:40 -0700 (PDT) Received: from [127.0.1.1] ([178.197.206.205]) by smtp.gmail.com with ESMTPSA id am11-20020a170906568b00b00a474690a946sm4671745ejc.48.2024.03.27.00.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 00:44:39 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 00/19] ACPI: store owner from modules with acpi_bus_register_driver() Date: Wed, 27 Mar 2024 08:43:47 +0100 Message-Id: <20240327-b4-module-owner-acpi-v1-0-725241a2d224@linaro.org> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADPOA2YC/x3MSQqAMAxA0atI1gY0VhyuIi6qjRrQVlocQLy7x eVb/P9AYC8coE0e8HxKEGcj8jSBcdF2ZhQTDZSRygqqcFC4OXOsjO6y7FGPu6BRjap1Q1SUOcR 09zzJ/W+7/n0/4mos7mYAAAA= To: "Rafael J. Wysocki" , Len Brown , Robert Moore , Dmitry Torokhov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Benson Leung , Tzung-Bi Shih , Corentin Chary , "Luke D. Jones" , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Thadeu Lima de Souza Cascardo , Daniel Oliveira Nascimento , =?utf-8?q?Pali_Roh=C3=A1r?= , Matan Ziv-Av , Mattia Dongili , Azael Avalos , Richard Cochran , Jeff Sipek , Ajay Kaher , Alexey Makhalov , VMware PV-Drivers Reviewers , Theodore Ts'o , "Jason A. Donenfeld" , "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev, linux-input@vger.kernel.org, netdev@vger.kernel.org, chrome-platform@lists.linux.dev, platform-driver-x86@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2754; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=meBEX830gRW4HXcwRaI98fQKaU/0vg8wDYKxDADJaXA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmA85It2J1eYnVhuIuXN7MMCJqdE2fAF7WfeZ2j n2apL2796uJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgPOSAAKCRDBN2bmhouD 1/SnEACOwWo91bl9rH3s5QXO4O8oEUXK1eW8eqIErfBujjd0mBVo1U62GGVdqCTwbnohFmGH8uS 0Hg0mT7Zeq81wweeJX6lhia/0ZXEq+ZS+N/VqqJ7A+7ylKAQBaJ/b12k4fTnfTvl8ROmcKTYwMO xzDw5Zk15EIcQqY7MGSWFtkoR4IrS2/djZzKQcElvc6wPnn9pAGHCnlsuqyNNfA0qKbLEKwbCZL ZHiY9SxWBdWl2HKHK8Mx9QC92FqorWxtdvlyyZbo8P3rLgNwOgKI/2iM2FL86OTTYm/I8h8K0uT 4zjFkXBSfJa5ZtEMyVYWaO/zJcCvsyANCUfmn+nApiQWih+qd2Bfgz7Gha5MiT/O9rP6SsOOlUM tbNEj8Cj8fPjz4pTITvXtRtmnxGIMv7j1sZ7b1tn1QCd0wj9ZTUDDh5LA2Wqr/EqqxRiP7yhmJx VlCIdsMAP0QRviCJeFZ/5IZsqoWkmPw48k2Jj1hAr4Y6e7OhxXXvGltn8sh7mvh4j0J5zpBJlM2 fjx/dZOndwUdkjsJSP0MbGEgMKEUw3t1Q1gKfYe6exbD7qfbc0CGKaHnss5MMzmn9bJVCGnsroA wySn4govEwvO62oJtu9o8OUcuu12dPLodXlbGS6LxGJSnQfhXloYUEOlIsusrAiizfR4Vy/tLG2 szuZE69hHAS2bhA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Merging ======= All further patches depend on the first amba patch, therefore please ack and this should go via one tree: ACPI? Description =========== Modules registering driver with acpi_bus_register_driver() often forget to set .owner field. Solve the problem by moving this task away from the drivers to the core amba bus code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register"). Best regards, Krzysztof Acked-by: Rafael J. Wysocki Acked-by: Hans de Goede --- Krzysztof Kozlowski (19): ACPI: store owner from modules with acpi_bus_register_driver() Input: atlas: - drop owner assignment net: fjes: drop owner assignment platform: chrome: drop owner assignment platform: asus-laptop: drop owner assignment platform: classmate-laptop: drop owner assignment platform/x86/dell: drop owner assignment platform/x86/eeepc: drop owner assignment platform/x86/intel/rst: drop owner assignment platform/x86/intel/smartconnect: drop owner assignment platform/x86/lg-laptop: drop owner assignment platform/x86/sony-laptop: drop owner assignment platform/x86/toshiba_acpi: drop owner assignment platform/x86/toshiba_bluetooth: drop owner assignment platform/x86/toshiba_haps: drop owner assignment platform/x86/wireless-hotkey: drop owner assignment ptp: vmw: drop owner assignment virt: vmgenid: drop owner assignment ACPI: drop redundant owner from acpi_driver drivers/acpi/bus.c | 9 +++++---- drivers/input/misc/atlas_btns.c | 1 - drivers/net/fjes/fjes_main.c | 1 - drivers/platform/chrome/wilco_ec/event.c | 1 - drivers/platform/x86/asus-laptop.c | 1 - drivers/platform/x86/classmate-laptop.c | 5 ----- drivers/platform/x86/dell/dell-rbtn.c | 1 - drivers/platform/x86/eeepc-laptop.c | 1 - drivers/platform/x86/intel/rst.c | 1 - drivers/platform/x86/intel/smartconnect.c | 1 - drivers/platform/x86/lg-laptop.c | 1 - drivers/platform/x86/sony-laptop.c | 2 -- drivers/platform/x86/toshiba_acpi.c | 1 - drivers/platform/x86/toshiba_bluetooth.c | 1 - drivers/platform/x86/toshiba_haps.c | 1 - drivers/platform/x86/wireless-hotkey.c | 1 - drivers/ptp/ptp_vmw.c | 1 - drivers/virt/vmgenid.c | 1 - include/acpi/acpi_bus.h | 8 ++++++-- 19 files changed, 11 insertions(+), 28 deletions(-) --- base-commit: 1fdad13606e104ff103ca19d2d660830cb36d43e change-id: 20240327-b4-module-owner-acpi-d4948a922351 Best regards,