Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4180013ybp; Mon, 14 Oct 2019 00:05:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlEj8A4LxdkBsKnjfpS9e9vlCsRwjcaIaa4mIeZMA9cnNyKT1JX6GOlv7NBWXDjD73gDJy X-Received: by 2002:a17:907:101b:: with SMTP id ox27mr13126431ejb.130.1571036713965; Mon, 14 Oct 2019 00:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571036713; cv=none; d=google.com; s=arc-20160816; b=kpkQCj1P3t4jc9JDu9yh3Uto/YrCgxQiRDLVNY10IhmuaLTibeZejgv2Vq70nmmTx+ QJS4x3XAbhDYhiwTxKG82droEN9C8K67DI1/0CnrCD+SxBE5IJidS6hS+Ld9+G8Koqf3 DX9qJ6gSZsQhPcnMFQDRzlwy41oluzk8wwl7FuRyD7HqVN1fRUdDLBqKJpXNz9Sf49OD oNUJiWgqF8IiIQgP6FUO3gYC/owcjS3oxkO7IVX2tN3MezwLumHDKanPSQW3IBgIJssE SKfFIvDf1IV1wKaA3j387t059fpv0WL5if0jmYYoE/N76WyTbpw1oDLAVUAkGYFvR57K Ap0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kARX9+0BKAD7qk3BjARPSF4hECeeh6Sx7CLH7T+oTb0=; b=dyMg4xrASSb84cMFbSVt6AWFoWgR5XzHuCpVoFlvR+e1+Ie1HY28ZbeISCvQ30knZZ tyjNg4yBFQmvxM7fqKNOxRxozFg2q071oE3eQ5THt+8GTTOimyBvklbIWt8f9i3MHITZ eWMArSgHgZMmdZRT9vyMm631AFX0dL2Zuc7Yn8JVlTPcVp0M+SHCAqJcn4Mm6lr7nfmb /KFaUSukrkawkc1omoM4EZFqHGFtheT9oBufp0lgoGHbNUH4xW8P+007djZNE+5Cw0uM fBYk5ymerPQ5SKmFJUoPwDcVqHfMP7tOzYyC12PwenNCdRGNXRoq4uCrJqviaXbUOKBY ORYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QclHqXW6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rk14si10591654ejb.24.2019.10.14.00.04.50; Mon, 14 Oct 2019 00:05:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QclHqXW6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730218AbfJNHDZ (ORCPT + 99 others); Mon, 14 Oct 2019 03:03:25 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33392 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfJNHDY (ORCPT ); Mon, 14 Oct 2019 03:03:24 -0400 Received: by mail-wr1-f66.google.com with SMTP id b9so18309185wrs.0 for ; Mon, 14 Oct 2019 00:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=kARX9+0BKAD7qk3BjARPSF4hECeeh6Sx7CLH7T+oTb0=; b=QclHqXW6ZKzWj9AvwDjjpURbYYwL2ehXvGg3U3vqXoz2YaRjsROg0JGyTwNk9g54Zv i3LukqN94drT2bwK8oQISHzBug4ZZWS4VT9Qn1fuzrxXgFZTgCki5XLSh/Cj0ateWNpx ffCsL9UWjm+ECWErvYzruTNMykHx639hORyyVVYP3O4vrFdFh27UZikVmP8b5xOE/b/I Tksm6CH991VoJXwUi1GbASr/4TIHNxj5jwv7g1Cu512PvGVfxwESX+puUNCe5+WtXIZs i7lDirHUD87ahyjWEqfbY+NoRne58RmejCjpyTnOAa/PBCJDtIGBf7vrS6ZRu+q0G2me JG7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=kARX9+0BKAD7qk3BjARPSF4hECeeh6Sx7CLH7T+oTb0=; b=TPgCzaSbc3E4QDNZ+A3MY71nPwVgYXfq0u9ek/3NhjU19N9In9tcxd6LsmI3XoGiHA x93pm0GZPKsi5dBcE2AW3MAMedIb+iwAgHRpPUaBKO2xn9yAXkrBiB4uKgpcu4ZtXr+I JyJe5u1DBMdLLHG1tdS/7OhRCe3tYs7qNzHz6egjdkW+MnZX38IqK4rmq1//UGqvhM3k m16w//JJnAEI3zMLAncBQ7s57yixpry8fmcxn3E7TCBACJOChw4Ia8kwAy0qRRXr+YUo 5Tek89GofoUtND8fLXcKk2LAXXArLMTbwi6qJnn+sJ8waD7MMaPfQfA+sgvumD5NCcjT iHdg== X-Gm-Message-State: APjAAAXMIcpCgqrWTvkjdgbrBCRqfNNZqGJSOYb8xGJ9o/A8YsI8NGUe H/bMpbeM0RcKfPcCPOPJNUsG9w== X-Received: by 2002:adf:f00d:: with SMTP id j13mr8881658wro.253.1571036601043; Mon, 14 Oct 2019 00:03:21 -0700 (PDT) Received: from dell ([2.27.167.11]) by smtp.gmail.com with ESMTPSA id g185sm23439606wme.10.2019.10.14.00.03.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Oct 2019 00:03:20 -0700 (PDT) Date: Mon, 14 Oct 2019 08:03:18 +0100 From: Lee Jones To: "RAVULAPATI, VISHNU VARDHAN RAO" Cc: "Deucher, Alexander" , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Mukunda, Vijendar" , Maruthi Srinivas Bayyavarapu , "Mehta, Sanju" , Colin Ian King , Dan Carpenter , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH 2/7] ASoC: amd: Registering device endpoints using MFD framework Message-ID: <20191014070318.GC4545@dell> References: <1569891524-18875-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> <1569891524-18875-2-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> <20191001064539.GB11769@dell> <2ff13a61-a346-4d49-ab3a-da5d2126727c@amd.com> <20191001120020.GC11769@dell> <20191002123759.GD11769@dell> <20191002133553.GA21172@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Oct 2019, RAVULAPATI, VISHNU VARDHAN RAO wrote: > Hi Lee, > > We have two instances BT and I2S. > We need to create devices with same name added with number of device > like example: > acp3x_i2s_playcap.1.auto > acp3x_i2s_playcap.2.auto > > by using MFD we can make it happen automatically by giving > "acp3x_i2s_playcap" and other extension will be added by MFD add device API. The auto extension is handed by the platform_deivce_alloc() API. platform_device_alloc("acp3x_i2s_playcap", PLATFORM_DEVID_AUTO); > This helps us by rectifying the renaming issue which we get by using > Platform_dev_create API`s.If we have to use platform related APIs then > we need to give different naming conventions while creating the devices > and cant use it in loop as we have 3 devices we need to call three > explicitly.This make our code lengthy. > If we use MFD it would help us a lot. > > Please suggest us how can we proceed. You have 2 choices available to you based on whether your device is an MFD or not: If yes, move it (or a part of it) to drivers/mfd. If no, then use the platform_device_*() API. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog