Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1143300pxb; Wed, 4 Nov 2020 00:48:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjK1/K4qMdR43TwFgptsBzO6svV32b7VmPoi64mTiYoK8x5G205yCveeC07stEm6EzldV1 X-Received: by 2002:a50:d5dd:: with SMTP id g29mr20642929edj.379.1604479719293; Wed, 04 Nov 2020 00:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604479719; cv=none; d=google.com; s=arc-20160816; b=acfkcpZTI/Disizu4qe2EFk+7xQ1YuyiNb8/0TAUfP/UN3qDBiI+byqZ0XFIeiqTk3 NYw5QV4qbGZoE23UMti4NUwfnwHtfLm9dhv1d4E4DNpj8s2GgQXfcdKhXyGHWFqJoZSq n4VYDFMCjXqrG+Y/dVMxtbKcZdrVMdk5WPug5dllw6jzdfpbAgt5ozfCvM83/hIfOqsx c3p4hdxaMHKs4xs3cDEHWg+xpYoUrf22cY+FVziiqaTlrZZfexAv9UWPzzz3l/OYJMnf +jz3lRxV6QkYhsjcmWsI410McAAdtOtII4E5GeCEMU+zWz+nt7K2Ww+5lRzHBb0SrFjO 6+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=bBctKzvczeux6BWZZgQsrhXX2Z5+FC8qYBjVK3QSzVI=; b=b1caPOSZX0fNJf9kFGctkw9l6qDF+F4VOiuxqfiZvyuq6V3XR9sdp5G5bcnyzh/eB3 VOzshu9gRTrE4gwYszUdQqWMv4UXZJ3V9ed1ZPXQ4TAN7qZkjAIuAD+nAkk4xnlNohXY eit+QLhiWD4G88AUPd0b8PQYaKxxVBu8koRi32dWAINnVRJkWDD5174HbLoeVAcUhG6F CX1AJD297Ag0IITCABRoKBoW+8XGN5wI09ZQs1at09QDoieOza3licDb3OLQGqH+jj/7 mCTBnCzDiKW2PcumNa/xvFKUynVP7pOyLRq+5Ip8ZFs+oU69679Zzp/tfSO33fIDLVi4 I9OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tm5fT6N6; 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 a15si1143142eju.273.2020.11.04.00.48.16; Wed, 04 Nov 2020 00:48:39 -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=tm5fT6N6; 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 S1728387AbgKDIob (ORCPT + 99 others); Wed, 4 Nov 2020 03:44:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728130AbgKDIob (ORCPT ); Wed, 4 Nov 2020 03:44:31 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6384C0613D3; Wed, 4 Nov 2020 00:44:30 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id a10so4376581edt.12; Wed, 04 Nov 2020 00:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=bBctKzvczeux6BWZZgQsrhXX2Z5+FC8qYBjVK3QSzVI=; b=tm5fT6N6paoIDlu61WIrpETJH6CnUWROhYoXMfqrKrrTyNnf1vrMWWzbPVVHwq4v2b +14c0FGDFHAWg5SIs0pn8ZNP8vnORlWtxAWyZIuPs9txb0wd9KHvkqcabIrt0t7imUNw 2qPx9o7lli5THvU+sZIo7W3vVo2/BccWvQ/1thzYZ9emhW6oIyQ34T6fDrxKj/eY0er1 spTKOQG/trBQTEqIxXvtXn34/r+PGYRoNf4Lp6/xsu2g7uQPGYwWkHWuS7teUKZqKMaB /0QVZBxpYPWh1Vwnun+rY82gfshcZA6fa198KqLshQmfE2iNZAD/Si/2Z+VWBY6Ygyvc Gk6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=bBctKzvczeux6BWZZgQsrhXX2Z5+FC8qYBjVK3QSzVI=; b=eZf5TK3/h2A28fMPPLkdzLd8z2BuLD3pMTlfkjp7hlN0tZePUZR9VD/Pc3217IRR01 +szk0bq573EVWR2CVNuEfsQC2v/aIyf1CYJFNuzU/S7J+dRBjxmNZVDqx0gNYO1byWqo Iqe6n7pWUGWAOoZYVAXpu2kPOcRmonsAUtkCcX4Xjr/4ES4zkDelLbxC4O2jo8nwPWjM l9Rh/Qp3vMFu68VKEx9dMPcVlt3CNHPToRVwq+w4ktPofrTf5zVZT1ny81cKYwcGYCDm qj97AZK8OY3ozsZrFG8PvMRlwjOOzKoX+P239aRwdJdTtw4pHx/wuUAs27anGcLiRcNb WiiA== X-Gm-Message-State: AOAM530jcDo2ZVT6n1iw5MvRbJFdBhGOArmm/OkQAv06GltC9zVyeLEP yCI05ACQx4w7u9ugrgE9VNw= X-Received: by 2002:aa7:d787:: with SMTP id s7mr19586948edq.205.1604479469690; Wed, 04 Nov 2020 00:44:29 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee22.dynamic.kabel-deutschland.de. [95.91.238.34]) by smtp.googlemail.com with ESMTPSA id j4sm619495ejs.8.2020.11.04.00.44.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Nov 2020 00:44:29 -0800 (PST) Message-ID: <73d4aff5c11424cf2f18735804a6cffccba07cad.camel@gmail.com> Subject: Re: [PATCH V4 2/2] scsi: ufs: Allow an error return value from ->device_reset() From: Bean Huo To: Adrian Hunter , "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Avri Altman , Can Guo , Stanley Chu Date: Wed, 04 Nov 2020 09:44:27 +0100 In-Reply-To: <20201103141403.2142-3-adrian.hunter@intel.com> References: <20201103141403.2142-1-adrian.hunter@intel.com> <20201103141403.2142-3-adrian.hunter@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-11-03 at 16:14 +0200, Adrian Hunter wrote: > It is simpler for drivers to provide a ->device_reset() callback > irrespective of whether the GPIO, or firmware interface necessary to > do the > reset, is discovered during probe. > > Change ->device_reset() to return an error code. Drivers that > provide > the callback, but do not do the reset operation should return > -EOPNOTSUPP. > > Signed-off-by: Adrian Hunter Reviewed-by: Bean huo