Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp817197img; Tue, 26 Feb 2019 09:05:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IY0pzxklK2JfqohxhO4eMfxIIpqqVVmAIXslkFzS2pBOLIJjDHqhIyXHJVnQL4w5h/2aleC X-Received: by 2002:a62:e910:: with SMTP id j16mr26910050pfh.44.1551200732462; Tue, 26 Feb 2019 09:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551200732; cv=none; d=google.com; s=arc-20160816; b=DlCLGmzlBye/z46daRida55UuQf6C2b9yVMz5oV2u8wj+9eONCQiPIt1WP/lkuL4kr beucw5g0tFWeNCHBpWS1Gg3B7rMe6aSvCw9LKuRmHtiJtr7xaMiGUDOvB5H28/jtaYVs 97QaxVlgPh9bmjXcjrytgBoZ9srcjSLpq2/uZkIXpzynVgGERjUYrIboFhAwtAEbEaVG iX4CwUNbCS2rQEqbA9hA0OBymajSYEjMX8meYaVQ/KDOJHISWS9sffGWY7lKqMyu/Y2r iCay0i5Povt0ciRnAXdXHWpGCP4leRog0CcWmHp1jKHt1zkq7+OZlcRruogNBZ6oQZaJ 3ZYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=a3amSOT5oI8+HMzEVbvgud3lEfbDImGTHSNF+yeKnkY=; b=sDTQjSpCYYACtXiqYvCcxtMjL/ycP29xxBn7+yjDHuK5jaKiKJXk3K71ssgT+ScZ/I IuZDs0jhdXTSOpFvWteeYQHJQNb3zWvV1hcV3JqFqs19KyoWLDC0W/h15zLnX+S/0BFr nRfTbtFD+0d91mQJcarxG+4R/u69pqhclcFbpIAr+I5BB/wfxf9wVT00oSKzD1AS3nnB Q4GX3CXaA7M0ufqhKFCSik2oPPF3+/UNADTzStw3QAEdGyAmPA5Hn4qn6HaqY2jmcD9U e/zD81D9nUg6vppH+s86i08/xe6kWK3EgP5VbfXBHv4t03+057jKe1+uA/59aHKkB2aT OveA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si13177997pfe.257.2019.02.26.09.05.12; Tue, 26 Feb 2019 09:05:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbfBZREm (ORCPT + 99 others); Tue, 26 Feb 2019 12:04:42 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:14528 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbfBZREm (ORCPT ); Tue, 26 Feb 2019 12:04:42 -0500 Received: from [192.168.108.68] (unknown [213.36.7.13]) (Authenticated sender: marc.w.gonzalez) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 08D9F13F8AF; Tue, 26 Feb 2019 18:03:56 +0100 (CET) Subject: Re: [PATCH v5 1/2] scsi: ufs: Do not disable vccq in UFSHC driver To: "Martin K. Petersen" Cc: SCSI , LKML , Jeffrey Hugo , Bjorn Andersson , Evan Green , Douglas Anderson , Alim Akhtar , Avri Altman , Pedro Sousa , Joao Pinto , Mark Brown , Liam Girdwood , Rob Herring , Bart Van Assche , Stanislav Nijnikov , Alex Lemberg , Ohad Sharabi , Hannes Reinecke , Kyuho Choi References: <494cd639-89a7-8868-b63a-ea7cdcba9777@free.fr> <026c10b1-48e8-ab9f-fda8-6e3557b841a7@free.fr> From: Marc Gonzalez Message-ID: <8fc2eed2-f94b-8d43-6ca4-86e18f600997@free.fr> Date: Tue, 26 Feb 2019 18:02:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/02/2019 17:26, Martin K. Petersen wrote: >> I indeed started off from 'git revert' >> >> $ git revert 60f0187031c0 >> warning: inexact rename detection was skipped due to too many files. >> warning: you may want to set your merge.renamelimit variable to at >> least 18258 and retry the command. >> error: could not revert 60f0187031c0... scsi: ufs: disable vccq if >> it's not needed by UFS device >> hint: after resolving the conflicts, mark the corrected paths >> hint: with 'git add ' or 'git rm ' >> hint: and commit the result with 'git commit' >> >> So I had to resolve the conflict in ufshcd_probe_hba() >> >> The line: >> >> ufs_advertise_fixup_device(hba); >> >> was modified by commit 93fdd5ac64bbe80dac6416f048405362d7ef0945 > > If it's a resolvable delta, a proper git revert is preferred. Please > document any conflicts in the commit message and list the relevant > commits that introduced them. > > If you find yourself in a situation where reverting simply isn't > feasible, I'd expect the commit to state "This should have been a revert > but I'd have to boil the oceans to resolve the conflicts because XYZ..." OK, I'll do my best, but I've never been in this situation before. According to git blame, ufshcd_probe_hba() has been heavily modified around the ufshcd_set_vccq_rail_unused() call to be reverted: a4b0e8a4e92b1 (Potomski, MichalX 2017-02-23 09:05:30 +0000 6820) /* Init check for device descriptor sizes */ a4b0e8a4e92b1 (Potomski, MichalX 2017-02-23 09:05:30 +0000 6821) ufshcd_init_desc_sizes(hba); a4b0e8a4e92b1 (Potomski, MichalX 2017-02-23 09:05:30 +0000 6822) 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6823) ret = ufs_get_device_desc(hba, &card); 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6824) if (ret) { 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6825) dev_err(hba->dev, "%s: Failed getting device info. err = %d\n", 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6826) __func__, ret); 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6827) goto out; 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6828) } 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6829) 93fdd5ac64bbe (Tomas Winkler 2017-01-05 10:45:12 +0200 6830) ufs_fixup_device_setup(hba, &card); 371131065de99 (Yaniv Gardi 2016-03-10 17:37:16 +0200 6831) ufshcd_tune_unipro_params(hba); 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6832) 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6833) ret = ufshcd_set_vccq_rail_unused(hba, 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6834) (hba->dev_quirks & UFS_DEVICE_NO_VCCQ) ? true : false); 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6835) if (ret) 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6836) goto out; 60f0187031c05 (Yaniv Gardi 2016-03-10 17:37:11 +0200 6837) 57d104c153d3d (Subhash Jadavani 2014-09-25 15:32:30 +0300 6838) /* UFS device is also active now */ 57d104c153d3d (Subhash Jadavani 2014-09-25 15:32:30 +0300 6839) ufshcd_set_ufs_dev_active(hba); 66ec6d59407ba (Sujit Reddy Thumma 2013-07-30 00:35:59 +0530 6840) ufshcd_force_reset_auto_bkops(hba); 57d104c153d3d (Subhash Jadavani 2014-09-25 15:32:30 +0300 6841) hba->wlun_dev_clr_ua = true; So the patch to revert is 60f0187031c05. 57d104c153d3d and 66ec6d59407ba are older, so no problem there. Basically, we just need to preserve the lines from 371131065de99, 93fdd5ac64bbe, a4b0e8a4e92b1 and we're good to go. The conflict looks like this: <<<<<<< HEAD /* Init check for device descriptor sizes */ ufshcd_init_desc_sizes(hba); ret = ufs_get_device_desc(hba, &card); if (ret) { dev_err(hba->dev, "%s: Failed getting device info. err = %d\n", __func__, ret); goto out; } ufs_fixup_device_setup(hba, &card); ufshcd_tune_unipro_params(hba); ret = ufshcd_set_vccq_rail_unused(hba, (hba->dev_quirks & UFS_DEVICE_NO_VCCQ) ? true : false); if (ret) goto out; ======= ufs_advertise_fixup_device(hba); >>>>>>> parent of 60f0187031c0... scsi: ufs: disable vccq if it's not needed by UFS device The resolution is simple: we keep the HEAD version, and simply remove ufshcd_set_vccq_rail_unused() and its error-handling. Is that the information you were after? Do you prefer the patch subject to be: Revert "scsi: ufs: disable vccq if it's not needed by UFS device" instead of: scsi: ufs: Do not disable vccq in UFSHC driver And I should leave in the automatically added This reverts commit 60f0187031c05e04cbadffb62f557d0ff3564490. while adding some information from the manual resolution? Regards.