Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1914836pxp; Mon, 21 Mar 2022 07:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQfVtcwCVWcSRZQ8jZrSi4vPvyg42cyJC4BPZ1/66P5bQD2EAhgxq1hUtRVjqvIoA8u5qY X-Received: by 2002:a05:6a00:24cd:b0:4f7:2340:a6cf with SMTP id d13-20020a056a0024cd00b004f72340a6cfmr24130295pfv.36.1647873330044; Mon, 21 Mar 2022 07:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647873330; cv=none; d=google.com; s=arc-20160816; b=I6zvGcARPXHy/5OQXkTlT9qP2JbrqrbTqfvBQvRfGgIXjUoHAv0ZBTRePLDnbJSBb9 NY46zyYdDPpEKN7XgWkBrkV1hgKJ+CtadDnv01HJvZfNWONfa+cjNPV+fXgiZa2g+PPJ Zo0WmOnBpZTVpxJcx2AB7DoZ2ChOcYcESSwfcGL4+EFkLdT+K31FhNc1LHRH4FhbgkR6 TB/Kuc3wnrfA6TqZC0Ov6EiWy3GYBw+UxkLYtTrC4HeiMQC52dD9LjPMFDS3MeHSN3ek umodujLA/xuOvLgMczv9FJIrLl7d9vGFT60+o+WwqOyS95b9goB323q0mDOEpICEUx34 6mqg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=o8Q0UZ81xboYrOXbduVribAZI5gl4e1aQm+JCmqUpHw=; b=jmQ8vleZfWREXTrn8B0y3Mu6R8IG6EBxQBrquDwr3kQN3DKx5Abhhm4vqbCnTY1AZE oMxiu4BRyj3YCBWaqu+JfDkDuGEq8cIEI03aRzfiYo2NgcgTM4HXbCYgtAYx7baxiZeY /Ka4wZRCCeKuf2VfW4qU4BxB+5f1z1Qy+9e44BiXhafp6G3jyUyNdRVW4ns0H4ISBTiz pMTjrmezDYuOpCAB7FxLWmov/zR5+YXa66aOkOluzCNTKP6Y42tYpc9piHFV5yXxCvF/ 9aDIS8fH3EUWQRFEM0eXkyhdUPxd0a+Pg90dHqCQUSh9aPXySb92r3zcnIByTBVrY5iX 4MpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNEbPirA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902ab8a00b00153b2d16623si10139062plr.555.2022.03.21.07.35.12; Mon, 21 Mar 2022 07:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNEbPirA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244423AbiCTLHu (ORCPT + 99 others); Sun, 20 Mar 2022 07:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239698AbiCTLHt (ORCPT ); Sun, 20 Mar 2022 07:07:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1AB483B7; Sun, 20 Mar 2022 04:06:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 903D761024; Sun, 20 Mar 2022 11:06:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDE91C340E9; Sun, 20 Mar 2022 11:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647774385; bh=SP5ZRF6K2CwwSMhfOFPEhqyOMkG4BmnjUX8ER/LN6KI=; h=From:To:Cc:Subject:Date:From; b=iNEbPirAIpNppN6yZr4kSqeQlf0HXpdHKmiMwhSHm9en3gzX9g0NThzW2Zgsr0w/q r+r6cUUGAMqUQ8IUw3kKqXmmSJYXr+rMtWrP8VanGT3Zztch5LJqKeOhxjBvyAEYUC K9kd36B4o4gWryTFeBsT15pPu9XMLFdoF4IPVvW8FESeFeaLg2+PtgcqdeakOtP2n3 KuHWnfCGZr83T5PWQW58fGj0++SxJogkcqjaf7A7/ldCz6i29TfC+iwK6MRT4E/3Ir WCJxun7ISWsLv44gx9ocITZmAqmuQ9dUH9vMkfrmdiZBpo3aDkA3Vl9i94qJI/wBP4 uI87uaJTPDQ4w== From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Luca Weiss Subject: [RFT] ufs: qcom: drop custom Android boot parameters Date: Sun, 20 Mar 2022 12:06:16 +0100 Message-Id: <20220320110616.18355-1-krzk@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The QCOM UFS driver requires an androidboot.bootdevice command line argument matching the UFS device name. If the name is different, it refuses to probe. Thise androidboot.bootdevice is provided by stock/vendor (from an Android-based device) bootloader. This does not make sense from Linux point of view. Driver should be able to boot regardless of bootloader. Driver should not depend on some Android custom environment data. Cc: Luca Weiss Signed-off-by: Krzysztof Kozlowski --- Not tested, please kindly provide tests. See also: https://lore.kernel.org/linux-devicetree/f61abc2b-3ce8-7b1f-3d28-8a4a03ec58eb@kernel.org/T/#u --- drivers/scsi/ufs/ufs-qcom.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 0d2e950d0865..586c0e567ff9 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -957,18 +957,6 @@ static const struct reset_control_ops ufs_qcom_reset_ops = { .deassert = ufs_qcom_reset_deassert, }; -#define ANDROID_BOOT_DEV_MAX 30 -static char android_boot_dev[ANDROID_BOOT_DEV_MAX]; - -#ifndef MODULE -static int __init get_android_boot_dev(char *str) -{ - strlcpy(android_boot_dev, str, ANDROID_BOOT_DEV_MAX); - return 1; -} -__setup("androidboot.bootdevice=", get_android_boot_dev); -#endif - /** * ufs_qcom_init - bind phy with controller * @hba: host controller instance @@ -988,9 +976,6 @@ static int ufs_qcom_init(struct ufs_hba *hba) struct resource *res; struct ufs_clk_info *clki; - if (strlen(android_boot_dev) && strcmp(android_boot_dev, dev_name(dev))) - return -ENODEV; - host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL); if (!host) { err = -ENOMEM; -- 2.32.0