Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp686577ybm; Fri, 29 May 2020 09:43:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKDZ+OIoddtwxDmbspXPpJdl8XPWJnkS6PUmtLGglul7QlxrWRYIwa7ztJOzWHbIF8X5Ux X-Received: by 2002:a17:906:4317:: with SMTP id j23mr8149270ejm.377.1590770604208; Fri, 29 May 2020 09:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590770604; cv=none; d=google.com; s=arc-20160816; b=v7SJhnsAB7R0JyvUMRuY9X3WWCw2WhFx7JyJfxKfpcqD+iqOOdMV/GZrANB/vhKsp8 68qfD0AchjuHLVIs6p/lUr7tSCCMkh9uFIUJScDG42U9BgbE57px0Y6Z0mxuOLywlSqR hyZt8S6PlkEEgNtD/Arl7w6ctZPDe6FZDFlkLDmAfpVVJG7kJs5Y7/wPDZu/0hezaKug 7atJPs4u9uYfySgDMf6stTCCgUxjqEXqrQBxofHkej+zULIAGxKwzDo6RUlIysQrCl8t fHs4aVnWrbo2ca4LzPy98tO/8m38+/G9PtKIBAduDE+NB4YAldXIOVikm/JEemwdPNJ2 Xabg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5H7t2JkJtK8bEnNB5nn596iezOidqOpYmSimrSsUglM=; b=cLG64RmTJKsnq8Xs6iawU6reeqAEFgcIPfdaA6DkrwzKnkrKPovMXPeyqYIOKO3JzI ImAj4K0AvBbaASNajeCfEFTBhoRDQWnLfVTxyHDe7AOJZ2k5s8MuhPuM0Bznu62FJjvi ts5VkeOi2BKDV/0cNWWQ2bBge5ZXfITVXjnWc7sUtnoUgIDwWeegSUHJ0XFVgowktuBW Ks+8mx1t0oz8wbxf/zkWfUA4GD7+wI7SH/uzF5X5C13S5r5p9Ys8ouqf0OEFfu3B5Ky7 YT0S/3erHfsd9zstLM90DEmRh8JTPrvH+bdjlCgYL/6gRn2Bg0nafK/wvW2Y7COs2CEf dxLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bE8JsViJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si5554432ejc.483.2020.05.29.09.43.00; Fri, 29 May 2020 09:43:24 -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=@gmail.com header.s=20161025 header.b=bE8JsViJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgE2QlR (ORCPT + 99 others); Fri, 29 May 2020 12:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbgE2QlR (ORCPT ); Fri, 29 May 2020 12:41:17 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09137C03E969; Fri, 29 May 2020 09:41:17 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id y17so4385028wrn.11; Fri, 29 May 2020 09:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5H7t2JkJtK8bEnNB5nn596iezOidqOpYmSimrSsUglM=; b=bE8JsViJ37vX9JA94OJxidc026Lxn8nybhNKSLyo8hK8PELjDMDYSe8zb/vhX5VrvX YJOGbyo/dJYYDnyKetZEWArQAlsS2Poi/8+LjW+MrDCOcft36YQY4pMY02ECamJ3gfGz 9X932oObjmiaZFUeFdlNF4nExE7+F9IZSqLnnJMVmUwWNlwHl4PVN1wVAftvuVr0vzv1 NSHfpfEFM0+b/OQ+xRAqkM9zTiNJSvY9ZajnjQL7i0Xlry5EUabjs7XiH2Pa3hBTX6uf MND/NAzAfPwkzC7Z5CJhPNp3i69ViW3FJYAdJ9vr2AilfiCqIHQwB1Bdv8SX4Wxfg6yI U2vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5H7t2JkJtK8bEnNB5nn596iezOidqOpYmSimrSsUglM=; b=EWRe5jmUSoRjEgJ5AMMwT4/MjMduQje5hvF8VSP4DM+tghpHYjJEfFI0QKkYRC21Rw CvC40j/gDN0TaNF67WwmHV+tzZrj+IHya9delG79D/JY+KINu2ue23Mh4pWvD0jTlPqE h4dyIJyO5f7d6kryddoU9U92r9iC0B0jq4ep7lrZm2+H7/9f2fyg1OdZaL4mgvAJMYKo Bmxot9qbf6wYcg0O9ED8zsifafE+ymaVevNa/6zr3VYEL9rGlkxooY11mAWEVnXZmXzI vDg55PjACHJaZgJl85SRoHAimjD5Ll6s4r/Bhnei60AohN29KRLVzrH9z7IRw22wtDsj DSFw== X-Gm-Message-State: AOAM533FWvKsy2FR3LBVXyXWoLTWsOcO+0HCfCsq0bNAb9cuO95A+9fX HBd4tNf1Bbndq8SDhtQDB0S4pWEnU5A= X-Received: by 2002:adf:dcc3:: with SMTP id x3mr9164926wrm.93.1590770475776; Fri, 29 May 2020 09:41:15 -0700 (PDT) Received: from ubuntu-laptop.micron.com ([165.225.203.62]) by smtp.gmail.com with ESMTPSA id z25sm17344wmf.10.2020.05.29.09.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 09:41:15 -0700 (PDT) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/4] scsi: ufs: cleanup ufs initialization Date: Fri, 29 May 2020 18:40:50 +0200 Message-Id: <20200529164054.27552-1-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo Cleanup UFS descriptor length initialization, and delete unnecessary code. Changelog: v2 - v3: 1. Fix typo in the commit message (Avri Altman & Bart van Assche) 2. Delete ufshcd_init_desc_sizes() in patch 3/4 (Stanley Chu) 3. Remove max_t() and buff_len in patch 1/4 (Bart van Assche) 4. Add patch 4/4 v1 - v2: 1. Split patch 2. Fix one compiling WARNING (Reported-by: kbuild test robot ) Bean Huo (4): scsi: ufs: remove max_t in ufs_get_device_desc scsi: ufs: delete ufshcd_read_desc() scsi: ufs: cleanup ufs initialization path scsi: ufs: add compatibility with 3.1 UFS unit descriptor length drivers/scsi/ufs/ufs.h | 11 +- drivers/scsi/ufs/ufs_bsg.c | 5 +- drivers/scsi/ufs/ufshcd.c | 200 ++++++++----------------------------- drivers/scsi/ufs/ufshcd.h | 16 +-- 4 files changed, 50 insertions(+), 182 deletions(-) -- 2.17.1