From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BCC9CD11DF for ; Tue, 26 Mar 2024 21:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EmQX7gzyUpNdyU2mG2dPyYr1tpm6erZErKFb+gCrjsU=; b=tKqF4F0I6ABrIV HC4X8RvpVXYzd84HCbAZysSkCOtdEuqScAm2qL2iVMbRMwyPvULLPY8MpFxEvQoLa+Cia/YwZNXIG L8VsGBw7z/AGCg22QlizyqqWVMEDGnCV76ztI16QYSMa5agCnuwURiSF1eQbN5a/IL7ie0dEKIT4i 7D1WwaecodRDVAkJ/5PIaWxcQK86auLPiqTs6VBArZltDbGnsMEjycz2wSAqGBHsxhXNbNxV0kuAQ 0jEhc/IVWFaJX6srG5/Rl2sDx0vE5hcgei92NjR/qVMY69N0rTAjol7STqOCXJhqN0UWTSmfGJQ1I V5AfWmGTl+2fAVq+lYjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpEDj-00000006WkY-2Nhw; Tue, 26 Mar 2024 21:20:35 +0000 Received: from mgamail.intel.com ([198.175.65.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpEDh-00000006Wjf-1lJy for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2024 21:20:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711488033; x=1743024033; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bfaen3V+dqtoJw9rubpHqAQUMPxS69aDZd7fo+2v9nY=; b=T+nnTz6sZioKFbGr7mtl6TXgJEsz9DcyYxTI+NkWRVhwtaNYdt0dvY4s Z/JHvZeko7HvycvWzM0NeI1t6LNM6/CMrBTd2Fj5MLsta9dzmCPjiszbO bQOY2I+CdQvWg8kLXpSOZrsWa3WaTnWu3faIuWM8sRO8hz1aJ8bRy/GX5 LAjvMprKzhliY6kHFpgzJW0sdtpvuITvP8at9Fro+flBFaI5dyoQJoAdK rpBXEGvfwptDM9wVJLuLHCu5ep+Od7THaT1HvgIXtZq7eLHaB3GhgklXq CgM+MSby0OKKDIcB9bkb9scm68egjhhaMVQvxuLDEu72Eat1tc168WqwV g==; X-CSE-ConnectionGUID: cNm51tKjTl+5bvRBAi0azA== X-CSE-MsgGUID: 3hN1jSewTwygvvd9tGklgg== X-IronPort-AV: E=McAfee;i="6600,9927,11025"; a="10366008" X-IronPort-AV: E=Sophos;i="6.07,157,1708416000"; d="scan'208";a="10366008" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 14:20:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11025"; a="914891004" X-IronPort-AV: E=Sophos;i="6.07,157,1708416000"; d="scan'208";a="914891004" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 14:20:29 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rpEDa-0000000GSyA-3BT8; Tue, 26 Mar 2024 23:20:26 +0200 Date: Tue, 26 Mar 2024 23:20:26 +0200 From: Andy Shevchenko To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Subject: Re: [PATCH v1 07/10] spi: pxa2xx: Provide num-cs for Sharp PDAs via device properties Message-ID: References: <20240326181027.1418989-1-andriy.shevchenko@linux.intel.com> <20240326181027.1418989-8-andriy.shevchenko@linux.intel.com> <6f6c96d3-051a-4437-9c95-6b8be7847705@sirena.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6f6c96d3-051a-4437-9c95-6b8be7847705@sirena.org.uk> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_142033_549398_52708EA6 X-CRM114-Status: GOOD ( 29.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 26, 2024 at 08:26:11PM +0000, Mark Brown wrote: > On Tue, Mar 26, 2024 at 10:12:12PM +0200, Andy Shevchenko wrote: > > On Tue, Mar 26, 2024 at 08:02:57PM +0000, Mark Brown wrote: > > > > It is not clear to me that this makes the kernel side better, it just > > > seems to be rewriting the platform data for the sake of it. If it was > > > converting to DT there'd be some stuff from it being DT but this keeps > > > everything as in kernel as board files, just in a more complex form. > > > Not really. The benefits with swnode conversion are the following: > > > - reducing custom APIs / data types between _shared_ (in a sense of > > supporting zillion different platforms) driver and a certain board > > file > > > - as an effect of the above, reducing kernel code base, and as the result > > make maintenance easier and bug-free for that parts > > I'm more worried about the possibility of breaking things with swnode > support than I am for board files - with board files you've got a good > chance of failing to compile if things get messed up, with swnode you > can typo a property or whatever and silently fail. I understand that, but here it's consolidated in a single series and not supposed to be modified in the future, only dropping or properly converting. Btw, you may say the same about the all patches that converts to GPIO lookup tables (one typo in the not-so-often used GPIO line device ID name), but I don't remember that kind of conversions got much of objection. > > - preparing a driver to be ready for any old board file conversion to DT > > as it reduces that churn (you won't need to touch the driver code) > > The driver appears to already have DT support (there's a compatible for > MMP2 in there)? The MMP2 is using default number of chip select pins. Also note that my reply is generic (I used 'a driver' form). -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel