Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1987262ybl; Sat, 24 Aug 2019 08:08:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwrrw3fvWGiTAUKYjrxAIB4L8jxVLmDkIGeI1VmzTTy+xErPAe7pTKsXWzSSG5n0YDKcIY X-Received: by 2002:a63:b919:: with SMTP id z25mr8366793pge.201.1566659313629; Sat, 24 Aug 2019 08:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566659313; cv=none; d=google.com; s=arc-20160816; b=tQdpGVGdBo3unA/ysbYdHFX6w/mXAL4zRKmMyTSLy9vG73MZsGeW3vyzc2ewqnY9WM 1Cw2sapBhLjoigVSVAYRC4SRoedz/56UGazRWbbCGHheSMnBMQTS6tuk5PkJcruqhyd4 UGIBS0EknsRmPo4XFWVOHgGXi7g2Diy3Bq44lE3TaUP9E/CNXaP3lM0vWPc3pbAAiaYv 2oel5EbNrY93i4J/1V170uW9MX+dMWV8bqXmnxZxAp0F5SYxD08hHKvgWSGmd29TR5WF kuCDRS3oYROqNkF3RmjwgbZq0c3gng42tgxbiX7CXWYhTnNsO35NuVTJGjPUYJRj4AZK 4Fiw== 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=yvlfcwHhYYEt45AEV3kpvsKP89qUArjfynDA7p15x1g=; b=zVL+XKCF4BZzN+AZ4hHIn9xsiYsfv8nckyC4BKdpkL7beYaA1ph/gP5wJaiI8DZZTs mXHKQIr9gkUiNDUk7LaE4rjeZ5e5uu7hvaAVedU5TENk1zHnlm5XDR52rpeE98jriQVP Uf2SKanOcEPMIaKYm/2YAZS04TX1FfUGv2VbEPFHf/QbLpLXhVpeVfWaaXLwBXLu2auf cRPHno/ctIEOiwQCJsZ1aVJSugKpNfweIQHI+UMdsUvuGAt3xVdP++ZlpIlpOwffglm6 7f6RAVmEpRGi3Q1+5KZ2BRdM3H+jTwLtEY3HsXE8uXqxogzxXvyLG1r1tVfMoiFHCvUT WdVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sQCRGRLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a29si5518446pfg.263.2019.08.24.08.07.49; Sat, 24 Aug 2019 08:08:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sQCRGRLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727706AbfHXPCn (ORCPT + 99 others); Sat, 24 Aug 2019 11:02:43 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42656 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbfHXPCn (ORCPT ); Sat, 24 Aug 2019 11:02:43 -0400 Received: by mail-pf1-f194.google.com with SMTP id i30so8658096pfk.9; Sat, 24 Aug 2019 08:02:42 -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=yvlfcwHhYYEt45AEV3kpvsKP89qUArjfynDA7p15x1g=; b=sQCRGRLg0XwcENprB4U9XKoLQbl1pdzKeXP908+f4eAo2UBXTk8lR9dNTjBJMd7qBG AjPytexu7y1JIqX9qSxvYS3BDFBhCXAmy1f5ghYVnz1r2QawaNcH7wQJm0CJOg5yhwZD MCqF3oV8hnNpxiafdWmsdXf79QMdNCKteycBGb5ZaMMUHTF3MsQLo8bzPpfswjEsL3fe LVWfVUtzaUcYy0CxenU+6kOHySLPDYzvqb/Mre5xRKuprWH7CpNPlMKGunl/Phq5Jc9p 3hFHov4jyt3cN+W/+xhJvEvp4s8hgisDyEWn/Bw/qca59reUvTJQTc7OS0199PxeXHqf T2kA== 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=yvlfcwHhYYEt45AEV3kpvsKP89qUArjfynDA7p15x1g=; b=XgqJRH0fKcVnhmLTIsRgnhEbvRDac+cuAvfvkH17hERL83E3oTv9fgarHbO55e2XP6 KE4HT98PZBciMYxFZb6iDZBa4/931f6vbFcAiUiEE2ApedBO0YO3TeDdf0KgBaRBkLFz onot/eAzfOLgOdUdh3GdjYFVww4nL/yotBXhWdeFfil7oI/sDqYsaiCH0eyVf2GVFttc /OKN8GvK9evcPaItOrVoZz0EYCmg9tqJkMIsxEvgpvCeD+Ad4hESCWiAySav6asrHTjU LTOp0ahuviB0vFzazKlnqOnAgj9ytOBAPkYUOz3SNPRiuzbgzFpTuL8IyH6kWzCzifQm nnhA== X-Gm-Message-State: APjAAAUt5RTOElQS1EZ9irPZ1d7GearvIa8z0MiYkk3z1n4mSpmen6hc r1BDMFufEYHUTRIL1GYQl8w= X-Received: by 2002:a17:90a:23c5:: with SMTP id g63mr10621207pje.124.1566658962276; Sat, 24 Aug 2019 08:02:42 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC.domain.name ([106.51.17.2]) by smtp.gmail.com with ESMTPSA id c12sm8680413pfc.22.2019.08.24.08.02.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Aug 2019 08:02:41 -0700 (PDT) From: Souptick Joarder To: hare@suse.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Souptick Joarder Subject: [PATCH] scsi: aic7xxx: Remove dead code Date: Sat, 24 Aug 2019 20:38:22 +0530 Message-Id: <1566659302-3514-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are dead code since 2.6.13. If there is no plan to use it further, these can be removed forever. Signed-off-by: Souptick Joarder --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 68 -------------------------------------- 1 file changed, 68 deletions(-) diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index d5c4a0d..98d2e14 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -2445,68 +2445,6 @@ static void ahc_linux_set_dt(struct scsi_target *starget, int dt) ahc_unlock(ahc, &flags); } -#if 0 -/* FIXME: This code claims to support IU and QAS. However, the actual - * sequencer code and aic7xxx_core have no support for these parameters and - * will get into a bad state if they're negotiated. Do not enable this - * unless you know what you're doing */ -static void ahc_linux_set_qas(struct scsi_target *starget, int qas) -{ - struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); - struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); - struct ahc_tmode_tstate *tstate; - struct ahc_initiator_tinfo *tinfo - = ahc_fetch_transinfo(ahc, - starget->channel + 'A', - shost->this_id, starget->id, &tstate); - struct ahc_devinfo devinfo; - unsigned int ppr_options = tinfo->goal.ppr_options - & ~MSG_EXT_PPR_QAS_REQ; - unsigned int period = tinfo->goal.period; - unsigned long flags; - struct ahc_syncrate *syncrate; - - if (qas) - ppr_options |= MSG_EXT_PPR_QAS_REQ; - - ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, - starget->channel + 'A', ROLE_INITIATOR); - syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT); - ahc_lock(ahc, &flags); - ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, - ppr_options, AHC_TRANS_GOAL, FALSE); - ahc_unlock(ahc, &flags); -} - -static void ahc_linux_set_iu(struct scsi_target *starget, int iu) -{ - struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); - struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); - struct ahc_tmode_tstate *tstate; - struct ahc_initiator_tinfo *tinfo - = ahc_fetch_transinfo(ahc, - starget->channel + 'A', - shost->this_id, starget->id, &tstate); - struct ahc_devinfo devinfo; - unsigned int ppr_options = tinfo->goal.ppr_options - & ~MSG_EXT_PPR_IU_REQ; - unsigned int period = tinfo->goal.period; - unsigned long flags; - struct ahc_syncrate *syncrate; - - if (iu) - ppr_options |= MSG_EXT_PPR_IU_REQ; - - ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, - starget->channel + 'A', ROLE_INITIATOR); - syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT); - ahc_lock(ahc, &flags); - ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, - ppr_options, AHC_TRANS_GOAL, FALSE); - ahc_unlock(ahc, &flags); -} -#endif - static void ahc_linux_get_signalling(struct Scsi_Host *shost) { struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; @@ -2545,12 +2483,6 @@ static void ahc_linux_get_signalling(struct Scsi_Host *shost) .show_width = 1, .set_dt = ahc_linux_set_dt, .show_dt = 1, -#if 0 - .set_iu = ahc_linux_set_iu, - .show_iu = 1, - .set_qas = ahc_linux_set_qas, - .show_qas = 1, -#endif .get_signalling = ahc_linux_get_signalling, }; -- 1.9.1