From patchwork Mon Jul 3 15:23:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Schnelle X-Patchwork-Id: 11560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp627915vqx; Mon, 3 Jul 2023 09:07:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57QeuZGLi8M9nF4xDl2Iz8upMFdd3C7IbwZujYrn4sMJNyk/n+zsS8g9zV4Gjkeh0XKmwq X-Received: by 2002:a05:6a20:1456:b0:12c:76d1:bcde with SMTP id a22-20020a056a20145600b0012c76d1bcdemr15379071pzi.4.1688400420215; Mon, 03 Jul 2023 09:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688400420; cv=none; d=google.com; s=arc-20160816; b=G6kcF2szTETaDuEVY1Q6Q8TEs9NN5JQXU36eAm4S1pHvo+AXmoWt5YKjuikMCv19Br 4vmCc1kfuCzQaHJSg84dBths5L2ec0mlZTZakB3BBLvVvf9vHp4fcdD64bpw3R3tC87i ku5LMbB732OD21W5T1dqDWgOPx5BzHHAaVH3JRKIHMlWrPWnUYCYEg53a2uRiWdinWsj 6g5EDdbbc2E4m9lAe0TdN/ryYf+cJxIMUGf/SnxVNeJy0SuoAxh/J/sJKvnMnSVvuiMH MLn7jpxrYI6CAl9aMC5c7n9rQibJX/pPDXrvldaPWJWKzL9L3y7p6Z5pziSv6NqzWzmb IflQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=j99sFteJVA+vQCpOENH04nWpFXQAHtpI2spxsYR8pb8=; fh=D06Z+3PPywQtRRGQYVMsCF3HHhsjCoxcEr2JIVXccE0=; b=COrXIy3zAm3NBqgfrRTkxAvepJdZ1Gdmugn4yc5eQGo5juL3Fn5RsHnFWJnclErZgR 9UjHW/zw1TN9FuHPb0JrU1nr+oa3+vXthuUZ6jzkz6p3dVGcwfuXCnZeZg5KJYvuyAu3 r2rDQypyA7z2ApqIbbfkXAkbhM3Y/ZGntN8cDz3Wzp9JjlxLv5WsiD4oFMuRlgaFt3ab ea1ha3H6i4DjpKPylQkzVjNbspRAS+evSvMvsI2OJvcwO43APqcdlu9USkvgY27jG4Pz ZGgendhQ3Gl1m9UXAVhgob6+QiRxqr65cdBdtj7kWeYrmR7Q/ZlIDyJDveQLLDVzaSZN 22tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=RIP0GMAu; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ea24-20020a056a004c1800b0063b7c4435c0si10277176pfb.54.2023.07.03.09.06.44; Mon, 03 Jul 2023 09:07:00 -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=@ibm.com header.s=pp1 header.b=RIP0GMAu; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbjGCPYG (ORCPT + 99 others); Mon, 3 Jul 2023 11:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjGCPYE (ORCPT ); Mon, 3 Jul 2023 11:24:04 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C12CE41; Mon, 3 Jul 2023 08:24:02 -0700 (PDT) Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 363FHo1m028226; Mon, 3 Jul 2023 15:24:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=j99sFteJVA+vQCpOENH04nWpFXQAHtpI2spxsYR8pb8=; b=RIP0GMAuYd1ROapylBoEohN+1MH/eGX7tFgC6RPFHPzv8vGZvc3/1fPI3qAkoEC7BMmf Pw5uJcBisDlUs5NSe5080I81u1PBvlJqundtF8xprRTCYew40eN5tV20Sdj3Efh+3UdF AhEDKJvxOSQwsBEFy0WJqUgQMD9tUq5jrCBr05/ueE4kXmRx/RMHbVUeH6xf3lLhhGym mIfZ9ESbD5V0kHXtTnhs95w8BUYzlFuMKFm92LO2vhqzgrz0Okm5cHCq6wzG4pi7/jXB tDBrj9znuk21122C1XbdfGo3f0Mvt7vh+S4N7jpRYpSC8wjffLBQkP3nzX0jtGOMVeiC YA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rm0uer3pk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 15:24:00 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 363FJGM1031879; Mon, 3 Jul 2023 15:23:59 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rm0uer3p2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 15:23:59 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 362Nq53m000478; Mon, 3 Jul 2023 15:23:58 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3rjbs4scyw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 15:23:57 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 363FNtdn33293046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Jul 2023 15:23:55 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 88EB42004B; Mon, 3 Jul 2023 15:23:55 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E88B20040; Mon, 3 Jul 2023 15:23:55 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 3 Jul 2023 15:23:55 +0000 (GMT) From: Niklas Schnelle To: Dmitry Torokhov Cc: Arnd Bergmann , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/1] Input: gameport: Handle HAS_IOPORT dependencies Date: Mon, 3 Jul 2023 17:23:54 +0200 Message-Id: <20230703152355.3897456-1-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: VQBEA2pt5--z9bZgGyPj6pvlHEfJ-n9J X-Proofpoint-ORIG-GUID: mHqMxSvlGaFLAD1RrMEtBIcL0mYygvTL X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-03_11,2023-06-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1011 spamscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307030136 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770416158855223638?= X-GMAIL-MSGID: =?utf-8?q?1770416158855223638?= This is a follow up to my ongoing effort of making the inb()/outb() and similar I/O port accessors compile-time optional. Previously I sent this as a complete treewide series titled "treewide: Remove I/O port accessors for HAS_IOPORT=n" with the latest being its 5th version[0]. Now about half of the per-subsystem patches have been merged so I'm changing over to stand alone subsystem patches. These series are stand alone and should be merged via the relevant tree such that with all subsystems complete we can follow this up with the last patch[1] that will make the I/O port accessors compile-time optional. Thanks, Niklas Changes since v5 for Gameport: - Added a dev_err() print when registering a port without .trigger() || .read() and disabled CONFIG_HAS_IOPORT (Dmitry Torokhov). I added this where the default functions are set instead of in the handlers themselves so there is naturally one error print per port. - Rebased to deal with default handler functions. [0] https://lore.kernel.org/all/20230516110038.2413224-1-schnelle@linux.ibm.com/ [1] https://lore.kernel.org/all/20230516110038.2413224-42-schnelle@linux.ibm.com/ [2] https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/ Niklas Schnelle (1): Input: gameport: add ISA and HAS_IOPORT dependencies drivers/input/gameport/Kconfig | 4 +++- drivers/input/gameport/gameport.c | 28 +++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) base-commit: a901a3568fd26ca9c4a82d8bc5ed5b3ed844d451