From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796352066; b=MEc1sjCkIq87WYp6UeTgFYRQeCpaIM8GKo07niYFUORZpEDyIJOHkY3bc97v4yqiNVFw qrmyWv05Vdn1j1XWRQRZ5WE7C4ihuLR4mIbQSkhwRJ/8zrOV9KnIO0GNsFPDHB27OLZPi 5Cy7eg/jpgaX52Iq5M7R3ztxG9kdtI5Mpo0jUNaG77tVF6wg+kIR/wtw+gpqx6zk9TTBU FU8vjEHGMN7zJ3FJBPP6e288BjkKzPOHdWJkTf12OYB47E4RXDT1/R48S/0cr5eGSrobF rC+i0PmVJlgU9q2DhCA/Ps/2GETU1ToyTFc/bNiZKBrLOxIC0rEYg08BcFLSuwnAltA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796352066; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=l3bXzkZZsH0Gvh04zSPNHQb30us429qecCB5rWeTs78=; b=WsIt9xxCoVfs4ZRri1/sG+PT8udGY3BYpHOfJSOEsUDLpYfDpw63WhQ8tZFCPklq2izN 4amPG7YAKX1isw/1/58SOkrmGaR65ZC0FG6dtxNpcgw4LquZDTa9PeBfQbpbRTIzKV2SG SMfyXwzC2NTrX4Ej8RKKP47ZedtchHso4M1zYadZLDIHJlS4RxlYoFgrxLsZ595S0zWF/ 3c5fIxoiYfFDxb1JAwNvIfYeen89cXt2mt92klmGpSBlPgzB8vRPbsbVJezye8ec9YlgE wDFK0Ps780hMfag7xWjfxT1og2bxCZBMCDN9eY6GtkLFzgwESnYD4X+TBW3j5d5FnuQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T0TTTeuR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CFE7606A322; Fri, 4 Dec 2026 02:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T0TTTeuR Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4C3C1F000CE; Fri, 4 Dec 2026 02:41:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796352066; bh=l3bXzkZZsH0Gvh04zSPNHQb30us429qecCB5rWeTs78=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=T0TTTeuRQN+lCoYMWIzYUAz+66WD8o2kqf1A6C53Vg22inNQct3cTGsY0Rt4LTelN dJeD7Gk4NuycVrqEr1Mft0627tB19IQ7csptsoTp34MmdbwssoIDHIb8BMPCOsE9TK Lv0oyFCDks/6LBxCPD/8VojE5RiHlST91TzF7Z4DNauK3pt42M8Rf4UE8BZ9MM8C9V LywD3yZHYmjGi2AIx89Gdc7qXSYm30+jXOPxL0ILixgO0gM44F5DTzJmeu4MFqu8h7 CLy3crgsUtTN/e31hNhJlRw8N/+d9u5jIOObP2h6QddMLfdmOKliqhzhRzI8CbQxE9 nV0YHzYmiwhiQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] usb: ohci: use IS_REACHABLE(CONFIG_MFD_SM501) for SM501 glue Reply-To: sashiko-reviews@lists.linux.dev To: "Pengpeng Hou" Cc: linux-usb@vger.kernel.org, mfd@lists.linux.dev, lee@kernel.org In-Reply-To: <179635133288.74470.3309482874196875020@163.com> References: <179635133288.74470.3309482874196875020@163.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 02:41:05 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] usb: ohci: IS_REACHABLE(CONFIG_MFD_SM501) couples ohci-hcd.ko to sm501.ko -- commit bcdfc91876aa48e5c117d4d8258a5503ecae195e Author: Pengpeng Hou usb: ohci: use IS_REACHABLE(CONFIG_MFD_SM501) for SM501 glue This commit changes the preprocessor guard around ohci-sm501.c in drivers/usb/host/ohci-hcd.c from #ifdef CONFIG_MFD_SM501 to #if IS_REACHABLE(CONFIG_MFD_SM501) so the SM501 glue is included when both ohci-hcd and sm501 are built as modules. > diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c > index 129468b1efc25..acfc83fc45d82 100644 > --- a/drivers/usb/host/ohci-hcd.c > +++ b/drivers/usb/host/ohci-hcd.c > @@ -1268,7 +1268,7 @@ MODULE_LICENSE ("GPL"); > #define PS3_SYSTEM_BUS_DRIVER ps3_ohci_driver > #endif > =20 > -#ifdef CONFIG_MFD_SM501 > +#if IS_REACHABLE(CONFIG_MFD_SM501) > #include "ohci-sm501.c" > #define SM501_OHCI_DRIVER ohci_hcd_sm501_driver > #endif [Severity: High] Does this introduce a hard module dependency from ohci-hcd.ko onto sm501.ko? When CONFIG_USB_OHCI_HCD=3Dm and CONFIG_MFD_SM501=3Dm, embedding ohci-sm501= .c into ohci-hcd.ko pulls in calls to sm501_unit_power() and sm501_modify_reg(), which are exported by sm501.ko. Because standalone OHCI drivers such as ohci-pci.ko depend on ohci-hcd.ko via ohci_init_driver(), loading any modular OHCI driver now forces sm501.ko to load on systems without SM501 hardware, and fails in minimal initramfs images or split-package kernels where sm501.ko is absent. This also leaves CONFIG_USB_OHCI_HCD=3Dy with CONFIG_MFD_SM501=3Dm unsupported, since IS_REACHABLE() evaluates to false when ohci-hcd is built in. Splitting ohci-sm501.c into a standalone platform driver module using ohci_init_driver() and MODULE_ALIAS("platform:sm501-usb") would avoid coupling ohci-hcd.ko to sm501.ko while supporting both modular and built-in ohci-hcd configurations. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179635133288.74470.= 3309482874196875020@163.com?part=3D1