Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp373078ybm; Thu, 28 May 2020 05:10:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9w2UIwa6pQSovaWeP18GrnMSxbTy9tb4H3SfLDkNAslY0AfCHuw14r1PSF5WSHjxxQOHe X-Received: by 2002:a17:906:57c5:: with SMTP id u5mr2606994ejr.419.1590667818332; Thu, 28 May 2020 05:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590667818; cv=none; d=google.com; s=arc-20160816; b=tH/aT53jkWkvAhTVOqpAqaURmvq71oLrC3BmGZarMQxjAoSqh4i/25PjabWA4OlRh+ QtWUBJ3Cq+w7TJlF5/hliQxfoGtpQZvTHKbHfCuYZLzEaj/VuwDnbCDtV0Ys+vtAh0X4 mdILl/5WIddO+u6P+Ch7Os9akHWniQYM7gaVqmkfMBcO81BmQGR1iQFP0Ne5AWqcoK+L q0S2SJ/lk8wKXIoPyKxzsjq5Bzt+4P2t81C6AioxyJj8ym6ZMnSm7VNWgMP71jWTcIXL 1zukqJsg9y2l3fdSu/6LocZe7cyixefPQKaw76UTPUQnW23gIlmVMc57Jo+wKQGkToox ZxZw== 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=tq+q++/frST5N5CKETYuRqUnrOlaPvf/ODtcvH07zHM=; b=ggEtbDPoinB1rsXRwlt54l0ke4cde8k02mvtd+I80PElNqmJEBjFYW2tF52hz0GdJ2 BL4iYynNohRPNvT/qaoSAPm4ePd2ZGMGTcmHPoSRlkYAymAuLeuzlmmEI+ClQJ2rFCI9 5mKi0jr7m1RChJbaye/2/y8uFgDLonZj3eipATgsUF9kIBhgas6vhaTxWPhPrDtNU5L+ lLz0YRgtUmdHts4WoVuKuiFL/ZK13o/kVEz/6fxDnGBrTrlWlPRHE7uTVADG7l7OtuTQ w+2wmACG0QVQe9GR3ygzDyotM25stJKFtUkHHRCk4gGKWiMDo54tGK8mPR0ZI/QKocHL 8OEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eE7jAjL8; 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 cy7si3251366edb.484.2020.05.28.05.09.55; Thu, 28 May 2020 05:10:18 -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=eE7jAjL8; 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 S2389356AbgE1MIR (ORCPT + 99 others); Thu, 28 May 2020 08:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388784AbgE1L4h (ORCPT ); Thu, 28 May 2020 07:56:37 -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 EBEA7C08C5C5; Thu, 28 May 2020 04:56:36 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id d128so1732728wmc.1; Thu, 28 May 2020 04:56:36 -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=tq+q++/frST5N5CKETYuRqUnrOlaPvf/ODtcvH07zHM=; b=eE7jAjL8k8KesdXQ8UHRMzDquL2AN+NiiE5Ao/ztSJTqX/49+V4QyMgvpYLstoGEui l/9NgM3PVhu2Y3RghbdJcM/kPsQSce/RVVcZ/RZraP8e4lrmVuq9oINYYaYltQ2oPM9G 4OM1YDfwzsgPmp5l+ILk4RyiaP4aeSqEoib0C6VrpSiG4V+kOtz0Lpfwis0zu3ryBhRh 9u+5lodqjSz9NGOeF+fhnjH+/T0BWzMy0m4iqDaMWlsL+/n7PnNunIyfDi493W+SYApR WS8Y4A9L4lgZntMs/NfU8tAkEWHE/JCQI9wa4qAFmOI8qsIY67lDiwfHkTUdArIFu+xK DHMw== 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=tq+q++/frST5N5CKETYuRqUnrOlaPvf/ODtcvH07zHM=; b=Y5LMQ1/sRKIwUcEoY+exfXUdWmheyRAjWUCFKQscx+u9+tNSR3uQX0uREe3RcnGDyG QG+aWjc+Xm9E5DLAKU/IfodkZReXfwTq6OvU3BKXYarkag26qZwk9pKwm+4tsPi/wXDs L2RK0ElaiQTGM91gYE/vQggigTWDkxBphRkutjNdQvbyaI8bX9k2nbXPUw1aYc3tlMYB eX5ZXDCb98x6NEgWsx0rLjRT+4w38m07an0LBrfaKuNDogS/M7kZFjiQeUmbmPAfyJqk N1hozLGl4kNWOKLux8pO89AGAJzS2fZqOaRM98R6vNA0KgRS3WFSsA4YsIa/adtZQXnm PWyQ== X-Gm-Message-State: AOAM5325ZI87Q13BAEWTXpI3f6TO2q4JzhJZqVGnxN5KCSA1ManUSeAQ cGhqFEjL8SU6aDZ5g+qTBqw= X-Received: by 2002:a1c:7c02:: with SMTP id x2mr3204327wmc.183.1590666995753; Thu, 28 May 2020 04:56:35 -0700 (PDT) Received: from ubuntu-laptop.micron.com ([165.225.203.62]) by smtp.gmail.com with ESMTPSA id y37sm6589178wrd.55.2020.05.28.04.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 04:56:35 -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 v2 0/3] scsi: ufs: cleanup ufs initialization Date: Thu, 28 May 2020 13:56:13 +0200 Message-Id: <20200528115616.9949-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 This patchset is to cleanup UFS descriptor access, and delete some unnecessary code. Changelog: v1 - v2: 1. split patch 2. fix one compiling WARNING (Reported-by: kbuild test robot ) Bean Huo (3): scsi: ufs: remove max_t in ufs_get_device_desc scsi: ufs: delete ufshcd_read_desc() scsi: ufs: cleanup ufs initialization path drivers/scsi/ufs/ufshcd.c | 166 ++++++++------------------------------ drivers/scsi/ufs/ufshcd.h | 12 +-- 2 files changed, 34 insertions(+), 144 deletions(-) -- 2.17.1