From patchwork Sun Dec 17 19:31:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 18199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp858634dyi; Sun, 17 Dec 2023 11:32:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt2CIR+97T2OBc64RH48RymjiBNFMbApED8OV0IW1tjDtNGZzGuSADPYldn+znlAK0frRl X-Received: by 2002:ad4:5aa4:0:b0:67f:38eb:a5cb with SMTP id u4-20020ad45aa4000000b0067f38eba5cbmr2572245qvg.3.1702841563697; Sun, 17 Dec 2023 11:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702841563; cv=none; d=google.com; s=arc-20160816; b=d6TG/IxJpxprl0SSW9/2VJZMls4YmklxikAW2LczzFlCZ1ngfY6N0iENyFypZsXb6u KqMBKCkpgQhPcSmhbfD5RibSdUs+++13xGu4D/HRsj2sSiVnSa60X5xmlTY2MyNpHU2S lXgMxbe4n/zDPpE/RdluWHOlSzHLFYnofA6JiL6VJJsHJw+tT+msQb5+wlk34oU472km 7YyvLo1+i0AkVJo5qNWo3itvc2eDh+Y56xbOq1Nd/FjTRx6wt45rCVT0dRBE/U1I1cbF JRxuuIdadUaInoQyta1AM41Ss8tEzsVEbObLxbhoLCiPSvgq2cihWMYomxOHTfsBhb+v RELw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=GjxpUozOCc28uf0Mpq2ohAGkm6Gb2SFu4ntS9IP7zc8=; fh=lndhqhM/smUv/sqG9l62mCR6taeFpgcLIT7VIeds5fc=; b=nzvL0lPaGzb0fkupp2J6lad4BPK7Q8Ix6zI/U0jPygGIOD+jBWuGn6S4VHGkIMBbVj nXE2J4TJyAi8aR1wNipTrCnUhch/jWTB7c9Ag85YEOiSf2GJHdxL3nhaFaQbLmSXN0+X xS1tuKwo4Lz2GM9AOpFm17Ld/rNxbPGej5gi1dYgrbvoKyr1K6NOogV+RJnpcylHWKFF 00qJtKeTfPs9e5Xjeo3lvKij980QX+luJJEl32LADnuR+Qd4WLq8i80foZeONhvr/ebS JKTiGKzKOgFMPCi9euuQHFanSzbDrtvZe9665pJHsdQfvTXFMBs6bC1hYJ4+gdIDmRMs Ee4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2784-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2784-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t8-20020a0cef08000000b0067ef3d84bc0si11971721qvr.82.2023.12.17.11.32.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 11:32:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2784-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2784-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2784-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4572C1C21A47 for ; Sun, 17 Dec 2023 19:32:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66182495FA; Sun, 17 Dec 2023 19:32:00 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29E34481AD for ; Sun, 17 Dec 2023 19:31:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rEwrg-0007Gd-RU; Sun, 17 Dec 2023 20:31:52 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rEwrg-00GXTh-2n; Sun, 17 Dec 2023 20:31:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1rEwrf-004ow1-Pa; Sun, 17 Dec 2023 20:31:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Santosh Shilimkar , Krzysztof Kozlowski Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] memory: emif: ifdefs and platform_driver_probe() Date: Sun, 17 Dec 2023 20:31:30 +0100 Message-ID: X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=943; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=zVJugfeOTymRnAnugpVWTjoIeVkVRWBo0ysEr89178Y=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlf0ySpS4VMK9/vx8l5wy5vJnnVRaF1uwwstsiy 9qDliC4GlOJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZX9MkgAKCRCPgPtYfRL+ TkoIB/9fVFn9BQkvfEmo89Eo5CqUNwWRlpXwwv1ln1FYgiDGy+RqzJ0aQ+3TMsYSyDo4xtLhpd+ Qt24Gl6FryPQHvCzHeNYuYcnYQFEWibFnRNBnCIJnx38Te3WcgJTLWcxxNqJuF5fO8ZmbqCIfDR Q8suGxeOzFLmFFaAov7Dwkz44K3IO2szqcw1EDDMc9dpW3XRE+taTUAm7v0QYilxBtWONSpjk0E IOYam2JDtZWbHeLOHzRumNNWqahgEATFnySRBM2bvgkOpcXdefDmYOVzSU4kK749iiYkrlGDR1d kIdaw2wsnsPD100ZdIVNNnVblWekeFsNckvpnfLxZEbzAdI2 X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785558795576399734 X-GMAIL-MSGID: 1785558795576399734 Hello, while preparing the series to convert the platform drivers below drivers/memory to use .remove_new()[1], I noticed that the emif driver unnecessarily uses some #ifdefs and doesn't use platform_driver_probe() correctly. Note there is a conflict between these series. Tell me if you need support to resolve this. The alternative to the third patch is to do s/__init_or_module/__init/ in the driver and mark emif_driver with __refdata. Best regards Uwe [1] https://lore.kernel.org/r/cover.1702822744.git.u.kleine-koenig@pengutronix.de Uwe Kleine-König (3): memory: emif: Simplify code handling CONFIG_DEBUG_FS memory: emif: Simplify code handling CONFIG_OF memory: emif: Drop usage of platform_driver_probe() drivers/memory/emif.c | 63 ++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 40 deletions(-) base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240