Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp424887pxk; Wed, 2 Sep 2020 05:32:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhl/HBMrRUsP7MoDdl4Hexp4MFFebX2xpmKCdFRckQySggvkrbm0cJeRcRN76VEpTuMsxi X-Received: by 2002:aa7:c6ce:: with SMTP id b14mr6574723eds.208.1599049939786; Wed, 02 Sep 2020 05:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599049939; cv=none; d=google.com; s=arc-20160816; b=z4s5YQGjinTQu6vxfboB4OvnEjGA0kRzOF3wY9S2km83t/FOdS35swPFO+crmq4sQR uE85dYdrA9slE73c7Nv9lMrIUJUWBULqpHZunKhMaasHQqhLFC4o8jNf3VjmBXe1M75H 0B8Omv0MmDeeWlNRjm5K7GVWKQl7+8CIBqChXLUDwlVd/EdLYDo/rGx85J3Z5+2W7Xv/ R4jNnzHaKuFUHs8CZNXIRhrmskPvIHMGJ+4/EDkbahhra0mmYDn8uv4f6rILMdLyAq8j 5SaDSwTipse0IHVJ95SWSsbxusG2vagEClsbgYHKGe/HK2ifa3sfTN2Zuu1UuQo4Enby AtBw== 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-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=mooRj0nvhznIz13pvR5lJZS/4x8Dr06BlVcyUWXo1Ck=; b=YpyDDeSX84TG3+3LTvN50k+2Dqvh6lq0CnsUy4fDBSGRgp8iYXn+vKya/3a2eOivrd 9DLqMp2trSB3aZUJy8uQ8co3iGpK5qVTnUUAPIbcUc3brs2DHZ7Z+ozClgJKcuNZ4GPs uQQyqcfe2mCQuTaTzNJGWpbZfzx2tpKCLwZXWAt5Uth3gLw7i2vmV7sp75rkGDtgK42Z m07IpZ36QZwR9gK+Dxcj+b1PXQoxxZcB4khsGfKdxr5YJkvBloqnhpReQ2jJl6nuhqVh 126wA27gZCHUJzJscjJtmLuALsABjT6GPzt/rymKzPq+W384I9R/JZo+sRN2h7rxMVZK vivA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BbTPZSuw; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si2355375eds.592.2020.09.02.05.31.56; Wed, 02 Sep 2020 05:32: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=@kernel.org header.s=default header.b=BbTPZSuw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726678AbgIBM3G (ORCPT + 99 others); Wed, 2 Sep 2020 08:29:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:51486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgIBM3D (ORCPT ); Wed, 2 Sep 2020 08:29:03 -0400 Received: from localhost (47.sub-72-107-117.myvzw.com [72.107.117.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A87F62083B; Wed, 2 Sep 2020 12:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599049743; bh=/5zITwQgLMel5YXHYupTFIKYxnlLuiBxHFfhEAM0zfA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BbTPZSuwNhYPSzyKeYXdR2ks3rMVlCPg6Y1GA8H9h86rRYg1Vih7Csu9U/nxJ/lYC TENC8nhd0UiDYOX5RrIeDcOjt57ddMQ+FYTxqkf2fUW99aQdEFMgwbJVe0J9blyW14 V7HlRBi6yEcXCoiDy/37tUpos8rsamYLRKdgQMyQ= Date: Wed, 2 Sep 2020 07:29:01 -0500 From: Bjorn Helgaas To: =?utf-8?B?5ZCz5piK5r6E?= Ricky Cc: "arnd@arndb.de" , "gregkh@linuxfoundation.org" , "ulf.hansson@linaro.org" , "bhelgaas@google.com" , "rui_feng@realsil.com.cn" , "vailbhavgupta40@gamail.com" , "linux-pci@vger.kernel.org" , "puranjay12@gmail.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] misc: rtsx: add power saving function and bios guide options Message-ID: <20200902122901.GA241240@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > From: Ricky Wu > > > > > > Added rts5227 rts5249 rts5260 rts5228 power saving functions, > > > added BIOS guide MMC funciton and U_d3_en register support and > > > fixed rts5260 driving parameter > > > > This should be split into small logical pieces. I can't really tell > > what those would be, but just based on the commit message, it could > > be: > > > > 1) Add rts5227 rts5249 rts5260 rts5228 power saving functions > > > > 2) Add BIOS guide MMC function and U_d3_en register support > > > > 3) Fix rts5260 driving parameter > > > > s/funciton/function/ > > > > It looks like 1) *might* be just this: > > > > rts*_force_power_down() > > { > > ... > > rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, D3_DELINK_MODE_EN, > > D3_DELINK_MODE_EN); > > > > That should be a single patch by itself so it's obvious that it's > > doing the same thing to several drivers. > > Ok, I will have a extra patch for all xx_force_power_down() Great, thanks! > > Explain what "BIOS guide MMC function" means. Mention the name of the > > function this adds so we can connect the patch with the commit log. > > > > "BIOS guide MMC function" means, via BIOS setting to know MMC card > support or not It will be helpful if this is in a patch by itself. As far as I know, there's no actual BIOS *call* here, so you must be looking at some setting in the *device* itself, on the assumption that it was done by the BIOS? That sounds like it could become a problem if the device is ever reset or put in a low-power state. For resets, and possibly even a low-power state, BIOS won't be involved, so the setting will be lost, and the device may work differently after the reset than it did before. That sounds undesirable. > > Explain what "U_d3_en" is; that doesn't even appear in the patch. > > I am going to remove U_d3_en from patch description, this mean > D3_DELINK_MODE_EN register OK. Given the size of the patch, I think the commit log is too short to describe what's going on. More details would be helpful. Bjorn