Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6691561pxu; Thu, 24 Dec 2020 09:22:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYoYxDtGXc0t1RJbDqrbWV8TEWhP76XeAkwCvkWFkNMbfFjxQhTA0xwMLTfWkOUkyQr8LC X-Received: by 2002:aa7:d354:: with SMTP id m20mr28989969edr.195.1608830578163; Thu, 24 Dec 2020 09:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608830578; cv=none; d=google.com; s=arc-20160816; b=O5NpR9an7NfFBe5rJJJQoQatKfbQ6T4kTTo+PK3C5YNLUVDQLQbws8ukb+dfB2i36G jMjOKFuH4NFfRV/inJRf8SoE1Zb3/nyx/L3ohhPbd18CjfJi2Z7HyxE2fpddUIZtZl3a wpHkO7e5zaQdrnShZZCVOjh91RyV2hbjSB+x6LvERxs7UPcKyEpdSAFwiDcdWbeqcciu LPZzRmZStdv0eSPkMVOO41mXNWbT6tl02EUaM0eoM+Y/7JAmaHSqdZmQilw+ky4Ip9pj 2s0EJMjQZai4APA+9S7zqktTn4A9GlYJFnueY9zl96tVf4sgp2f+aGEhUrFY2sU6z9/M /UXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=aopfLSwuZWXOzuLcW70/gkbtn81TyXqm8hq0ZyMhNtA=; b=zB1WPGPkb5PzJVNXBYj4jBjIYx507RXBjah7dylgnC0tMmiX2WYK2EWsNhZuFvp5qy 0FLzLqAL2i7Sx4U4qwZvJgeMDepJh869lIahgvy+qcfBiLFwgGLyTG0pTLz0p4KpNrkE vij3XlkIHIuo0Hyes3c1gl4dPOu0anGkoimaIZjIddlh0MzRG6lLBwvkbYV2ygNFtKb+ I1e/utNOe6fQ84GBQR70xaBrtD9lwm6oSY+H3QRoyiatfhSyPy5jCu+YgLCsEQGKfxd7 d3C2lo2np9ztxm5QDKVyJpBvaax8Odkhjo20CPYhJA7wbnx0EdXzvGe4V6jH6i9RhK9Z a9rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eE4WRR6s; 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 lg10si13847333ejb.120.2020.12.24.09.22.35; Thu, 24 Dec 2020 09:22:58 -0800 (PST) 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=eE4WRR6s; 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 S1728524AbgLXRVG (ORCPT + 99 others); Thu, 24 Dec 2020 12:21:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727144AbgLXRVG (ORCPT ); Thu, 24 Dec 2020 12:21:06 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71E3C061575; Thu, 24 Dec 2020 09:20:25 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id c7so2626805edv.6; Thu, 24 Dec 2020 09:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=aopfLSwuZWXOzuLcW70/gkbtn81TyXqm8hq0ZyMhNtA=; b=eE4WRR6sY1vD5NYrYbFhy8mgE5GkUPD7FMyuAANPJzGYI1AzOHJhlSgJzddzj+REAX /sb2zdgS0QZAy0YujeH92PNwYSTEKGXf7WLvV/VyfPrY0kpUyiFVPkSg9KphPMGBByOs hsLJ8yv1si3c6zC3MywKEG/fDxlJTskwBRdCqJ+Im3TVpVhwimAhNu7rhq9Za8gc9APi F8Fc6+nZ9pwdeS0Ib1c3b+LnCJJs4IV4r5AJEPdIeJhMFxCAQB8Ld1eldcKg3g6D6jt+ FOfRhGLEk2b7EVXK9f0jmQ171f9VIrj9dubY3ewewwKGbvNeyNarhv9CyJax+yuUEb1m loUQ== 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=aopfLSwuZWXOzuLcW70/gkbtn81TyXqm8hq0ZyMhNtA=; b=JRtscCjvrjEEMyHyvYSbTE4ORkgouYEFxsy7/nq7MUpixMoxwhHg1h0pbwREmAQ7Dl AQkyZyny+xPEcJkO9KQ6Tb/gvQ6jVMXEdluSSaBOqsKWnWPwDB2X0lO9e8viZpH/wIEL 4vCWVtKg2L5nwXb3CoFTdzjm/++B265rgxk8HkiDPpGnlWWrGX4CS5pseN5kLAwrZOBE RVN3qvlHLaVOmO7bcZnLnyV2rjKo/7tCjnoGxEKLDVYowqtnTAb1ZLu4fCHgyc629YCU IXobQpQplwBUFbB0mcCB9QLK6SPWHkeSF/NeETttwxbE5USVcOkhiWZSa71T/QDXECpD YcQg== X-Gm-Message-State: AOAM531jzSJpuENUdd1ypQlQUNiAIvA4EaPGupVjagCcyfgOEBe1ANUo pem5kv5NbyPPweZDkr6JPnI= X-Received: by 2002:aa7:de0f:: with SMTP id h15mr29730128edv.110.1608830424594; Thu, 24 Dec 2020 09:20:24 -0800 (PST) Received: from localhost.localdomain (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.gmail.com with ESMTPSA id m5sm12874446eja.11.2020.12.24.09.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Dec 2020 09:20:24 -0800 (PST) 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, rjw@rjwysocki.net Subject: [PATCH v2 0/3] Two changes of UFS sysfs Date: Thu, 24 Dec 2020 18:20:07 +0100 Message-Id: <20201224172010.10701-1-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo Changelog: V1---v2: 1. Add new patch "Let resume callback return -EBUSY after ufshcd_shutdown", Because the ufshcd_*_resume still returns successful result 0 after ufshcd_shutdown(). Even add handling of the return value of pm_runtime_get_sync(), but still there is timeout. Bean Huo (3): scsi: ufs: Replace sprintf and snprintf with sysfs_emit scsi: ufs: Add handling of the return value of pm_runtime_get_sync() scsi: ufs: Let resume callback return -EBUSY after ufshcd_shutdown drivers/scsi/ufs/ufs-sysfs.c | 68 +++++++++++++++++++++++++----------- drivers/scsi/ufs/ufshcd.c | 12 ++++--- 2 files changed, 55 insertions(+), 25 deletions(-) -- 2.17.1