Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2214401ybh; Fri, 24 Jul 2020 07:17:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylL2T0wzCcHV5mEHdSPXBZqF/EXttaW3Tit1LdCQdjnYPV5zZi28mtzS3VrJqw4sXXPJNp X-Received: by 2002:a05:6402:b26:: with SMTP id bo6mr3980693edb.104.1595600229384; Fri, 24 Jul 2020 07:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595600229; cv=none; d=google.com; s=arc-20160816; b=FP/sgJLN9WRu+8A2jJe0jree4+x3nvjJZJRqVXsP3XfL7dh9Tu+zz70BOK+jq98o9U 8O9nwUhcezKJpNJsN6vXdBP4qoNJqgMVbdBs0oKlAbrUq/oYyb8YKxZ3Iu59CGwEw9Bh xVqQUaPcb2gQ0iuk2IuWaAnpsUROnbeCUaig3Xnq5HlqNHsbFjf8hC445FCvphi/UJxw dAr7K8xDyTkyHCl2fVuWEb5n/tYdxF3Q25sZUy8p4WkJvsmJ5QM4hzZvzj74yVwibgxb UvZ0HcLpqPJTyh7WBJM1u9C9lW0grP3Pb9/t2iD/Dn6r9lZLeeNH/C+xtjNnZbRNQ5gN czsw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=m/J/gzq1uW0/CaTq7kELXH0oOhP3/tQJ+deO3cPbxHM=; b=ZSMhaxTSzcjKf+JMMRELIkBNfVkJhxamabIIfzu+T+Epv4UN2FpAQw2au4jY+Fr1ca GjSCdNN4MJSvDf1shYOwKZKkG4b/TQ79TCo9j1e7SJOn0ziu1phLcwBeeD83lNOCKKRf v4qGlw+NXsEmXoWjjWoSI/SZ6xwBT4A5ja0+h7qu8V9CQ3AX/uX1kKpq2pHCz/DcQqsJ k5pTfSkeFodwLzw4I2+7fu+iULEiD5QB3ivYMUMAuwBC/lQd/1Z6nqL5b0zoM+Ox/XOZ eFifU3cIGGYzg8g7ryq32xltyaQVnlYIuCG11NtppQbvqeNufr0OHPwvhMN3jkzCl+WH TFrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K7IjJVFm; 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=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si599954edy.438.2020.07.24.07.16.45; Fri, 24 Jul 2020 07:17:09 -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=@mediatek.com header.s=dk header.b=K7IjJVFm; 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=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbgGXOQd (ORCPT + 99 others); Fri, 24 Jul 2020 10:16:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:63299 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726317AbgGXOQd (ORCPT ); Fri, 24 Jul 2020 10:16:33 -0400 X-UUID: 8a42d10ae5014834a8de1a588a501137-20200724 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=m/J/gzq1uW0/CaTq7kELXH0oOhP3/tQJ+deO3cPbxHM=; b=K7IjJVFmWr38T985rei045Yd8P6KgKnzNFFd4qhT2xaC4QcnOf2GRsHh75tys0Uj63eTo+jXb7EyYcVa+nG3r1En5NKXLxzXXP+/m8hUHsyyTr9HVVg49cAZTEwk8uwlKap7P2XXIXp28s1jiuRwpekceATXIZNaIudtm94VBFo=; X-UUID: 8a42d10ae5014834a8de1a588a501137-20200724 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 368038415; Fri, 24 Jul 2020 22:16:29 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Jul 2020 22:16:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 24 Jul 2020 22:16:26 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1] scsi: ufs-mediatek: Prevent LPM operation on undeclared VCC Date: Fri, 24 Jul 2020 22:16:27 +0800 Message-ID: <20200724141627.20094-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SW4gc29tZSBwbGF0Zm9ybXMsIFZDQyByZWd1bGF0b3IgbWF5IG5vdCBiZSBkZWNsYXJlZCBpbiBk ZXZpY2UgdHJlZQ0KdG8ga2VlcCBpdHNlbGYgImFsd2F5cy1vbiIuIEluIHRoaXMgY2FzZSwgaGJh LT52cmVnX2luZm8udmNjIGlzIE5VTEwNCmFuZCBzaGFsbCBub3QgYmUgb3BlcmF0ZWQgZHVyaW5n IGFueSBmbG93Lg0KDQpQcmV2ZW50IHBvc3NpYmxlIE5VTEwga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