Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1814285ybh; Mon, 20 Jul 2020 07:55:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMFC5T8e7CNPvqXcakc7S5aQwEzy/PrZT9dh0f1bB7SvN7sGo7Qj7tabS3qbQfaMVZkOJq X-Received: by 2002:a17:906:c56:: with SMTP id t22mr22149498ejf.50.1595256919577; Mon, 20 Jul 2020 07:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595256919; cv=none; d=google.com; s=arc-20160816; b=Q0xudrq46Qta9OokffsX7fIo8tIfcwmTdyj7qeUm2Nz7PBKjFie4cEDrOAE8crk1XL 32XqKIsIEbJAEicoz5II2f/IpLXQEpRm8RSEjUgZpjUyTxouevFmPVIEQzECgD8WwJDT 04Dnqsaha/bo4IsUMivYQ0NqlMv97tWxy5b4SIc+x27DB+/MYRxbCgl1wnZABqhMk279 1/xebZDCiGLARxJiv+m9KKl0uy5EWQTzoK2PeXzYXpN/ovJHB4UO2l/H6orJ9KrfGS6H UWaunRvFU8ziTfkIX05P+dJec3z1MsLRrETtDaOeH3GfufYIO3mlSThF21PSjxkVeAef dVig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2HQ9WNdGoOa/CwIT79FZmwN2wIlYigkcboh5TFIst00=; b=oDpI5ehXd7sqaorkn7EggLNgoIm7CPEuCtp39VktkGbeD7yHuemxTIg5Jhld2bZZ1v nUhxVsAyCA2t92D8xKF6/xEYywpUStb122NQZem5b58+s45SwKRjD8IY01R6tMPOijym Pe7cR/9P2y3nOnBpjoSnQ1Gi4UnbVUZOYrHaujNMNBfHH3BojrYThvBxw3LFsL+dtW8i C4GJlQ1OT1UBh37pxX0VTWSABYMPz9hHuLBKm//NIDdPCiyJnrASp6tUHS9QGKn6fz1y 2JdRCFtod42hIsRguxUsczSCSAO4wiXCWS+V+BnbZdBXeISQLGaH2ZvWdpEZvWkKBCTI lmXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=liI8qj38; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a28si10679259edj.27.2020.07.20.07.54.55; Mon, 20 Jul 2020 07:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=liI8qj38; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728346AbgGTOyg (ORCPT + 99 others); Mon, 20 Jul 2020 10:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgGTOyg (ORCPT ); Mon, 20 Jul 2020 10:54:36 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2518C0619D2 for ; Mon, 20 Jul 2020 07:54:35 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g75so22545196wme.5 for ; Mon, 20 Jul 2020 07:54:35 -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; bh=2HQ9WNdGoOa/CwIT79FZmwN2wIlYigkcboh5TFIst00=; b=liI8qj382ayQB0NSb2owvG3UxSLUff0mldH1n6TLUcWypVFzXS2rgB/iXysgz3XNOx Is1y5KLq2ozy3dggJrJhcSH3SZg/rUCORgYHs9av6RFC4v8CpHObZI3BErLMGcCjGpjq miRojRYwoBWVi8xxEnRrZI2dqQ2PXxy9dRMnQ9zQB9/rkizwJLACyRKFX7ZZDYvkel3E gGTOH1MFfpsf9pPvntMP2BmlonSpqYBDDwHRDAdpTJEhbiHlhJ3eeaX0FOj/VsMBg0MO JhA+sltxOCZyrbwtPjXTYSez+E+5LZL3XmrtJf2bTy3i42XRO4rat9dr4SM+/d3258OL DaKQ== 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; bh=2HQ9WNdGoOa/CwIT79FZmwN2wIlYigkcboh5TFIst00=; b=OOD5AcCs/pkVkPSsRzKjR17/Ksp0j0GOYSG9Y1McuF/MO+vzNMu0y7k+PTw+mEj+ET NR0rwR8ArubfoH/hXffXctHPokreuQ3kasmcmeUz7A0qiPxXjiYBeN3RnOJZgQcOMP/Z ouatz67Px9hBIjKFol6+KQiHQtdocwVkdtLPKphJmElvF2WBOytN01NzcfRi+5+HMpr6 CPJ5NTHAtI1WB7114YHXXu1+MPIlE/seBM//ixjCi6S4Pfs/zNHtNLjjV05s42+aYQn4 E+5xfaJh3Jnkq5EagfYmG7RsN5bldhD6T4OMhshO3b4UWMC6Lbd2jRxGJ+31V76EtYdD r29g== X-Gm-Message-State: AOAM532SSiPWemvlHToZ+k4o13/cHM861xFGkykfH3PjyKmoUmWyhBn3 ACNBVqJGvwusSO/jYDvLUqJTRQ== X-Received: by 2002:a7b:cb92:: with SMTP id m18mr21097163wmi.94.1595256874417; Mon, 20 Jul 2020 07:54:34 -0700 (PDT) Received: from dell ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id 62sm17771123wrq.31.2020.07.20.07.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 07:54:33 -0700 (PDT) Date: Mon, 20 Jul 2020 15:54:32 +0100 From: Lee Jones To: Linus Walleij Cc: ricky_wu@realtek.com, Arnd Bergmann , Greg KH , Ulf Hansson , rui_feng@realsil.com.cn, Bjorn Helgaas , kdlnx@doth.eu, Rui Miguel Silva , "linux-kernel@vger.kernel.org" , linux-mmc Subject: Re: [PATCH] misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC Message-ID: <20200720145432.GB621928@dell> References: <20200706070259.32565-1-ricky_wu@realtek.com> <20200720145202.GA621928@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200720145202.GA621928@dell> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jul 2020, Lee Jones wrote: > On Mon, 20 Jul 2020, Linus Walleij wrote: > > > On Mon, Jul 6, 2020 at 9:03 AM wrote: > > > > > drivers/misc/cardreader/Makefile | 2 +- > > > drivers/misc/cardreader/rts5228.c | 740 +++++++++++++++++++++++++++++ > > > drivers/misc/cardreader/rts5228.h | 168 +++++++ > > > drivers/misc/cardreader/rtsx_pcr.c | 89 ++-- > > > drivers/misc/cardreader/rtsx_pcr.h | 5 + > > > > This drivers/misc/cardreader business is a big confusion for my mind. > > > > Is it really that fantastic that it needs to be a unique special case? > > > > To me it looks like a drivers/mfd thing which should have separate > > drivers/regulator/rts5228.c (LDOs) > > drivers/clk/rts5228.c (clocks) > > subdrivers. > > > > See for example drivers/mfd/sta2x11-mfd.c thay spawns a few > > devices off a PCI card. > > Thanks for Cc'ing me Linus. > > Can you please bounce the diff to me too? Never mind, I found it. So you may use MFD to register the (regulator, clk, card reader) child devices, but pretty much none of that *functional* code belongs in drivers/mfd. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog